-
Notifications
You must be signed in to change notification settings - Fork 795
semantic tokens - type not in legend (ignored) #3000
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
Comments
Uninstalling nightly and using the normal extension and then using |
yes, this is definitely a regression. One can see it most easily by looking
at imports, where, for instance 'runtime/pprof' is all one color without
semantic tokens, and two different colors with semantic tokens. gopls
v0.13.2 shows semantic tokens. and 14 doesn't. It's gopls, not vscode-go.
…On Fri, Oct 6, 2023 at 10:10 AM Andy Walker ***@***.***> wrote:
Uninstalling nightly and using the normal extension and then using Go:
Install/Update tools seems to have resolved the issue, so whatever is
broken it seems likely that it occurred between gopls v0.13.2 (which is now
installed) and gopls v0.14.0-pre.2 (which was installed by the Nightly
extension). Still unsure if this is a problem with Nightly or gopls, so if
this ends up being a gopls issue, I can move it there. Thanks!
—
Reply to this email directly, view it on GitHub
<#3000 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJIAI53DD52T7XLJG55JT3X6AGOPAVCNFSM6AAAAAA5V3WYTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQG42DMNZWGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Seems reasonable. I've submitted a bug report upstream, and, provided there aren't any changes that need to be made to vscode-go, this can probably be closed. Will leave that to the maintainers. |
Thanks for the report. The upstream issue was fixed and we will release v0.14.0-pre.3 with the fix next week. |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Additionally:

Though the problem still occurs if it is set to "true", regardless of the theme.
Describe the bug
I am designing a syntax highlighting theme (not pictured), and was attempting to integrate semantic tokens, however there seems to be an issue with the LSP delivering them to the editor. Even using the default themes like Dark+ (pictured), which ostensibly support semantic hightlighting, when I use
Developer: Inspect Editor Tokens and Scopes
all tokens have the following under semantic token type (and modifiers, when it appears):not in legend (ignored)
.I recall this working before, and there is a single reddit thread describing the same issue, which is very recent (6 days ago at the time of this writing), so it's possible this is a recent breaking change? I will bisect, and update the issue if I can find a working version.
Steps to reproduce the behavior:
Developer: Inspect Editor Tokens and Scopes
Screenshots or recordings
(above)
The text was updated successfully, but these errors were encountered: