diff options
| author | Viktor Forsman <[email protected]> | 2025-12-12 13:20:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-11 23:20:38 -0600 |
| commit | 7ec48dfd1512e8a70bd03aaa1994f14da209aac5 (patch) | |
| tree | 01259c28761f2e43e0c9f7c2e7d049bfb6ccb5c4 /packages | |
| parent | 57120e69edadb5dd6a03538ee8dfb85a228d5173 (diff) | |
| download | opencode-7ec48dfd1512e8a70bd03aaa1994f14da209aac5.tar.gz opencode-7ec48dfd1512e8a70bd03aaa1994f14da209aac5.zip | |
fix: debug lsp diagnostics cmd for certain lsps (#5420)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/debug/lsp.ts | 1 |
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) }) }, |
