Skip to content

Commit fe57357

Browse files
committed
docs/faq.md: update the vscode default text mate rule project
VS Code changed its TextMate rule source to worlpaker/go-syntax. Change-Id: I5c59ac851731c388a2a8a317ed5a3c5ca0946a69 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/582675 Reviewed-by: Peter Weinberger <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> kokoro-CI: kokoro <[email protected]>
1 parent ff0beea commit fe57357

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extension.
9595
<br/><em>(Toggle Test File)</em></p>
9696

9797
**⚠️ Note**: the default syntax highlighting for Go files is provided by a
98-
[TextMate rule](https://github.com/jeff-hykin/better-go-syntax) embedded in VS
98+
[TextMate rule](https://github.com/worlpaker/go-syntax) embedded in VS
9999
Code, not by this extension.
100100

101101
For better syntax highlighting, we recommend enabling

docs/faq.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,22 @@
55
## Syntax highlighting doesn't seem to work.
66

77
The default syntax highlighting for Go files is provided by a
8-
[TextMate rule](https://github.com/jeff-hykin/better-go-syntax) embedded in VS Code,
8+
[TextMate rule](https://github.com/worlpaker/go-syntax) embedded in VS Code,
99
not by this extension.
1010

11-
For better syntax highlighting (including generics support), we recommend enabling
11+
For accurate syntax highlighting (including generics support), we recommend enabling
1212
[semantic highlighting](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide)
1313
by turning on [Gopls' `ui.semanticTokens` setting](settings.md#uisemantictokens).
1414

1515
```json
1616
"gopls": { "ui.semanticTokens": true }
1717
```
1818

19+
If you are experiencing issues with syntax highlighting, first check if you
20+
are using semantic highlighting. In case you did not enable semantic highlighting,
21+
report the issues to the [go-syntax](https://github.com/worlpaker/go-syntax)
22+
project directly.
23+
1924
## Code formatting by this extension doesn't seem to work.
2025

2126
When you have multiple formatter extensions, be sure to set this

0 commit comments

Comments
 (0)