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

Function run

packages/arctic/src/lsp/index.ts:350–354  ·  view source on GitHub ↗
(input: (client: LSPClient.Info) => Promise<T>)

Source from the content-addressed store, hash-verified

348 }
349
350 async function run<T>(input: (client: LSPClient.Info) => Promise<T>): Promise<T[]> {
351 const clients = await state().then((x) => x.clients)
352 const tasks = clients.map((x) => input(x))
353 return Promise.all(tasks)
354 }
355
356 export namespace Diagnostic {
357 export function pretty(diagnostic: LSPClient.Diagnostic) {

Callers 5

touchFileFunction · 0.70
diagnosticsFunction · 0.70
hoverFunction · 0.70
workspaceSymbolFunction · 0.70
documentSymbolFunction · 0.70

Calls 2

stateFunction · 0.85
inputFunction · 0.50

Tested by

no test coverage detected