(query: string)
| 322 | ] |
| 323 | |
| 324 | export async function workspaceSymbol(query: string) { |
| 325 | return run((client) => |
| 326 | client.connection |
| 327 | .sendRequest("workspace/symbol", { |
| 328 | query, |
| 329 | }) |
| 330 | .then((result: any) => result.filter((x: LSP.Symbol) => kinds.includes(x.kind))) |
| 331 | .then((result: any) => result.slice(0, 10)) |
| 332 | .catch(() => []), |
| 333 | ).then((result) => result.flat() as LSP.Symbol[]) |
| 334 | } |
| 335 | |
| 336 | export async function documentSymbol(uri: string) { |
| 337 | return run((client) => |