未验证 提交 4bbec283 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #136248 from microsoft/tyriar/r1_62_split_fix

Properly fix #133687 (#136085)
......@@ -435,7 +435,7 @@ export class TerminalService implements ITerminalService {
}
} else {
// add split terminals to this group
await this.createTerminal({ config: { attachPersistentProcess: terminalLayout.terminal! }, location: { parentTerminal: terminalInstance } });
terminalInstance = await this.createTerminal({ config: { attachPersistentProcess: terminalLayout.terminal! }, location: { parentTerminal: terminalInstance } });
}
}
const activeInstance = this.instances.find(t => {
......@@ -1371,10 +1371,6 @@ export class TerminalService implements ITerminalService {
}
private _getSplitParent(location?: ITerminalLocationOptions): ITerminalInstance | undefined {
if (this._connectionState === TerminalConnectionState.Connecting && this.activeInstance) {
const group = this._terminalGroupService.getGroupForInstance(this.activeInstance);
return group?.terminalInstances[group.terminalInstances.length - 1];
}
if (location && typeof location === 'object' && 'parentTerminal' in location) {
return location.parentTerminal;
} else if (location && typeof location === 'object' && 'splitActiveTerminal' in location) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册