scalameta / metals-feature-requests

Issue tracker for Metals feature requests
37 stars 4 forks source link

Support using directives in hovers and completions #403

Open tgodzik opened 4 weeks ago

tgodzik commented 4 weeks ago

Is your feature request related to a problem? Please describe.

Using directives are not suggested or explained by Metals

Describe the solution you'd like

Metals should:

Describe alternatives you've considered

Writing things manually

Additional context

Directives are contained in a single jar we can use https://index.scala-lang.org/virtuslab/scala-cli/artifacts/directives/1.5.1 and https://github.com/VirtusLab/scala-cli/tree/main/modules/directives/src/main/scala/scala/build/preprocessing/directives We should asses how we can use that for completions

Search terms

using directives hover completions