go/gopls/internal/regtest
Rob Findley f09387104b internal/lsp/source: improve logic for finding full syntax in hover
When enriching identifier info with full syntax, it's cleaner to find
the enclosing decl. Use the full decl in hover if we were unable to find
a node in the original type-checked package.

Update the regtest to exercise hovering in a non-workspace package.

Updates golang/go#46158

Change-Id: Ic1772a38fb1758fb57a09da9483a8853cc5498f1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/333690
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-07-26 20:35:51 +00:00
..
bench gopls/internal/regtest: add a flag to profile didChange handling 2021-07-13 12:52:46 +00:00
codelens internal/lsp/cache: invalidate packages in setMetadata 2021-07-08 19:53:41 +00:00
completion internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
diagnostics internal/lsp/regtest: allow for unsent diagnostics in TestResolveImportCycle 2021-07-08 19:58:58 +00:00
misc internal/lsp/source: improve logic for finding full syntax in hover 2021-07-26 20:35:51 +00:00
modfile internal/lsp/regtest: run one quick fix at a time in TestUnknownRevision 2021-05-03 21:45:16 +00:00
watch gopls/internal/regtest: clean up TestFillReturnsPanic 2021-06-03 18:03:08 +00:00
workspace internal/lsp: start parsing go.work file like gopls.mod file 2021-06-24 04:20:31 +00:00