go/internal/lsp/source
Rob Findley 7f68387a4a internal/lsp/source: workspace symbol improvements for selectors
This CL adds various improvements for matching nested fields and
methods:
- Limit the symbols we produce to not show unqualified fields/methods,
  and not show partial package paths.
- Handle embedded selectors, by trimming the package path.
- Improve the internal API used by symbolizers to operate on named
  chunks.

Fixes golang/go#46997

Change-Id: I86cbe998adbb8e52549c937e330896134c375ed7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/334531
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-07-21 20:52:30 +00:00
..
completion lsp/completion: support completing to Elem() types 2021-06-09 15:58:30 +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 internal/lsp/source: move diagnosticsDelay out of experimental 2021-07-08 19:56:33 +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: change generated variable names to be more verbose 2021-06-09 14:15:55 +00:00
fix.go internal/lsp: fix support for SourceFixAll code actions 2021-03-24 23:51:27 +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: address some staticcheck warning 2021-06-03 03:03:28 +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/source: add inferred types to generic function hover 2021-06-22 16:07:17 +00:00
identifier.go internal/lsp: improve package search in a couple places 2021-07-13 13:36:40 +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
known_packages.go internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +00:00
options.go internal/lsp/source: move diagnosticsDelay out of experimental 2021-07-08 19:56:33 +00:00
options_test.go internal/lsp: restructure user options (CL 278433 continued) 2020-12-30 21:54:22 +00:00
references.go internal/lsp/source: re-parse if needed when collecting identifier info 2021-05-18 02:12:20 +00:00
rename.go internal/lsp/source: fix comment update during rename for short variable declarations 2021-07-12 21:21:15 +00:00
rename_check.go internal/lsp/source: eliminate GetTypeCheckDiagnostics 2021-03-03 21:21:28 +00:00
signature_help.go internal/lsp/source: re-parse if needed when collecting identifier info 2021-05-18 02:12:20 +00:00
source_test.go internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +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: improve package search in a couple places 2021-07-13 13:36:40 +00:00
view.go internal/lsp: improve package search in a couple places 2021-07-13 13:36:40 +00:00
workspace_symbol.go internal/lsp/source: workspace symbol improvements for selectors 2021-07-21 20:52:30 +00:00
workspace_symbol_test.go internal/lsp/source: workspace symbol improvements for selectors 2021-07-21 20:52:30 +00:00