commit | 45aeaf7b047b11157ded42272c7dfac5d5544aa5 | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Thu Feb 10 18:17:04 2022 -0500 |
committer | Robert Findley <rfindley@google.com> | Thu Feb 17 17:38:11 2022 +0000 |
tree | 36baa18522271bd620fd5c10b187cfd0fbcfd24b | |
parent | a3171132012667c61721cd9dda2d237352119155 [diff] |
internal/lsp/source: improve the heuristics for linkable identifiers We should not offer links to variable or type declarations in function scope. Improve our heuristics to check that the declaration object is actually reachable from the package scope. Also push down handling of private import paths, so that the HoverJSON.importPath field can be removed. Change-Id: I6edb3be3c37f479667c838beb49f97e7167b47a1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/385016 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@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.