ソースを参照

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

Viktor Forsman 2 ヶ月 前
コミット
7ec48dfd15
1 ファイル変更1 行追加0 行削除
  1. 1 0
      packages/opencode/src/cli/cmd/debug/lsp.ts

+ 1 - 0
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)
     })
   },