go/internal/lsp/fuzzy
Robert Findley 21ca3b3a93 internal/lsp/source: parse symbol queries when using fastfuzzy
Hook up the fastfuzzy symbol matcher to our fzf-style query parsing, for
consistency with the (slow) fuzzy matcher.

In the past I had wanted to implement this natively inside the
SymbolMatcher, but it is much simpler to keep using combinators. In the
common case we'll just be using fuzzy matching.

For golang/go#50016

Change-Id: I1c62c8c8e9d29da570cb1e4034c2b10782529081
Reviewed-on: https://go-review.googlesource.com/c/tools/+/376362
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
2022-01-19 15:06:07 +00:00
..
input.go internal/lsp: update the fuzzy matcher to operate on chunks 2021-08-09 20:21:00 +00:00
input_test.go internal/lsp: update the fuzzy matcher to operate on chunks 2021-08-09 20:21:00 +00:00
matcher.go internal/lsp: update the fuzzy matcher to operate on chunks 2021-08-09 20:21:00 +00:00
matcher_test.go internal/lsp/fuzzy: fix return value on no match 2020-08-28 15:37:48 +00:00
symbol.go internal/lsp/source: parse symbol queries when using fastfuzzy 2022-01-19 15:06:07 +00:00
symbol_test.go internal/lsp/fuzzy: consider whole word matching in SymbolMatcher 2022-01-19 15:05:25 +00:00