Skip to content

Commit

Permalink
gopls/doc/release: add semantic token config change
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
h9jiang authored and gopherbot committed Jan 21, 2025
1 parent 96a07bb commit b0164fc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions gopls/doc/release/v0.18.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@

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

- The experimental `settings.semanticTokenTypes` configures the semantic token
types. It allows disabling types by setting each value to false. By default,
all types are enabled.

The experimental `settings.semanticTokenModifiers` configures the semantic
token modifiers. It allows disabling modifiers by setting each value to false.
By default, all modifiers are enabled.

The experimental `settings.noSemanticTokenString` and
`settings.noSemanticToken` settings are deprecated in favor of
`settings.semanticTokenTypes`.

Users can set `settings.semanticTokenTypes[string] = false` to achieve the
same result as `settings.noSemanticTokenString`. The same applies to
`settings.noSemanticTokenNumber`.

For now, gopls still honors `settings.noSemanticTokenString` and
`settings.noSemanticToken`, but will stop honoring the settings in the
upcoming release.

# New features

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

0 comments on commit b0164fc

Please sign in to comment.