commit | 0f9bb8f614ff5a69f92d782071acc99de30e0344 | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Mon Sep 23 18:18:01 2019 -0400 |
committer | Rebecca Stambler <rstambler@golang.org> | Mon Sep 23 23:01:26 2019 +0000 |
tree | 1fcffe7d7e22db415b625102e8d5329ac6a8ddbf | |
parent | 6816ec868d646bcd22fe257afcb315cab3bb2a58 [diff] |
internal/lsp: only cache type information for active packages Currently, we cache source.CheckPackageHandles for each file and package that we are aware of, as well as dependencies. This is not necessary, since the active packages pin their imports in memory. Change-Id: Ia0101f4d4a2d36d5baeb890af3d7c8baec297847 Reviewed-on: https://go-review.googlesource.com/c/tools/+/196982 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@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.