mirror of https://github.com/golang/go.git
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> |
||
|---|---|---|
| .. | ||
| add_import_test.go | ||
| configuration_test.go | ||
| debugserver_test.go | ||
| definition_test.go | ||
| embed_test.go | ||
| failures_test.go | ||
| fix_test.go | ||
| formatting_test.go | ||
| generate_test.go | ||
| highlight_test.go | ||
| hover_test.go | ||
| imports_test.go | ||
| link_test.go | ||
| misc_test.go | ||
| references_test.go | ||
| semantictokens_test.go | ||
| shared_test.go | ||
| template_test.go | ||
| vendor_test.go | ||