diff --git a/adapters/vim/bridge.ts b/adapters/vim/bridge.ts index 2223506..c0a9ad4 100644 --- a/adapters/vim/bridge.ts +++ b/adapters/vim/bridge.ts @@ -126,7 +126,8 @@ for await (const chunk of Bun.stdin.stream()) { break; case "disconnect": ws?.close(); - break; + send({ type: "disconnected" }); + process.exit(0); } } catch { send({ type: "error", message: "invalid json" });