commit | 0f0346e9278499630c065e5cf8aaa5110790cbde | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Thu Mar 18 12:03:27 2021 -1000 |
committer | Rebecca Stambler <rstambler@golang.org> | Fri Mar 19 17:02:51 2021 +0000 |
tree | 457dc66683c9bb387dd8db5762e5372d43fabce4 | |
parent | 05cb6f5c5f12eba20f1e59617552dc312536552c [diff] |
[gopls-release-branch.0.6] internal/lsp: remove module diagnostics from code actions With -mod=readonly, all go.mod diagnostics are covered by go get quick fixes on import statements, so we don't need to run `go mod tidy` on save for Go files. The real issue with this bug is the call to WorkspacePackages, which type checks every package in the workspace. Fixes golang/go#45092 Change-Id: Ibb82a3e58ec345ebdb67c0cbef5e029dce2d5a30 Reviewed-on: https://go-review.googlesource.com/c/tools/+/303149 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> (cherry picked from commit 2c4a88659b64aa89e661b314cb26e4ecd583b421) Reviewed-on: https://go-review.googlesource.com/c/tools/+/303150
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.