go/internal/lsp
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
..
analysis internal/lsp: add support for extracting non-nested returns 2021-04-27 20:37:52 +00:00
browser all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00
cache internal/lsp: handle panic in fix AST 2021-07-21 16:31:48 +00:00
cmd internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
command internal/lsp/command: minor clean-up of StartDebugging description 2021-06-11 16:06:07 +00:00
debug internal/lsp/source/completion: avoid a panic in package completion 2021-05-10 23:22:37 +00:00
diff
fake gopls/internal/regtest: add a flag to profile didChange handling 2021-07-13 12:52:46 +00:00
fuzzy
helper internal/lsp/protocol: latest version of LSP 2021-04-20 19:23:16 +00:00
lsprpc internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
mod internal/lsp: start parsing go.work file like gopls.mod file 2021-06-24 04:20:31 +00:00
progress internal/lsp: move the progress tracker to the session 2021-06-16 01:01:29 +00:00
protocol internal/lsp/protocol: upgrade generated lsp code to beginning of July 2021-07-07 20:06:16 +00:00
regtest internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
snippet internal/lsp/source/completion: add postfix snippet completions 2021-03-29 17:27:46 +00:00
source internal/lsp/source: workspace symbol improvements for selectors 2021-07-21 20:52:30 +00:00
template internal/lsp: handle out of range panic in template parsing 2021-06-08 16:06:52 +00:00
testdata internal/lsp/semantic: improve semantic token processing 2021-07-14 22:42:09 +00:00
tests internal/lsp/source: add inferred types to generic function hover 2021-06-22 16:07:17 +00:00
README.md
call_hierarchy.go
code_action.go internal/lsp: fix variable reuse bug in code actions 2021-07-13 14:00:16 +00:00
code_lens.go internal/lsp: switch to the new command API 2021-02-09 22:09:28 +00:00
command.go internal/lsp: move the progress tracker to the session 2021-06-16 01:01:29 +00:00
completion.go internal/lsp: support template files 2021-05-05 01:45:45 +00:00
completion_test.go internal/lsp/completion: move postfix completions behind option 2021-03-29 18:55:49 +00:00
debounce.go internal/lsp: adopt bcmills' suggestion for an improved debouncer API 2021-07-13 16:40:23 +00:00
debounce_test.go internal/lsp: adopt bcmills' suggestion for an improved debouncer API 2021-07-13 16:40:23 +00:00
definition.go internal/lsp: fix no definition when importShortcut is link 2021-05-10 21:56:33 +00:00
diagnostics.go internal/lsp: adopt bcmills' suggestion for an improved debouncer API 2021-07-13 16:40:23 +00:00
folding_range.go
format.go
general.go internal/lsp: move the progress tracker to the session 2021-06-16 01:01:29 +00:00
highlight.go internal/lsp: support template files 2021-05-05 01:45:45 +00:00
hover.go internal/lsp: support template files 2021-05-05 01:45:45 +00:00
implementation.go
link.go
lsp_test.go internal/lsp: move the progress tracker to the session 2021-06-16 01:01:29 +00:00
references.go internal/lsp: support template files 2021-05-05 01:45:45 +00:00
rename.go internal/lsp/source: make it an error to rename embedded fields 2021-01-26 13:52:46 +00:00
reset_golden.sh
semantic.go internal/lsp/semantic: improve semantic token processing 2021-07-14 22:42:09 +00:00
server.go internal/lsp: add a setting to batch didChangeWatchedFile notifications 2021-07-08 19:55:54 +00:00
server_gen.go internal/lsp: make ShowDocument RPC available to gopls 2021-05-03 16:38:18 +00:00
signature_help.go internal/lsp: update to latest version of LSP protocol 2021-02-02 11:32:59 +00:00
symbols.go internal/lsp: support template files 2021-05-05 01:45:45 +00:00
text_synchronization.go internal/lsp: signal diagnostic completion if modification failed 2021-07-13 20:49:08 +00:00
workspace.go internal/lsp: report used semantic token order in registerCapability 2021-05-19 16:08:23 +00:00
workspace_symbol.go

README.md

lsp

internal/lsp provides much of the Language Server Protocol (lsp) implementation for gopls.

Documentation for users and contributors can be found in the gopls/doc directory.