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 {
42
42
this . utilityProcess = new UtilityProcess ( this . _logService , NullTelemetryService , this . _lifecycleMainService ) ;
43
43
44
44
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 ;
54
49
55
50
this . utilityProcess . start ( {
56
51
type : 'ptyHost' ,
You can’t perform that action at this time.
0 commit comments