The open source coding agent.
TypeScript
fix: debug lsp diagnostics cmd for certain lsps (#5420)
Viktor Forsman7ec48dfd1512
diff --git a/packages/opencode/src/cli/cmd/debug/lsp.ts b/packages/opencode/src/cli/cmd/debug/lsp.tsindex 2f597719589..97cb1a0f3bd 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)})},