commit | 6edc0a871e694a1c8728996c84668863c13d2b4f | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Thu Jan 16 14:54:35 2020 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Fri Jan 17 01:23:04 2020 +0000 |
tree | da7af23e72c8795a0bcf997ccd72a4e0930dc2bf | |
parent | 84cebe10344f1cd161b47a7087b7979c67beab95 [diff] |
internal/lsp/source: score in-memory unimported candidates We were assuming that all in-memory packages were equally useful. That's not true for projects with a large dependency tree. Call into the imports code to score them. While I'm here, score the main module above direct deps. Updates golang/go#36591. Change-Id: I07c56dd3ff7338e76f3643e18d35abc1b52d6763 Reviewed-on: https://go-review.googlesource.com/c/tools/+/215023 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.