mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-29 02:45:58 +01:00
de07516770
Remote smoke tests intermittently fail with "Cannot reconnect. Please reload the window." The root cause is the remote server process exiting unexpectedly shortly after a client connects; because the server logs nothing on the way out, the client reconnects against a freshly spawned server with a new connection token and hits "Unknown reconnection token (never seen)". Add best-effort process exit diagnostics in server-main.ts that distinguish a self-exit (beforeExit), an external kill (signal) and a crash (uncaughtExceptionMonitor), and log the test resolver child's exit/close signal. Gated behind the VSCODE_SERVER_EXIT_DIAGNOSTICS env var, which the remote smoke launcher sets, so it adds no product noise. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>