mirror of
https://github.com/golang/go
synced 2024-11-18 20:54:40 -07:00
fe7c687bb5
Downranking builtins causes weird interplay with other completion candidates due to fuzzy matching. For example: notNil := 123 var foo *int = nil<> ranks "notNil" before "nil" in the builtin list, which is counter productive. Change it to not downrank builtins. In my testing with this change, builtins never were ranked above lexical items with similar names. I think this is because the "natural" order of completion items puts builtins last, and we stable sort items by score, so their relative order is preserved. Change-Id: Ifbad02be205e3cb26c1d4ce500b77690e7ac5b04 Reviewed-on: https://go-review.googlesource.com/c/tools/+/193897 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
analysis.go | ||
completion_format.go | ||
completion_snippet.go | ||
completion.go | ||
deep_completion.go | ||
diagnostics_test.go | ||
diagnostics.go | ||
enums.go | ||
folding_range.go | ||
format.go | ||
highlight.go | ||
hover.go | ||
identifier.go | ||
imports_test.go | ||
imports.go | ||
options.go | ||
references.go | ||
rename_check.go | ||
rename.go | ||
signature_help.go | ||
source_test.go | ||
suggested_fix.go | ||
symbols.go | ||
util.go | ||
view.go |