Skip to content

Commit 0800cc4

Browse files
committed
Properly fix microsoft#133687
1 parent 97ef236 commit 0800cc4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export class TerminalService implements ITerminalService {
435435
}
436436
} else {
437437
// 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 } });
439439
}
440440
}
441441
const activeInstance = this.instances.find(t => {
@@ -1371,10 +1371,6 @@ export class TerminalService implements ITerminalService {
13711371
}
13721372

13731373
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-
}
13781374
if (location && typeof location === 'object' && 'parentTerminal' in location) {
13791375
return location.parentTerminal;
13801376
} else if (location && typeof location === 'object' && 'splitActiveTerminal' in location) {

0 commit comments

Comments
 (0)