commit | 1bd56024c6204c5d493f13273473cf5b3e0e8194 | [log] [tgz] |
---|---|---|
author | Suzy Mueller <suzmue@golang.org> | Fri Jul 26 18:17:04 2019 -0400 |
committer | Suzy Mueller <suzmue@golang.org> | Fri Jul 26 23:07:22 2019 +0000 |
tree | 7a95c877388ad7e4df701be97cca1b0f8407d898 | |
parent | 2e34cfcb95cb3d24b197d58fe6d25046b8f25c86 [diff] |
internal/lsp: format files in packages with errors Packages with errors may still contain files that can be formatted. Try to format the source of the files in packages that have errors. This change will still not format files with parse errors. Updates golang/go#31291 Change-Id: Ia5168d7908948d201eac7f2ee28534022a2d4eb0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/187757 Run-TryBot: Suzy Mueller <suzmue@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.