fix: debug lsp diagnostics cmd for certain lsps (#5420)

thinking-toggle-wip
Viktor Forsman 2025-12-12 13:20:38 +08:00 committed by Aiden Cline
parent 010d1298c0
commit ddf44233e7
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ const DiagnosticsCommand = cmd({
async handler(args) {
await bootstrap(process.cwd(), async () => {
await LSP.touchFile(args.file, true)
await Bun.sleep(1000)
process.stdout.write(JSON.stringify(await LSP.diagnostics(), null, 2) + EOL)
})
},