commit | 9b825036310f9bd3e73b8b85acee70fb11974ef8 | [log] [tgz] |
---|---|---|
author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | Fri May 08 16:36:41 2020 -0400 |
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | Fri May 08 20:51:52 2020 +0000 |
tree | b6f6069735fc11a125708135df2a7c4e58fb03f9 | |
parent | 19e4049dcde33004d7d56018a1acd06e0aa31170 [diff] |
internal/lsp/source: return nothing for empty workspace symbol queries In VS Code, a workspace symbol query with an empty query parameter is issued as soon as users open the symbol search box. There are many symbols in a reasonably sized project and the chance that a user finds a result in the randomly chosen 100 items out of those many symbols is low. Thus, this first query is often useless. Ignore this query and return an empty result immediately. Change-Id: Idc7703c8e460c9115ecbcf198907acc9c82add4d Reviewed-on: https://go-review.googlesource.com/c/tools/+/232986 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.