commit | 8d73f17870cef4e8dc904ca15d7e4cc1cdf64d00 | [log] [tgz] |
---|---|---|
author | Danish Dua <danishdua@google.com> | Thu Sep 24 17:25:18 2020 -0400 |
committer | Danish Dua <danishdua@google.com> | Thu Sep 24 22:42:22 2020 +0000 |
tree | d04a096996705b24196f7e148f0bb7a2152e9c9f | |
parent | 8a9a89368bd3a1133a785181d9e4941e9353137f [diff] |
internal/lsp: move package selection to before type checking This change moves package selection to before type checking so we don't unnecessarily type-check both variants of a package. As a result, exec time and memory usage for features making calls to GetParsedFile are cut by half since we only type check either the narrowest or the widest package. Change-Id: Ifd076f8c38e33de2bd3509fe17feafccd59d7419 Reviewed-on: https://go-review.googlesource.com/c/tools/+/257240 Run-TryBot: Danish Dua <danishdua@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Danish Dua <danishdua@google.com> 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 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.