commit | fec4f28ebb0880b03cfd9dd88788d13d5bdd6620 | [log] [tgz] |
---|---|---|
author | Danish Dua <danishdua@google.com> | Fri Jul 31 17:11:32 2020 +0000 |
committer | Danish Dua <danishdua@google.com> | Tue Aug 04 23:49:16 2020 +0000 |
tree | d569da63cb7e7592d1ff92a68714f849f1aefa10 | |
parent | 25c5b132c91ae199b4c1a796094ae2318b311a7f [diff] |
internal/lsp/source: fix completion prefix for comment completion This CL addresses completion prefix not being overwritten for completion in comments for exported variables/functions/types etc. Instead of setting the surrounding range as cursor position, we expand out from cursor instead to replace the word we're currently on. Fixes golang/go#39262 Change-Id: I90c28562e3ef285ce6848598f8d7bd7545d5c957 Reviewed-on: https://go-review.googlesource.com/c/tools/+/246237 Run-TryBot: Danish Dua <danishdua@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@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.