go/internal/lsp/source/completion
Rebecca Stambler 186a7436c9 internal/lsp/source: respect user's hover kind in signature help
I had originally wanted to create a shared code path for hover in all
cases, but hover has a lot more differences from the documentation in
signature help and completion than I expected. You can't use markdown,
and you probably don't want links--it would take a bigger refactor to
extract something that worked for each feature.

Handling the Structured and SingleLine hover setting also doesn't seem
necessary--those settings are really specific to the way the client
presents the hover, which isn't related to signature help or completion.

For completion, all we need is an extra check on the hover kind for the
NoDocumentation option.

Fixes golang/go#38577

Change-Id: Ib2037906c13f5be26813fcd2c20989e4d1b6c9bd
Reviewed-on: https://go-review.googlesource.com/c/tools/+/266139
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Rebecca Stambler <rstambler@golang.org>
2020-10-29 22:52:41 +00:00
..
completion.go internal/lsp/source: respect user's hover kind in signature help 2020-10-29 22:52:41 +00:00
completion_builtin.go
completion_format.go internal/lsp: clean up unused parameters 2020-10-16 23:51:31 +00:00
completion_keywords.go
completion_labels.go internal/lsp/source/completion: remove unused contexts 2020-09-29 21:00:17 +00:00
completion_literal.go internal/lsp: clean up unused parameters 2020-10-16 23:51:31 +00:00
completion_package.go internal/lsp/source: ignore empty package names for completion 2020-10-02 18:49:44 +00:00
completion_printf.go
completion_printf_test.go
completion_snippet.go internal/lsp/source/completion: move search path to candidate 2020-09-23 01:44:26 +00:00
completion_statements.go
deep_completion.go internal/lsp/source: refactor c.item to support deepSearch in all cases 2020-10-01 23:00:09 +00:00
deep_completion_test.go
util.go
util_test.go