commit | 78b158585360beccadc3faac6e35759f491831f3 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Tue Nov 03 15:56:12 2020 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Thu Nov 05 22:03:10 2020 +0000 |
tree | c47f3a9ca3f76eb5ccc2bf0407fee0473b2be88a | |
parent | bc9fc8d8c4bcf2d2693570f0fd7457a89740c895 [diff] |
internal/lsp/fake: reflect on-disk changes in clean buffers If an open buffer is unmodified from the on-disk version, and that on-disk content changes, VS Code will update the buffer with the change. This is relevant for our quick fixes that use the go command to make changes to go.mod/sum -- we want tests to pick up the changes without needing to close/reopen the buffer. For whatever reason, VS Code doesn't do this for deletions, and it made the implementation easier, so I followed suit. I also mimicked its behavior of sending both in-memory and on-disk change notifications. Change-Id: I838a64b2f48f3cbe1a86035293923951b53aecf3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/267577 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> 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 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.