mirror of
https://github.com/golang/go
synced 2024-11-18 18:44:42 -07:00
0bc66720f3
Currently we show up to ~100 unimported package names matching the completion prefix. This isn't useful since, assuming the user even wants an unimported package, they will just type more to narrow it down rather than scroll through 100 options. Having so many candidates also slows things down due to per-candidate overhead in gopls and in the LSP client. Now we instead limit to 5 unimported package names. Unimported package members, on the other hand, make sense to list many. The user may want to scroll through because they don't remember the name of what they are looking for. I left the max value at 100. Change-Id: I00e11fa0420758f8db6c7049f80fa156773a5ee6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/218879 Run-TryBot: Muir Manders <muir@mnd.rs> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
comment_test.go | ||
comment.go | ||
completion_builtin.go | ||
completion_format.go | ||
completion_keywords.go | ||
completion_labels.go | ||
completion_literal.go | ||
completion_snippet.go | ||
completion.go | ||
deep_completion.go | ||
diagnostics.go | ||
errors.go | ||
folding_range.go | ||
format_test.go | ||
format.go | ||
highlight.go | ||
hover.go | ||
identifier.go | ||
implementation.go | ||
options.go | ||
references.go | ||
rename_check.go | ||
rename.go | ||
signature_help.go | ||
source_test.go | ||
symbols.go | ||
util.go | ||
view.go | ||
workspace_symbol.go |