1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:44:40 -07:00
go/internal/lsp/testdata/godef/b
Henry Wong 01b81f4f93 internal/lsp: support hover for *ast.ImportSpec
Since 'IdentifierInfo' doesn't contain ast node of import spec,
gopls will construct an empty string under plaintext mode and
'```go\n\n```' under markdown mode for *ast.ImportSpec. For now,
the hovering result of import spec is the corresponding node
format.

Fixes golang/go#33000

Change-Id: I4c25782ddb5bcc557ace82f46d480316b0b90509
GitHub-Last-Rev: 150728f401c5f9b161b557584ad3250f46e50869
GitHub-Pull-Request: golang/tools#134
Reviewed-on: https://go-review.googlesource.com/c/tools/+/185357
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-07-11 17:06:56 +00:00
..
b.go internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
b.go.golden internal/lsp: support hover for *ast.ImportSpec 2019-07-11 17:06:56 +00:00
c.go internal/lsp: add definition tests from godef 2018-11-19 18:17:22 +00:00
c.go.golden internal/lsp: enable enhanced hover by default 2019-05-16 17:30:22 +00:00
c.go.saved internal/lsp: add definition tests from godef 2018-11-19 18:17:22 +00:00
e.go internal/lsp: fix definition tests to use golden files 2019-05-10 21:06:55 +00:00
e.go.golden internal/lsp: enable enhanced hover by default 2019-05-16 17:30:22 +00:00