diff options
Diffstat (limited to 'src/server-main.js')
-rw-r--r-- | src/server-main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server-main.js b/src/server-main.js index 0406816534f..bb5e3aded35 100644 --- a/src/server-main.js +++ b/src/server-main.js @@ -282,6 +282,12 @@ function loadCode() { delete process.env['ELECTRON_RUN_AS_NODE']; // Keep bootstrap-amd.js from redefining 'fs'. + // See https://github.com/microsoft/vscode-remote-release/issues/6543 + // We would normally install a SIGPIPE listener in bootstrap.js + // But in certain situations, the console itself can be in a broken pipe state + // so logging SIGPIPE to the console will cause an infinite async loop + process.env['VSCODE_HANDLES_SIGPIPE'] = 'true'; + if (process.env['VSCODE_DEV']) { // When running out of sources, we need to load node modules from remote/node_modules, // which are compiled against nodejs, not electron |