x/tools/gopls: incorrect highlight of imports with major version suffix (semantic tokens) #47784
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go, VS Code & VS Code Go extension are you using?
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.goproxy
URL that shows my API token, and I may well have pasted it here if I hadn't been more careful. Perhaps this template could advise caution before pasting?Share the Go related settings you have added/edited
Describe the bug
With the
ui.semanticTokens
feature enabled, the package name is highlighted in import statements. However, if the import ends in/vN
the highlighting is incorrect; the version is highlighted rather than the package name. Refer screenshot below.Steps to reproduce the behavior:
"ui.semanticTokens": true
option.Screenshots or recordings
The text was updated successfully, but these errors were encountered: