File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments