commit | aa29eadba215f2fa2e1c7049da3f590db4e59683 | [log] [tgz] |
---|---|---|
author | Rohan Challa <rohan@golang.org> | Thu Nov 21 19:26:14 2019 -0500 |
committer | Rohan Challa <rohan@golang.org> | Mon Dec 02 19:01:20 2019 +0000 |
tree | c0525e9c19fc05bb6a7666afd3a4c47b64405342 | |
parent | 713d4893e8747c466a3cf368f7a438691793eb1a [diff] |
internal/lsp: add control flow highlighting for functions When the cursor is on a return statement or in the function declaration it will highlight the control flow for the function. It will also highlight individual fields and results if the cursor is specifically in one. Fixes #34496 Change-Id: I71d460cd174a8fbc61d119b9633c3c3ecbde2af9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/208267 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.