commit | 576e169c3de7dbdc7c4194f727f813fb056acb7c | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Fri Oct 02 12:30:10 2020 -0400 |
committer | Rebecca Stambler <rstambler@golang.org> | Mon Oct 05 18:50:03 2020 +0000 |
tree | 9abbaacf57607e643a874d8c2be7176bfa5c4ed1 | |
parent | 1ccce621de7b9427a5a1f2647c3ce3d7261cff91 [diff] |
internal/lsp: fix hover for builtin error method (Error) Looks like this may never have worked. "Error" does not appear in the builtin package's scope, so we have to look up "error" and then find the method. A little convoluted, but it works. Change-Id: I5fe4e96d5c51a1fdc683e44b9a80e0cbdab85422 Reviewed-on: https://go-review.googlesource.com/c/tools/+/259143 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Peter Weinberger <pjw@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.