1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:04:40 -07:00
go/internal/lsp/source
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
..
analysis.go internal/lsp: add some trace spans to important functions 2019-07-03 19:14:57 +00:00
completion_format.go internal/lsp: add documentation to completion items 2019-07-09 19:19:00 +00:00
completion_snippet.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
completion.go internal/lsp: add documentation to completion items 2019-07-09 19:19:00 +00:00
deep_completion.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
diagnostics_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
diagnostics.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
enums.go internal/lsp: switch completion item tests to using the enum strings 2019-04-17 17:57:43 +00:00
format.go internal/lsp: add some trace spans to important functions 2019-07-03 19:14:57 +00:00
highlight.go internal/lsp: add some trace spans to important functions 2019-07-03 19:14:57 +00:00
hover.go internal/lsp: support hover for *ast.ImportSpec 2019-07-11 17:06:56 +00:00
identifier.go internal/lsp: support hover for *ast.ImportSpec 2019-07-11 17:06:56 +00:00
references.go internal/lsp: rename identifiers in test packages 2019-07-09 21:17:00 +00:00
rename_check.go internal/lsp: check no errs for assignability rename 2019-07-08 20:09:55 +00:00
rename.go internal/lsp: rename identifiers in test packages 2019-07-09 21:17:00 +00:00
signature_help.go internal/lsp: add documentation to completion items 2019-07-09 19:19:00 +00:00
source_test.go internal/lsp: stop making background contexts everywhere 2019-07-11 16:38:52 +00:00
suggested_fix_experimental.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
suggested_fix.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
symbols.go internal/lsp: add some trace spans to important functions 2019-07-03 19:14:57 +00:00
util.go internal/lsp: move function signature into detail instead of label 2019-07-03 21:07:46 +00:00
view.go internal/lsp: stop making background contexts everywhere 2019-07-11 16:38:52 +00:00