mirror of
https://github.com/golang/go
synced 2024-10-01 20:28:33 -06:00
6e8b36d2c7
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>
43 lines
489 B
Go
43 lines
489 B
Go
package workspacesymbol
|
|
|
|
/*@
|
|
workspacesymbol("",
|
|
symbolsx,
|
|
y,
|
|
Number,
|
|
Alias,
|
|
NumberAlias,
|
|
Boolean,
|
|
BoolAlias,
|
|
symbolsFoo,
|
|
fQuux,
|
|
W,
|
|
fBar,
|
|
baz,
|
|
Quux,
|
|
qX,
|
|
Y,
|
|
Baz,
|
|
qDo,
|
|
main,
|
|
Stringer,
|
|
String,
|
|
ABerInterface,
|
|
B,
|
|
ABerA,
|
|
WithEmbeddeds,
|
|
Do,
|
|
ABer,
|
|
ioWriter,
|
|
WorkspaceSymbolVariableA,
|
|
WorkspaceSymbolConstantA,
|
|
WorkspaceSymbolVariableB,
|
|
WorkspaceSymbolStructB,
|
|
bBar,
|
|
)
|
|
workspacesymbol("workspacesymbolvar",
|
|
WorkspaceSymbolVariableA,
|
|
WorkspaceSymbolVariableB,
|
|
)
|
|
*/
|