commit | 8f81e2e6d4783b810d835c7e02306718a644d4bd | [log] [tgz] |
---|---|---|
author | Rohan Challa <rohan@golang.org> | Thu Mar 05 09:51:57 2020 -0500 |
committer | Rohan Challa <rohan@golang.org> | Fri Mar 27 18:31:06 2020 +0000 |
tree | 1d3f57b122f8a1fdab7727cb82b50b501e72fa3d | |
parent | 42235f63843a8ccb7d3f2e22056e056876623ed5 [diff] |
internal/lsp/analysis: add quickfix for undeclared variable This change adds a quick fix for diagnostics that have an error message of the form "undeclared name: %s". It provides a quick fix to add a new variable with that name. Updates golang/go#34644 Change-Id: I6534ee79d1770d1a62bac169c3c7e52e2443f39e Reviewed-on: https://go-review.googlesource.com/c/tools/+/222237 Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@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 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.