mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 01:12:58 +00:00
Remove 'ELECTRON_RUN_AS_NODE' env var on fork
This commit is contained in:
parent
47d5f58297
commit
961ff68f9a
1 changed files with 2 additions and 1 deletions
|
@ -285,7 +285,8 @@ export class DebugAdapter extends StreamDebugAdapter {
|
|||
if (this.adapterExecutable.command === 'node' && this.outputService) {
|
||||
if (Array.isArray(this.adapterExecutable.args) && this.adapterExecutable.args.length > 0) {
|
||||
const child = cp.fork(this.adapterExecutable.args[0], this.adapterExecutable.args.slice(1), {
|
||||
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
|
||||
execArgv: [ '-e', 'delete process.env.ELECTRON_RUN_AS_NODE;require(process.argv[1])' ].concat(process.execArgv || []),
|
||||
silent: true
|
||||
});
|
||||
if (!child.pid) {
|
||||
e(new Error(nls.localize('unableToLaunchDebugAdapter', "Unable to launch debug adapter from '{0}'.", this.adapterExecutable.args[0])));
|
||||
|
|
Loading…
Reference in a new issue