commit | 244f92ec88242fddef5b34be34f1655c2799c8cc | [log] [tgz] |
---|---|---|
author | Pontus Leitzler <leitzler@gmail.com> | Tue Oct 26 15:31:50 2021 +0200 |
committer | Rebecca Stambler <rstambler@golang.org> | Tue Oct 26 18:33:39 2021 +0000 |
tree | bb63fb33f7b371dfe645e496ba69523b427c90dd | |
parent | c4ead46007cd1af7f5f93bd721c949e2732ac785 [diff] |
internal/lsp: do not send semantic tokens that client doesn't support 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>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.