commit | c0b9fb59f72f14cd18bb029942e14b7c2cf4a5d7 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Tue Feb 08 15:24:08 2022 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Wed Feb 09 19:35:26 2022 +0000 |
tree | 7f7d051ec976ece060a9f6d17c116edb1746334e | |
parent | 9b156eeb91eecde0cd0a78688c0697605c288ba1 [diff] |
internal/lsp/analysis/undeclaredname: suppress impossible quick fixes Reading the code and running the tests, it appears we only support quick fixes for undeclared name errors inside function bodies. Don't offer them in other places. The specific situation raised was type constraints, so that's what I tested even though the problem was much broader. Also add actual error messages where we had empty strings. Fixes golang/go#50935. Change-Id: I8dadcb6e4301bf22cbe7fe5d66064aafeef02690 Reviewed-on: https://go-review.googlesource.com/c/tools/+/384117 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Robert Findley <rfindley@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.