mirror of
https://github.com/golang/go
synced 2024-11-18 18:54:42 -07:00
0a46fa39b0
When proposing unimported package members, we start with packages loaded in-memory first, for three reasons: we know that they're fast, they're fully typed, and they're probably pretty relevant. I hadn't bothered doing that for package names, because the first two reasons aren't very relevant. But the third still is -- loaded packages are a pretty good approximation for in module scope, etc. With this change we do package names the same as members, so relevance should be about as good. Not perfect, but nobody's complained much yet. Fair bit of copy-and-paste, but I don't want to extend the getAllCandidates abstraction outside of the imports package yet. Updates #38104. Change-Id: Ia479181607dff898baee3cd6aa84d1ab61715d19 Reviewed-on: https://go-review.googlesource.com/c/tools/+/226559 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
code_lens.go | ||
comment_test.go | ||
comment.go | ||
completion_builtin.go | ||
completion_format.go | ||
completion_keywords.go | ||
completion_labels.go | ||
completion_literal.go | ||
completion_snippet.go | ||
completion_statements.go | ||
completion.go | ||
deep_completion.go | ||
diagnostics.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 |