commit | 556c550a381650eb5b7b2ca5126b4bed281d47f9 | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Fri Apr 22 12:45:56 2022 -0400 |
committer | Robert Findley <rfindley@google.com> | Mon May 02 22:20:22 2022 +0000 |
tree | defa7ddf2f3f1913b8d8e4d1396106229bf541fe | |
parent | 4a3fc2182a4a10d066a3c3662eb4c1fddc03ed5b [diff] |
internal/lsp/cache: invalidate packages that have added files When a file is new or its package name has changed, we should invalidate all packages for files in the current directory, not just packages previously containing the file. Fixes golang/go#52500 Change-Id: I9fc9857a7abcd4e730068871c899d274e1736967 Reviewed-on: https://go-review.googlesource.com/c/tools/+/401795 Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Suzy Mueller <suzmue@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 install
.
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 install golang.org/x/tools/...@latest
.
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.