commit | 93eecc3576be04bf4c262289a280dfe13690c317 | [log] [tgz] |
---|---|---|
author | Danish Dua <danishdua@google.com> | Fri Aug 28 18:18:58 2020 -0400 |
committer | Danish Dua <danishdua@google.com> | Fri Sep 04 14:04:24 2020 +0000 |
tree | 466d8d1ba204cfe810a8b20f0ae84a28c5c688e3 | |
parent | af4cc2cd812e069e5ce442fe9aea34a9a9386522 [diff] |
internal/lsp: support for package completion in all files This change adds support for package completion in all files at valid positions. By parsing expressions from an invalid file, we can check if the cursor is at a position where package completion would be a valid suggestion. These are positions above any other statements or declaration or at prefix of the keyword pacakge above these statements/declarations. This also introduces imporved end of file handling in completion. Change-Id: I2a865d018f58c3a98b69fb4100d186b507d123bd Reviewed-on: https://go-review.googlesource.com/c/tools/+/251618 Run-TryBot: Danish Dua <danishdua@google.com> 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 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.