File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export class TerminalService extends Disposable implements ITerminalService {
92
92
get restoredGroupCount ( ) : number { return this . _restoredGroupCount ; }
93
93
94
94
get instances ( ) : ITerminalInstance [ ] {
95
- return this . _terminalGroupService . instances . concat ( this . _terminalEditorService . instances ) ;
95
+ return this . _terminalGroupService . instances . concat ( this . _terminalEditorService . instances ) . concat ( this . _backgroundedTerminalInstances ) ;
96
96
}
97
97
get detachedInstances ( ) : Iterable < IDetachedTerminalInstance > {
98
98
return this . _detachedXterms ;
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export class TerminalViewPane extends ViewPane {
91
91
this . _register ( this . _terminalService . onDidChangeInstances ( ( ) => {
92
92
// If the first terminal is opened, hide the welcome view
93
93
// and if the last one is closed, show it again
94
- if ( this . _hasWelcomeScreen ( ) && this . _terminalService . instances . length <= 1 ) {
94
+ if ( this . _hasWelcomeScreen ( ) && this . _terminalGroupService . instances . length <= 1 ) {
95
95
this . _onDidChangeViewWelcomeState . fire ( ) ;
96
96
}
97
97
if ( ! this . _parentDomElement ) { return ; }
@@ -100,7 +100,7 @@ export class TerminalViewPane extends ViewPane {
100
100
this . _createTabsView ( ) ;
101
101
}
102
102
// If we just opened our first terminal, layout
103
- if ( this . _terminalService . instances . length === 1 ) {
103
+ if ( this . _terminalGroupService . instances . length === 1 ) {
104
104
this . layoutBody ( this . _parentDomElement . offsetHeight , this . _parentDomElement . offsetWidth ) ;
105
105
}
106
106
} ) ) ;
You can’t perform that action at this time.
0 commit comments