commit | a3171132012667c61721cd9dda2d237352119155 | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Thu Feb 10 16:30:45 2022 -0500 |
committer | Robert Findley <rfindley@google.com> | Thu Feb 17 17:37:50 2022 +0000 |
tree | c71665ae2169f6eaa54077afd573789ba63ad759 | |
parent | 1f3875c3792b279cfe8857dcdfb3e6327a7f4b89 [diff] |
internal/lsp/source: fix hover on generic type declarations Hover on type specs was using the RHS of the type declaration and then later rebuilding the declaration syntax. It was thereby dropping type parameter lists. Fix this by capturing the entire *TypeSpec for the signature, and simply dropping comments from the node before formatting, so that they are not duplicated. Change-Id: I58724e65bd1f2aada1a5c04e4c61a059bed8357a Reviewed-on: https://go-review.googlesource.com/c/tools/+/385015 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.