gopls: make 'fastfuzzy' the default fuzzy matcher for workspace symbols

For dense queries, the fastfuzzy matcher is around 3x faster. It also
has improved scoring for exact matches of CamelCase words or path
segments.

Fixes golang/go#50016

Change-Id: I04cae11cbc54de59d54733836876a9ee759c80b6
Reviewed-on: https://go-review.googlesource.com/c/tools/+/382394
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Robert Findley 2022-02-02 09:44:54 -05:00
parent ea5e1dc8bc
commit eeb95ae5ed
3 changed files with 3 additions and 3 deletions

View File

@ -398,7 +398,7 @@ Must be one of:
* `"FastFuzzy"`
* `"Fuzzy"`
Default: `"Fuzzy"`.
Default: `"FastFuzzy"`.
##### **symbolStyle** *enum*

View File

@ -185,7 +185,7 @@ var GeneratedAPIJSON = &APIJSON{
{Value: "\"FastFuzzy\""},
{Value: "\"Fuzzy\""},
},
Default: "\"Fuzzy\"",
Default: "\"FastFuzzy\"",
Status: "advanced",
Hierarchy: "ui.navigation",
},

View File

@ -133,7 +133,7 @@ func DefaultOptions() *Options {
},
NavigationOptions: NavigationOptions{
ImportShortcut: Both,
SymbolMatcher: SymbolFuzzy,
SymbolMatcher: SymbolFastFuzzy,
SymbolStyle: DynamicSymbols,
},
CompletionOptions: CompletionOptions{