commit | 11e13f1c3fd785235d53805c8294f58aaf953c8b | [log] [tgz] |
---|---|---|
author | Peter Weinberger <pjw@google.com> | Tue Nov 19 08:42:45 2019 -0500 |
committer | Peter Weinberger <pjw@google.com> | Tue Nov 19 17:57:05 2019 +0000 |
tree | 954c3cdbfaa0aa0a836c58bef5808b02a647ab11 | |
parent | 07fc4c7f2b9857711f6306c76424246e8d6eab64 [diff] |
internal/lsp: fix the return type of CodeAction() Paul Jolly observes that returning interface{} is not helpful. Now CodeAction() returns []CodeAction. The type in typescript is (Command | CodeAction)[] | null but the choice is up to gopls, which returns []CodeAction. Fixes golang/go#35688, golang/go#35679 Change-Id: I91c22bb0752431954ae2f993cb7b44726cf60e5c Reviewed-on: https://go-review.googlesource.com/c/tools/+/207898 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.