File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -195,9 +195,9 @@ export class Client implements IChannelClient, IDisposable {
195
195
}
196
196
197
197
if ( forkOpts . execArgv === undefined ) {
198
- // if not set, the forked process inherits the execArgv of the parent process
199
- // --inspect and --inspect-brk can not be inherited as the port would conflict
200
- forkOpts . execArgv = process . execArgv . filter ( a => ! / ^ - - i n s p e c t ( - b r k ) ? = / . test ( a ) ) ; // remove
198
+ forkOpts . execArgv = process . execArgv // if not set, the forked process inherits the execArgv of the parent process
199
+ . filter ( a => ! / ^ - - i n s p e c t ( - b r k ) ? = / . test ( a ) ) // --inspect and --inspect-brk can not be inherited as the port would conflict
200
+ . filter ( a => ! a . startsWith ( '--vscode-' ) ) ; // --vscode-* arguments are unsupported by node.js and thus need to remove
201
201
}
202
202
203
203
removeDangerousEnvVariables ( forkOpts . env ) ;
Original file line number Diff line number Diff line change @@ -77,9 +77,6 @@ export class PtyHostService extends Disposable implements IPtyService {
77
77
private readonly _onProcessExit = this . _register ( new Emitter < { id : number ; event : number | undefined } > ( ) ) ;
78
78
readonly onProcessExit = this . _onProcessExit . event ;
79
79
80
- // TODO@bpasero investigate why this is needed
81
- private readonly forceEnableDebugInspect = this . _environmentService . isBuilt && this . _configurationService . getValue < boolean > ( 'window.experimental.sharedProcessUseUtilityProcess' ) ;
82
-
83
80
constructor (
84
81
private readonly _reconnectConstants : IReconnectConstants ,
85
82
private readonly loggerName : string ,
@@ -152,7 +149,7 @@ export class PtyHostService extends Disposable implements IPtyService {
152
149
}
153
150
} ;
154
151
155
- const ptyHostDebug = parsePtyHostDebugPort ( this . _environmentService . args , this . forceEnableDebugInspect ? false : this . _environmentService . isBuilt ) ;
152
+ const ptyHostDebug = parsePtyHostDebugPort ( this . _environmentService . args , this . _environmentService . isBuilt ) ;
156
153
if ( ptyHostDebug ) {
157
154
if ( ptyHostDebug . break && ptyHostDebug . port ) {
158
155
opts . debugBrk = ptyHostDebug . port ;
You can’t perform that action at this time.
0 commit comments