commit | 04c2e8eff935f58e9a5568b6b73542f91e0491e6 | [log] [tgz] |
---|---|---|
author | Rohan Challa <rohan@golang.org> | Fri Dec 13 16:06:33 2019 -0500 |
committer | Rohan Challa <rohan@golang.org> | Fri Dec 13 22:12:58 2019 +0000 |
tree | 6baaf9514d3bd054a4fbb5b16d1605119b6dce8d | |
parent | 56463cc14b28e21d0aaf562409cbc8b8b0d4af89 [diff] |
internal/lsp: skip return highlighting if cursor is in arglist of func If the cursor is within an argument that is within a callExpr which is in a return statement, we only want it to highlight the ident that the cursor is in. We do not want it to highlight the entire function. Updates golang/go#34496 Change-Id: If4025660a99fd5df90098e0560a5e9e7260e33c8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/211338 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@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.