commit | 25e800de081b193f9fbeaf8f20a50f490441b02b | [log] [tgz] |
---|---|---|
author | Sebastian Chlopecki <sebsebmc@gmail.com> | Fri Sep 20 15:01:33 2019 -0500 |
committer | Rebecca Stambler <rstambler@golang.org> | Tue Oct 22 20:49:18 2019 +0000 |
tree | 2db5d34bbc2ed522b6c00c5a3039e32dd469610e | |
parent | ab6dbf99d1006fd5137765d6950f1e98fcc6b0dd [diff] |
internal/lsp: add some keyword completions For *ast.Ident completion requests, this checks the parent node to see if the token begins a statement and then based on the path adds possible keyword completion candidates. The test lists some cases where this approach cannot provide completion candidates. The biggest thing missing is keywords for file level declarations Updates golang/go#34009 Change-Id: I9d9c0c1eb88e362613feca66d0eea6b88705b9b0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/196664 Run-TryBot: Rebecca Stambler <rstambler@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.