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
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