(input: (client: LSPClient.Info) => Promise<T>)
| 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) { |
no test coverage detected