mirror of https://github.com/golang/go.git
Semantic tokens, as defined by the LSP, have no way of marking parts of strings or numbers, for instance, to emphasize escape character. But if gopls returns no semantic tokens for strings, then the editor will use its coloring for strings, which may be more useful (and similarly for components of numbers). This change introduces boolean flags noSemanticString and noSemanticNumber that can be set to true to suppress the semantic token and let the editor's formatting shine through. Fixes: Fixes golang/go#45753 Change-Id: Ibae880a08fb9a67daa73aa172375a1c949431e11 Reviewed-on: https://go-review.googlesource.com/c/tools/+/421256 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Run-TryBot: Peter Weinberger <pjw@google.com> |
||
|---|---|---|
| .. | ||
| design | ||
| advanced.md | ||
| analyzers.md | ||
| command-line.md | ||
| commands.md | ||
| contributing.md | ||
| daemon.md | ||
| emacs.md | ||
| features.md | ||
| generate.go | ||
| generate_test.go | ||
| inlayHints.md | ||
| semantictokens.md | ||
| settings.md | ||
| subl.md | ||
| troubleshooting.md | ||
| vim.md | ||
| workspace.md | ||