Skip to content

Commit 54ab46f

Browse files
committed
1 parent c8be3bb commit 54ab46f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/terminal/browser/terminalService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)