go/internal/lsp/source
Jean-Hadrien Chabran cd7c003cd3 internal/lsp: add support for hovering runes
Enable to hover runes found in basic literals in various forms.
When a rune is found, the hover message provides a summary composed of a
printable version (if it exists) of the rune, its codepoint and its name.

Behaviour varies slightly depending on the basic literal: rune literals
always display the summary when hovered, string literals only display it
when an escaped rune sequence is found to avoid providing unnecessary
information, and finally number literals only when expressed as a
hexadecimal number whose size ranges from one to eight bytes.

Fixes golang/go#38239

Change-Id: I024fdd5c511a45c7c285e200ce1eda0669a45491
Reviewed-on: https://go-review.googlesource.com/c/tools/+/321810
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Rebecca Stambler <rstambler@golang.org>
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-09-14 22:22:34 +00:00
..
completion internal/lsp/source/completion: exclude 'any' from lexical results 2021-08-12 21:18:49 +00:00
add_import.go internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +00:00
api_json.go gopls: consistently capitalize enum variants for symbolStyle 2021-09-03 18:04:29 +00:00
call_hierarchy.go internal/lsp: include function literals in outgoing call hierarchy 2021-06-01 22:58:04 +00:00
code_lens.go internal/lsp: switch to the new command API 2021-02-09 22:09:28 +00:00
comment.go internal/lsp/source: refactor commentToMarkdown function 2021-05-19 23:19:09 +00:00
comment_test.go internal/lsp/source: refactor commentToMarkdown function 2021-05-19 23:19:09 +00:00
diagnostics.go internal/lsp: fix support for SourceFixAll code actions 2021-03-24 23:51:27 +00:00
extract.go internal/lsp: send "extract variable" edits ordered 2021-08-02 20:18:28 +00:00
fix.go internal/lsp: send "extract variable" edits ordered 2021-08-02 20:18:28 +00:00
folding_range.go internal/lsp: fix folding range for block comments 2021-06-07 15:13:07 +00:00
format.go internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
format_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
gc_annotations.go internal/lsp: key GC details off package ID 2021-03-02 22:01:38 +00:00
highlight.go internal/lsp/source: fix Highlight for std and 3rd-party packages 2021-04-05 22:17:18 +00:00
hover.go internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
identifier.go internal/lsp/source: consider test variants when finding pkg from pos 2021-09-08 14:51:59 +00:00
identifier_test.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
implementation.go internal/lsp/source: consider test variants when finding pkg from pos 2021-09-08 14:51:59 +00:00
known_packages.go internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +00:00
options.go gopls: consistently capitalize enum variants for symbolStyle 2021-09-03 18:04:29 +00:00
options_test.go gopls: consistently capitalize enum variants for symbolStyle 2021-09-03 18:04:29 +00:00
references.go internal/lsp/source: recursively search for qualified objects 2021-08-17 02:54:26 +00:00
rename.go internal/lsp/source: recursively search for qualified objects 2021-08-17 02:54:26 +00:00
rename_check.go internal/lsp: use LookupParent for finding scope 2021-08-11 21:39:32 +00:00
signature_help.go internal/lsp: skip signature help within a string literal 2021-07-26 16:44:13 +00:00
source_test.go internal/lsp: add support for hovering runes 2021-09-14 22:22:34 +00:00
symbols.go internal/lsp: don't show blank identifiers in outline 2020-10-09 01:09:51 +00:00
types_format.go internal/lsp: address some staticcheck warning 2021-06-03 03:03:28 +00:00
util.go internal/lsp/source: consider test variants when finding pkg from pos 2021-09-08 14:51:59 +00:00
view.go internal/lsp/source: consider test variants when finding pkg from pos 2021-09-08 14:51:59 +00:00
workspace_symbol.go internal/lsp: export and move some objects related to metadata 2021-08-15 15:51:49 +00:00
workspace_symbol_test.go internal/lsp/source: change symbol matcherFuncs to accept chunks 2021-08-09 20:20:24 +00:00