commit | 6a7cf6184f5cc49c6638c3ad76a9254719f7e082 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Fri May 01 14:27:15 2020 -0400 |
committer | Heschi Kreinick <heschi@google.com> | Wed May 27 17:50:42 2020 +0000 |
tree | bd7b910bf608c066f365b564464bcb95beaee8f3 | |
parent | 688b3c5d9fa5ae5ca974e3c59a6557c26007e0e6 [diff] |
internal/lsp/source: fix cached package name matching I made a silly mistake and checked the prefix on the import path rather than the package name, which obviously breaks everything other than top-level stdlib packages. Fix that, then tweak the ranking a bit. We now get deep completions, which is nice, but filled up the results too fast. Now instead of 5 results of any kind, we give up after 5 packages searched. Change-Id: I15b293f68f17531077da9ffe791a38ccc0e129f4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/231617 Run-TryBot: Heschi Kreinick <heschi@google.com> 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.