未验证 提交 961ff68f 编写于 作者: A Andre Weinand 提交者: GitHub

Remove 'ELECTRON_RUN_AS_NODE' env var on fork

上级 47d5f582
......@@ -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])));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册