Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using directives in hovers and completions #403

Open
tgodzik opened this issue Oct 25, 2024 · 0 comments
Open

Support using directives in hovers and completions #403

tgodzik opened this issue Oct 25, 2024 · 0 comments

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Oct 25, 2024

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:

  • suggest using directive keys
  • using keyword
  • show docs on hover
  • suggest values if the are known

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant