浏览代码

fix write tool timeout

Dax Raad 1 年之前
父节点
当前提交
e99bdcefac
共有 1 个文件被更改,包括 6 次插入 和 4 次删除
  1. 6 4
      packages/opencode/src/lsp/client.ts

+ 6 - 4
packages/opencode/src/lsp/client.ts

@@ -163,10 +163,12 @@ export namespace LSPClient {
               }
               }
             })
             })
           }),
           }),
-          5000,
-        ).finally(() => {
-          unsub?.()
-        })
+          3000,
+        )
+          .catch(() => {})
+          .finally(() => {
+            unsub?.()
+          })
       },
       },
       async shutdown() {
       async shutdown() {
         log.info("shutting down", { serverID })
         log.info("shutting down", { serverID })