From 7ec48dfd1512e8a70bd03aaa1994f14da209aac5 Mon Sep 17 00:00:00 2001 From: Viktor Forsman Date: Fri, 12 Dec 2025 13:20:38 +0800 Subject: [PATCH] fix: debug lsp diagnostics cmd for certain lsps (#5420) --- packages/opencode/src/cli/cmd/debug/lsp.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opencode/src/cli/cmd/debug/lsp.ts b/packages/opencode/src/cli/cmd/debug/lsp.ts index 2f5977195..97cb1a0f3 100644 --- a/packages/opencode/src/cli/cmd/debug/lsp.ts +++ b/packages/opencode/src/cli/cmd/debug/lsp.ts @@ -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) }) },