summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorViktor Forsman <[email protected]>2025-12-12 13:20:38 +0800
committerGitHub <[email protected]>2025-12-11 23:20:38 -0600
commit7ec48dfd1512e8a70bd03aaa1994f14da209aac5 (patch)
tree01259c28761f2e43e0c9f7c2e7d049bfb6ccb5c4
parent57120e69edadb5dd6a03538ee8dfb85a228d5173 (diff)
downloadopencode-7ec48dfd1512e8a70bd03aaa1994f14da209aac5.tar.gz
opencode-7ec48dfd1512e8a70bd03aaa1994f14da209aac5.zip
fix: debug lsp diagnostics cmd for certain lsps (#5420)
-rw-r--r--packages/opencode/src/cli/cmd/debug/lsp.ts1
1 files changed, 1 insertions, 0 deletions
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)
})
},