MCPcopy Create free account
hub / github.com/arctic-cli/interface / workspaceSymbol

Function workspaceSymbol

packages/arctic/src/lsp/index.ts:324–334  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

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) =>

Callers

nothing calls this directly

Calls 1

runFunction · 0.70

Tested by

no test coverage detected