The `before-quit` handler tears down the bootstrap controller, preview watchers, and the Python backend but never disposes live PTY sessions. When `app.quit()` proceeds to `FreeEnvironment()`, node-pty's `ThreadSafeFunction::CallJS` callback fires on a half-torn-down environment, throws a C++ exception that can no longer be caught, and the process aborts (microsoft/node-pty#904). Iterate `terminalSessions` and call `disposeTerminalSession()` (which already calls `pty.kill()` + deletes the map entry) before killing the backend, so the ThreadSafeFunctions are removed before teardown begins. Closes #48335 |
||
|---|---|---|
| .. | ||
| backend-env.cjs | ||
| backend-env.test.cjs | ||
| backend-probes.cjs | ||
| backend-probes.test.cjs | ||
| backend-ready.cjs | ||
| bootstrap-platform.cjs | ||
| bootstrap-platform.test.cjs | ||
| bootstrap-runner.cjs | ||
| bootstrap-runner.test.cjs | ||
| connection-config.cjs | ||
| connection-config.test.cjs | ||
| dashboard-token.cjs | ||
| dashboard-token.test.cjs | ||
| desktop-uninstall.cjs | ||
| desktop-uninstall.test.cjs | ||
| entitlements.mac.inherit.plist | ||
| entitlements.mac.plist | ||
| fs-read-dir.cjs | ||
| fs-read-dir.test.cjs | ||
| gateway-ws-probe.cjs | ||
| gateway-ws-probe.test.cjs | ||
| git-root.cjs | ||
| git-root.test.cjs | ||
| git-worktrees.cjs | ||
| hardening.cjs | ||
| hardening.test.cjs | ||
| main.cjs | ||
| oauth-net-request.cjs | ||
| oauth-net-request.test.cjs | ||
| preload.cjs | ||
| session-windows.cjs | ||
| session-windows.test.cjs | ||
| update-rebuild.cjs | ||
| update-rebuild.test.cjs | ||
| update-remote.cjs | ||
| update-remote.test.cjs | ||
| vscode-marketplace.cjs | ||
| vscode-marketplace.test.cjs | ||
| windows-child-process.test.cjs | ||
| windows-user-env.cjs | ||
| windows-user-env.test.cjs | ||
| workspace-cwd.cjs | ||
| workspace-cwd.test.cjs | ||