mirror of https://github.com/golang/go.git
LSP clients tells gopls which token types it supports using SemanticTokensClientCapabilites, and when gopls ran into an unsupported token type it still did send that token with the first supported type (i.e. encoded token type 0). This change makes gopls omit tokens where the token type isn't one of the client supported ones. Change-Id: Ic3b6eeb56d67e773e75365660d301f5332f3ab44 Reviewed-on: https://go-review.googlesource.com/c/tools/+/358874 Trust: Pontus Leitzler <leitzler@gmail.com> Run-TryBot: Pontus Leitzler <leitzler@gmail.com> Reviewed-by: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| mod | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||