commit | 7d206e10da11c2c24ecc75fc000f2924f811b649 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Fri Nov 08 13:43:54 2019 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Fri Nov 08 19:30:12 2019 +0000 |
tree | fe1c0161dea9bc58ca69c02ba99c4b85bec349e4 | |
parent | 46f5a7f28bf039b3d32ebaabf53d634aff227fb1 [diff] |
internal/lsp/source: start import diffs at byte 0 I assumed that f.Pos() would be the first byte of the file, but it's the position of the package declaration. This kills the file. Just use 0. Fixes golang/go#35458. Change-Id: Ic77c93344c71435ef8e5624c2f2defb619139a15 Reviewed-on: https://go-review.googlesource.com/c/tools/+/206145 Run-TryBot: Heschi Kreinick <heschi@google.com> 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.