commit | 87e6e099c6fe5a0b09988620ac29cd758e123efb | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Tue Sep 17 19:48:41 2019 -0700 |
committer | Rebecca Stambler <rstambler@golang.org> | Wed Oct 02 20:07:45 2019 +0000 |
tree | b4ff3d508bbadbee5c7e3446f1f63d877f5e24aa | |
parent | 8a18b87bf6638fba3046ba9db683a3b7a13756fb [diff] |
internal/lsp: don't overwrite suffix when inserting completion In cases like "fmt.Pr<>int()" we previously would replace "Print" with the new completion, yielding for example "fmt.Println()". Now we no longer overwrite, yielding "fmt.Println()int()". There are some cases where overwriting the suffix is what the user wants, but it is hard to tell, so for now stick with the more expected behavior of not overwriting. Fixes golang/go#34011. Change-Id: I8c3ccd8948245c27b52408ad508d8e01dc163ef4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/196119 Run-TryBot: Rebecca Stambler <rstambler@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.