-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Request textDocument/semanticTokens/full failed #4081
Comments
Hi, thank you for the bug report! We recently added support for semantic tokens, but the plugin taking care of that feature is disabled by default. |
How do I enable the support for semantic tokens? |
In VSCode: File > Preferences > Settings You might need to restart hls or extension host (more radical, that's what I usually do) for this change to take an effect (ctrp+shift+p - type restart extension host and pick the option it finds) |
In theory, not even restarting should be necessary 😅 |
Hmm, this is a bit suboptimal. I guess in an ideal world in this case we would not advertise support for semantic tokens and instead dynamically register for it when you turn it on. But that's a fair bit of work. |
I made #4084 for the wider issue. |
This does solve my issue. Thank You! |
Your environment
Which OS do you use?
MacOS
Which version of GHC do you use and how did you install it?
9.4.8 / GHCup
How is your project built (alternative: link to the project)?
Which LSP client (editor/plugin) do you use?
VS Code with Haskell Plugin
Which version of HLS do you use and how did you install it?
2.5.0.0 from GHCup
Have you configured HLS in any way (especially: a
hie.yaml
file)?No
What's wrong?
This is the error I get and however the server is running as the process shows up in my activity monitor.
Debug information
The text was updated successfully, but these errors were encountered: