Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp/semantic: only return token types the client asked for
The old code mistakenly presumed all clients would want the standard set of semantic tokens in the LSP specification, but clients have the option of asking for fewer, so gopls should only use those. Change-Id: Ic396bf3a2ba1fc3c9b48a380265a6cfded0a8bf6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/321470 Run-TryBot: Peter Weinberger <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Peter Weinberger <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
- Loading branch information