| commit | be40034de7c10b916074e94404872c6615bb8613 | [log] [tgz] |
|---|---|---|
| author | Michael Matloob <matloob@golang.org> | Fri Feb 04 18:49:09 2022 -0500 |
| committer | Michael Matloob <matloob@golang.org> | Tue Feb 15 17:15:32 2022 +0000 |
| tree | b628b74d4b62fecc2b61366ed395d6f4b65fb7d1 | |
| parent | 2405dce5ada45d6c4ec827f58d96dcb8c4d1b33c [diff] |
internal/lsp: add support for formatting go.work files Wired through support for calling x/mod's go.work formatter on go.work files into LSP. Tested it by hand in editor using the "Format Document" command. Added a test case to workspace_test regtest, though I'm not totally sure the test is correct. For golang/go#50930 Change-Id: Ied052ded514bb36f561737698f0e2d7b488158e7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/383774 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@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 install.
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 install golang.org/x/tools/...@latest.
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.