[vscode-go] extension/src/language: extend semantic token client capabilities

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Aug 6, 2026, 1:15:15 PM (4 days ago) Aug 6
to Hongxiang Jiang, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, golang...@luci-project-accounts.iam.gserviceaccount.com, Alex Putman, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
extension/src/language: extend semantic token client capabilities

+ integration test

The integration test verifies the legend returned by the gopls
contains customized token modifiers and the semantic token LSP
requests return customized modifiers.

Since vscode-go test against gopls@latest, before the gopls
v0.24.0, the test will pass because gopls return custom modifier
regardless. After gopls v0.24.0, the test will still pass because
vscode-go start sending customize modifiers since this CL.

For golang/go#80736
Change-Id: I7b1aab53bd1ff282e80179e6c3700bc658608047
Reviewed-by: Alex Putman <apu...@golang.org>
Auto-Submit: Hongxiang Jiang <hxj...@golang.org>
Files:
  • M extension/src/language/goLanguageServer.ts
  • A extension/src/language/goSemanticTokens.ts
  • A extension/test/gopls/semantictokens.test.ts
  • A extension/test/testdata/semantictokens/go.mod
  • A extension/test/testdata/semantictokens/main.go
Change size: M
Delta: 5 files changed, 167 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: vscode-go
Gerrit-Branch: master
Gerrit-Change-Id: I7b1aab53bd1ff282e80179e6c3700bc658608047
Gerrit-Change-Number: 811100
Gerrit-PatchSet: 3
Gerrit-Owner: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Alex Putman <apu...@golang.org>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages