commit | d308a98e2e82cd44144bc2a94c2309b99bc8dc09 | [log] [tgz] |
---|---|---|
author | Suzy Mueller <suzmue@golang.org> | Fri Aug 16 15:02:11 2019 -0400 |
committer | Suzy Mueller <suzmue@golang.org> | Mon Aug 19 17:23:55 2019 +0000 |
tree | 857b56c4bcdac275cc66e9c4e6de0d83c599f94e | |
parent | 6889da9d54793ea182dd07be58824cf86bf0746b [diff] |
internal/lsp: prefer inserting imports into existing blocks Insert imports into existing multiline import declarations when possible. Logic for choosing where to insert taken from golang.org/x/tools/go/ast/astutil. Change-Id: Ie5ad96d5e3d5db2e92a2c05a6104d14a4a192ed3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/190598 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@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 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.