File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/vs/platform/terminal/electron-main Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,10 @@ export class ElectronPtyHostStarter implements IPtyHostStarter {
4242 this . utilityProcess = new UtilityProcess ( this . _logService , NullTelemetryService , this . _lifecycleMainService ) ;
4343
4444 const inspectParams = parsePtyHostDebugPort ( this . _environmentService . args , this . _environmentService . isBuilt ) ;
45- let execArgv : string [ ] | undefined = undefined ;
46- if ( inspectParams ) {
47- execArgv = [ '--nolazy' ] ;
48- if ( inspectParams . break ) {
49- execArgv . push ( `--inspect-brk=${ inspectParams . port } ` ) ;
50- } else if ( ! inspectParams . break ) {
51- execArgv . push ( `--inspect=${ inspectParams . port } ` ) ;
52- }
53- }
45+ const execArgv = inspectParams . port ? [
46+ '--nolazy' ,
47+ `--inspect${ inspectParams . break ? '-brk' : '' } =${ inspectParams . port } `
48+ ] : undefined ;
5449
5550 this . utilityProcess . start ( {
5651 type : 'ptyHost' ,
You can’t perform that action at this time.
0 commit comments