Skip to content

Commit d740adf

Browse files
danztrangopherbot
authored andcommitted
gopls/internal/settings: correct SemanticTokenTypes 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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Hongxiang Jiang <[email protected]>
1 parent 779331a commit d740adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gopls/internal/settings/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ func (o *Options) EnabledSemanticTokenModifiers() map[semtok.Modifier]bool {
13561356
// EncodeSemanticTokenTypes returns a map of types to boolean.
13571357
func (o *Options) EnabledSemanticTokenTypes() map[semtok.Type]bool {
13581358
copy := make(map[semtok.Type]bool, len(o.SemanticTokenTypes))
1359-
for k, v := range o.SemanticTokenModifiers {
1359+
for k, v := range o.SemanticTokenTypes {
13601360
copy[semtok.Type(k)] = v
13611361
}
13621362
if o.NoSemanticString {

0 commit comments

Comments
 (0)