commit | 579903b3add4b11d5d9efc63dbdafb4e26e193c0 | [log] [tgz] |
---|---|---|
author | Rohan Challa <rohan@golang.org> | Tue Jan 14 11:10:54 2020 -0500 |
committer | Rohan Challa <rohan@golang.org> | Tue Jan 14 22:04:35 2020 +0000 |
tree | 8cae4de8e7c10ba6b271d482cc0a306a6249df2d | |
parent | 3be912efc39582a0bcd69bfe420b47aa254f728e [diff] |
internal/lsp: add mapper for go.mod files This change adds a protocol.ColumnMapper when parsing go.mod files. This will prevent us from having to worry about line and column offsets, specifically when converting from the x/mod/modfile position to a span.Span. Updates golang/go#31999 Change-Id: Iacdfb42d61dfea9b5f70325cf5a87c9575f8f345 Reviewed-on: https://go-review.googlesource.com/c/tools/+/214699 Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@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.