Skip to content

Commit b0164fc

Browse files
h9jianggopherbot
authored andcommitted
gopls/doc/release: add semantic token config change
For golang/vscode-go#3632 Change-Id: I8d8a219c380ac8ac07a1baaef3bc89701894b985 Reviewed-on: https://go-review.googlesource.com/c/tools/+/643497 Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Hongxiang Jiang <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 96a07bb commit b0164fc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

gopls/doc/release/v0.18.0.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@
1010

1111
VS Code's special "Go: Toggle GC details" command continues to work.
1212

13+
- The experimental `settings.semanticTokenTypes` configures the semantic token
14+
types. It allows disabling types by setting each value to false. By default,
15+
all types are enabled.
16+
17+
The experimental `settings.semanticTokenModifiers` configures the semantic
18+
token modifiers. It allows disabling modifiers by setting each value to false.
19+
By default, all modifiers are enabled.
20+
21+
The experimental `settings.noSemanticTokenString` and
22+
`settings.noSemanticToken` settings are deprecated in favor of
23+
`settings.semanticTokenTypes`.
24+
25+
Users can set `settings.semanticTokenTypes[string] = false` to achieve the
26+
same result as `settings.noSemanticTokenString`. The same applies to
27+
`settings.noSemanticTokenNumber`.
28+
29+
For now, gopls still honors `settings.noSemanticTokenString` and
30+
`settings.noSemanticToken`, but will stop honoring the settings in the
31+
upcoming release.
32+
1333
# New features
1434

1535
## "{Show,Hide} compiler optimization details" code action

0 commit comments

Comments
 (0)