1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:54:43 -07:00
go/internal/lsp/cmd/test
Daisuke Suzuki 6e8b36d2c7 internal/lsp: add support for workspace symbol
This change adds support for the LSP workspace/symbol. Unlike
documentSymbol, the target is symbols that exist not only in a specific
file, but also in the current or imported packages. It returns symbols
whose name contains the query string of the request(case-insensitive),
or all symbols if the query string is empty.

However, the following is not implemented:
- Setting of deprecated and containerName fields in SymbolInformation
- Consideration of WorkspaceClientCapabilities
- Progress support
- CLI support

Updates golang/go#33844

Change-Id: Id2a8d3c468084b9d44228cc6ed2ad37c4b52c405
Reviewed-on: https://go-review.googlesource.com/c/tools/+/213317
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-02-05 19:03:17 +00:00
..
check.go internal/lsp: miscellaneous cleanup 2019-12-30 22:03:29 +00:00
cmdtest.go internal/lsp: add support for workspace symbol 2020-02-05 19:03:17 +00:00
definition.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
folding_range.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
format.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
highlight.go tools/gopls: add cmd support for highlight 2019-11-26 20:36:08 +00:00
implementation.go internal/lsp: store workspace package IDs with package paths 2020-01-09 22:04:34 +00:00
imports.go internal/lsp: fix golden generation for import tests 2019-12-05 21:54:53 +00:00
links.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
prepare_rename.go tools/gopls: add cmd support for prepare_rename 2020-02-04 07:42:04 +00:00
references.go internal/lsp: add tests for references includeDeclaration setting 2020-01-23 01:39:50 +00:00
rename.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
signature.go internal/lsp: use AST to construct placeholders 2019-11-25 01:11:57 +00:00
suggested_fix.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
symbols.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00