commit | bfe69c31e517493760ea658b9f6a04e131ced721 | [log] [tgz] |
---|---|---|
author | Rob Findley <rfindley@google.com> | Thu Jul 29 12:23:14 2021 -0400 |
committer | Robert Findley <rfindley@google.com> | Mon Aug 09 20:21:06 2021 +0000 |
tree | 18e35b02036c02a8edc7be0c6e7d93c19a82ef0f | |
parent | 15eebf7e827fba65297bc7cc502b8541d53aeb6d [diff] |
internal/lsp/fuzzy: add a new fuzzy matcher optimized for Go symbols For workspace symbol requests we use various workarounds to optimize matches for Go symbol paths (specifically, to increase relevance toward the right hand side of a symbol path). These workarounds have a significant impact on performance. The existing fuzzy matcher could also be optimized, but is hard to modify safely. As an experiment, add a new simple-but-fast fuzzy matcher to use as a point of reference. Change-Id: Iacaf149dfaf75f25e13909145f9508c7eaedf1a2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/338689 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Peter Weinberger <pjw@google.com>
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 prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
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.