We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e34c3 commit 4e6ff6fCopy full SHA for 4e6ff6f
packages/debugger-shell/src/node/index.flow.js
@@ -51,6 +51,13 @@ async function unstable_spawnDebuggerShellWithArgs(
51
stdio: 'inherit',
52
windowsHide: true,
53
detached: mode === 'detached',
54
+ env: {
55
+ ...process.env,
56
+ // If this package is used in an Electron app (e.g. inside a VS Code extension),
57
+ // ELECTRON_RUN_AS_NODE=1 can leak from the parent process.
58
+ // Since this is never the right way to launch the Fusebox shell, we guard against it here.
59
+ ELECTRON_RUN_AS_NODE: '',
60
+ },
61
});
62
if (mode === 'detached') {
63
child.on('spawn', () => {
0 commit comments