提交 5f513e74 编写于 作者: A Andre Weinand

always fork for node runtime

上级 24c705d5
...@@ -282,10 +282,10 @@ export class DebugAdapter extends StreamDebugAdapter { ...@@ -282,10 +282,10 @@ export class DebugAdapter extends StreamDebugAdapter {
"Cannot determine executable for debug adapter '{0}'.", this.debugType))); "Cannot determine executable for debug adapter '{0}'.", this.debugType)));
} }
if (this.adapterExecutable.command === 'node' && this.outputService) { if (this.adapterExecutable.command === 'node') {
if (Array.isArray(this.adapterExecutable.args) && this.adapterExecutable.args.length > 0) { if (Array.isArray(this.adapterExecutable.args) && this.adapterExecutable.args.length > 0) {
const child = cp.fork(this.adapterExecutable.args[0], this.adapterExecutable.args.slice(1), { const child = cp.fork(this.adapterExecutable.args[0], this.adapterExecutable.args.slice(1), {
execArgv: ['-e', 'delete process.env.ELECTRON_RUN_AS_NODE;require(process.argv[1])'].concat(process.execArgv || []), execArgv: ['-e', 'delete process.env.ELECTRON_RUN_AS_NODE;require(process.argv[1])'],
silent: true silent: true
}); });
if (!child.pid) { if (!child.pid) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册