commit | d73700863c764c71bd5295aad4e9270146577485 | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Thu Jul 30 00:12:55 2020 -0400 |
committer | Rebecca Stambler <rstambler@golang.org> | Tue Aug 04 17:27:45 2020 +0000 |
tree | 64303374d394fd534748fd0bb8790b43ccafe3a9 | |
parent | 155a6996be55f41eb0cae87c38440a6e8f225c5f [diff] |
internal/lsp: get the correct declaration node when finding references We were returning the AST node for the identifier that the rename was called from, not the actual declaration, so the doc comments weren't getting updated. Fixes golang/go#40463 Change-Id: Id8ba0b0aeb8f42d2aaa561e7a964edcca5202916 Reviewed-on: https://go-review.googlesource.com/c/tools/+/245817 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@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.