tools/internal/lsp/source
Rebecca Stambler 9eb0fb1732 internal/lsp: support comments on hover for typenames, funcs, fields
This change adds support for showing documentation when hovering over any
named type or function. For now, we show the entire comment associated
with the type; in future CLs, we should refine our approach and perhaps
only show the first line or sentence.

Updates golang/go#29151

Change-Id: Ib33284747b19acba67d79fb55c916574c3dd8073
Reviewed-on: https://go-review.googlesource.com/c/tools/+/172958
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-04-22 16:38:38 +00:00
..
analysis.go internal/lsp: use new go/packages LoadMode to get TypesSizes 2019-03-29 21:52:04 +00:00
completion.go internal/lsp: improve signatureHelp in various cases 2019-04-17 18:10:49 +00:00
diagnostics.go internal/lsp: set the diagnostic source earlier 2019-04-17 00:57:43 +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: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
highlight.go internal/lsp: add support for document highlight 2019-03-26 19:08:20 +00:00
hover.go internal/lsp: support comments on hover for typenames, funcs, fields 2019-04-22 16:38:38 +00:00
identifier.go internal/lsp: support comments on hover for typenames, funcs, fields 2019-04-22 16:38:38 +00:00
signature_help.go internal/lsp: improve signatureHelp in various cases 2019-04-17 18:10:49 +00:00
symbols.go internal/lsp: fix crash when there is a type alias to a struct in the symbols code 2019-04-16 15:17:39 +00:00
view.go internal/lsp: use ast.Nodes for hover information 2019-04-18 23:52:43 +00:00