File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1363,6 +1363,10 @@ export class TerminalService implements ITerminalService {
13631363 }
13641364
13651365 private _getSplitParent ( location ?: ITerminalLocationOptions ) : ITerminalInstance | undefined {
1366+ if ( this . _connectionState === TerminalConnectionState . Connecting && this . activeInstance ) {
1367+ const group = this . _terminalGroupService . getGroupForInstance ( this . activeInstance ) ;
1368+ return group ?. terminalInstances [ group . terminalInstances . length - 1 ] ;
1369+ }
13661370 if ( location && typeof location === 'object' && 'parentTerminal' in location ) {
13671371 return location . parentTerminal ;
13681372 } else if ( location && typeof location === 'object' && 'splitActiveTerminal' in location ) {
You can’t perform that action at this time.
0 commit comments