1
0
mirror of https://github.com/golang/go synced 2024-10-01 07:28:35 -06:00
go/internal/lsp/tests
Heschi Kreinick 88c5938121 internal/lsp/source: propose exports for unimported packages
When a user completes rand.<>, propose rand.Seed (from math/rand) and
rand.Prime (from crypto/rand), etc.

Because we don't necessarily have type checking information for
unimported packages, I had to add shortcut cases to a number of
functions around the completion code. Better suggestions welcome.

Change-Id: I7822dc75c86b24156963e7bdd959443f4f2748b1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/204819
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Muir Manders <muir@mnd.rs>
2019-11-04 21:31:03 +00:00
..
completion.go internal/lsp/source: propose exports for unimported packages 2019-11-04 21:31:03 +00:00
diagnostics.go internal/lsp: use the AST to get correct ranges 2019-10-22 16:21:03 +00:00
links.go tools/gopls: add command line support for links 2019-11-01 17:18:15 +00:00
tests.go tools/gopls: add cmd support for symbols 2019-11-01 17:43:07 +00:00