()
| 256 | } |
| 257 | |
| 258 | export async function diagnostics() { |
| 259 | const results: Record<string, LSPClient.Diagnostic[]> = {} |
| 260 | for (const result of await run(async (client) => client.diagnostics)) { |
| 261 | for (const [path, diagnostics] of result.entries()) { |
| 262 | const arr = results[path] || [] |
| 263 | arr.push(...diagnostics) |
| 264 | results[path] = arr |
| 265 | } |
| 266 | } |
| 267 | return results |
| 268 | } |
| 269 | |
| 270 | export async function hover(input: { file: string; line: number; character: number }) { |
| 271 | return run((client) => { |