File tree 1 file changed +1
-5
lines changed
src/vs/workbench/contrib/terminal/browser
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ export class TerminalService implements ITerminalService {
435
435
}
436
436
} else {
437
437
// add split terminals to this group
438
- await this . createTerminal ( { config : { attachPersistentProcess : terminalLayout . terminal ! } , location : { parentTerminal : terminalInstance } } ) ;
438
+ terminalInstance = await this . createTerminal ( { config : { attachPersistentProcess : terminalLayout . terminal ! } , location : { parentTerminal : terminalInstance } } ) ;
439
439
}
440
440
}
441
441
const activeInstance = this . instances . find ( t => {
@@ -1371,10 +1371,6 @@ export class TerminalService implements ITerminalService {
1371
1371
}
1372
1372
1373
1373
private _getSplitParent ( location ?: ITerminalLocationOptions ) : ITerminalInstance | undefined {
1374
- if ( this . _connectionState === TerminalConnectionState . Connecting && this . activeInstance ) {
1375
- const group = this . _terminalGroupService . getGroupForInstance ( this . activeInstance ) ;
1376
- return group ?. terminalInstances [ group . terminalInstances . length - 1 ] ;
1377
- }
1378
1374
if ( location && typeof location === 'object' && 'parentTerminal' in location ) {
1379
1375
return location . parentTerminal ;
1380
1376
} else if ( location && typeof location === 'object' && 'splitActiveTerminal' in location ) {
You can’t perform that action at this time.
0 commit comments