You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They are:
"ui.noSemanticNumber": true,
"ui.noSemanticString": true
Updates #2682
Change-Id: I942b735af16ed7d070615baad231df4cdcba5d73
GitHub-Last-Rev: 9ac0a3e
GitHub-Pull-Request: #2684
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/471280
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Peter Weinberger <pjw@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Copy file name to clipboardExpand all lines: docs/features.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,18 @@ Quickly toggle between a file and its corresponding test file by using the [`Go:
112
112
113
113
The default syntax highlighting for Go files is implemented in Visual Studio Code using TextMate grammar, not by this extension.
114
114
115
-
If you are using `gopls`, you can enable [Semantic Highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) for more accurate syntax highlighting based on semantic tokenization using `"gopls": { "ui.semanticTokens": true }`.
115
+
If you are using `gopls`, you can enable [Semantic Highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) for more accurate syntax highlighting based on semantic tokenization using this setting:
116
+
117
+
```
118
+
"gopls": {
119
+
"ui.semanticTokens": true,
120
+
121
+
// you can optionally turn on these features for more colors
122
+
// see https://go.dev/issue/45753 and https://go.dev/issue/45792
123
+
"ui.noSemanticString": true, // delegates string syntax highlighting to vscode
124
+
"ui.noSemanticNumber": true, // delegates number syntax highlighting to vscode
0 commit comments