-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/gopls: setting semanticTokenTypes has no effect #71964
Comments
Change https://go.dev/cl/652655 mentions this issue: |
Thanks for reporting this. You are correct, I will review your CL and hopefully make this to the next gopls patch release. But for now, you can keep setting both |
@findleyr could this issue added to gopls v0.18.2 milestone? |
Change https://go.dev/cl/652915 mentions this issue: |
…TokenTypes source fix golang/go#71964 Change-Id: I2694023636272ea971880865a4f2cb6d9192d7d5 GitHub-Last-Rev: c81d388 GitHub-Pull-Request: #564 Reviewed-on: https://go-review.googlesource.com/c/tools/+/652655 Reviewed-by: Hongxiang Jiang <hxjiang@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Hongxiang Jiang <hxjiang@golang.org> (cherry picked from commit d740adf) Reviewed-on: https://go-review.googlesource.com/c/tools/+/652915
gopls version
v0.18.1
go env
What did you do?
Setting
ui.semanticTokenTypes
in my vscode settings due to Deprecation ofnoSemanticString
andnoSemanticNumber
What did you see happen?
strings have no highlighting for verbs like

%v
,%w
...What did you expect to see?
have highlight normally.

Editor and settings
Logs
But setting
ui.semanticTokenModifiers
works as expected.I also found a potential implementation error in this gopls function. It appears to be copying SemanticTokenModifiers instead of SemanticTokenTypes.
The text was updated successfully, but these errors were encountered: