go/internal/lsp/testdata/godef
Robert Findley 45aeaf7b04 internal/lsp/source: improve the heuristics for linkable identifiers
We should not offer links to variable or type declarations in function
scope. Improve our heuristics to check that the declaration object is
actually reachable from the package scope.

Also push down handling of private import paths, so that the
HoverJSON.importPath field can be removed.

Change-Id: I6edb3be3c37f479667c838beb49f97e7167b47a1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/385016
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-17 17:38:11 +00:00
..
a internal/lsp/source: provide full documentation of builtin types 2022-02-08 17:01:10 +00:00
b internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
broken internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
hover_generics internal/lsp/source: improve the heuristics for linkable identifiers 2022-02-17 17:38:11 +00:00
infer_generics all: prepare for formatting any as 'any' in type strings 2021-11-16 14:26:19 +00:00