You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally submitted as a vscode-go bug (golang/vscode-go#3000), something appears to have changed between v0.13.2 and v0.14.0-pre.2 such that semantic tokens are not being correctly integrated into vscode-go. All tokens display type not in legend (ignored). This was discovered while using the Go Nightly exension, which was installing gopls v0.14.0-pre.2.
In my case, the issue was resolved by switching away from the nightly extension to the default and reinstalling the go tools with Go: Install/Update tools, which installed gopls v0.13.2, wherupon semantic tokens were restored.
What did you expect to see?
Semantic tokens.
What did you see instead?
semantic token type not in legend (ignored) modifiers not in legend (ignored)
The text was updated successfully, but these errors were encountered:
flowchartsman
added
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
labels
Oct 6, 2023
This also results in breaking the part of Go template file support in vscode. The syntax highlighting of the Go template relies on semantic tokens - we don't have textmate-based syntax highlighting.
gopls version
go env
(taken from vscode
Go: Locate Configured Go Tools
output)What did you do?
Originally submitted as a vscode-go bug (golang/vscode-go#3000), something appears to have changed between v0.13.2 and v0.14.0-pre.2 such that semantic tokens are not being correctly integrated into vscode-go. All tokens display
type not in legend (ignored)
. This was discovered while using theGo Nightly
exension, which was installing gopls v0.14.0-pre.2.In my case, the issue was resolved by switching away from the nightly extension to the default and reinstalling the go tools with
Go: Install/Update tools
, which installed gopls v0.13.2, wherupon semantic tokens were restored.What did you expect to see?
Semantic tokens.
What did you see instead?
semantic token type not in legend (ignored)
modifiers not in legend (ignored)
Editor and settings
The text was updated successfully, but these errors were encountered: