go/internal/lsp/source
Rebecca Stambler 34cd474b99 internal/lsp: use an enum for GC annotations settings
The annotations map should use an enum to indicate expected values. For
now, we reuse the EnumValues to expose the information in the settings.
Later, we'll create a separate EnumKeys field to expose this information
more correctly.

Also, adjust some of the logic that applies the settings because it was
incorrect.

Both gopls/doc/settings.md and internal/lsp/source/api_json.go are
generated files.

Updates golang/go#42961

Change-Id: Ifb032b70caaae73defe9a540df20d098d313e68e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/280354
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
2020-12-28 16:22:55 +00:00
..
completion internal/lsp/source: omit assign stmt LHS in RHS completion 2020-12-07 20:43:33 +00:00
api_json.go internal/lsp: use an enum for GC annotations settings 2020-12-28 16:22:55 +00:00
call_hierarchy.go internal/lsp/source: do not panic in "var func" outgoing callhierarchy 2020-12-26 21:56:59 +00:00
code_lens.go internal/lsp/source: only show "run file benchmarks" if available 2020-12-17 23:51:54 +00:00
command.go internal/lsp: add go get quick fix on failing imports 2020-12-03 19:34:02 +00:00
comment.go internal/lsp/source: use space character in markdown formatting 2020-08-26 03:44:07 +00:00
comment_test.go
diagnostics.go internal/typesinternal: use Go 1.16 metadata for go/types errors 2020-12-07 17:42:14 +00:00
extract.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
folding_range.go internal/lsp/source: move completion to its own package 2020-09-08 19:19:08 +00:00
format.go internal/lsp, gopls: recover from go-diff panics 2020-12-17 16:56:54 +00:00
format_test.go internal/lsp, gopls: recover from go-diff panics 2020-12-17 16:56:54 +00:00
gc_annotations.go internal/lsp: use an enum for GC annotations settings 2020-12-28 16:22:55 +00:00
highlight.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
hover.go internal/lsp: add ?utm_source=gopls to links to pkg.go.dev 2020-11-16 00:15:58 +00:00
identifier.go internal/lsp: fix godef for embedded type aliases 2020-11-23 15:59:28 +00:00
identifier_test.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
implementation.go internal/lsp/source: move completion to its own package 2020-09-08 19:19:08 +00:00
options.go internal/lsp: use an enum for GC annotations settings 2020-12-28 16:22:55 +00:00
options_test.go internal/lsp: use an enum for GC annotations settings 2020-12-28 16:22:55 +00:00
references.go internal/lsp: disable support for symlinks pending decision 2020-12-01 05:30:39 +00:00
rename.go internal/lsp: do not rename in compiler directive comments 2020-11-03 16:52:30 +00:00
rename_check.go internal/lsp/source: handle nil pointer in rename_check.go 2020-10-23 17:41:41 +00:00
signature_help.go internal/lsp/source: respect user's hover kind in signature help 2020-10-29 22:52:41 +00:00
source_test.go internal/lsp, gopls: recover from go-diff panics 2020-12-17 16:56:54 +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/source: fix default param name generation 2020-12-07 19:19:02 +00:00
util.go internal/lsp: disable support for symlinks pending decision 2020-12-01 05:30:39 +00:00
view.go internal/lsp: add an orphaned file diagnostic for nested modules 2020-12-10 16:46:18 +00:00
workspace_symbol.go internal/lsp/source: simplify workspace symbol package collection 2020-12-07 18:57:54 +00:00
workspace_symbol_test.go internal/lsp/source: support some fzf-like tokens in symbol matching 2020-09-08 16:35:05 +00:00