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 {
1363
1363
}
1364
1364
1365
1365
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
+ }
1366
1370
if ( location && typeof location === 'object' && 'parentTerminal' in location ) {
1367
1371
return location . parentTerminal ;
1368
1372
} else if ( location && typeof location === 'object' && 'splitActiveTerminal' in location ) {
You can’t perform that action at this time.
0 commit comments