commit | 979b82bfef62cbd5954bf1ec69c0fec5dbf2a1e0 | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Wed Dec 18 17:36:47 2019 -0800 |
committer | Heschi Kreinick <heschi@google.com> | Thu Dec 19 04:18:53 2019 +0000 |
tree | bf305cf260dd0f6d6a1928771395ee42f3335e98 | |
parent | 84f0c7cf60ea8527a71a42a9a4c96a89ed911cda [diff] |
internal/lsp/cache: fix excessive recursion in (*snapshot).clone() It wasn't infinite, but gopls would sit at 100% cpu for ~25 seconds whenever I made a change to a package imported by essentially everything in my project. Change-Id: Ifa253a4de06897260e0791888284527258e8de48 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212000 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
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 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.