Skip to content

Commit 78cd951

Browse files
committed
Close the terminal view when there's only one visible view
Part of microsoft#236517
1 parent d239347 commit 78cd951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
8383
hidePanel(): void {
8484
// Hide the panel if the terminal is in the panel and it has no sibling views
8585
const panel = this._viewDescriptorService.getViewContainerByViewId(TERMINAL_VIEW_ID);
86-
if (panel && this._viewDescriptorService.getViewContainerModel(panel).activeViewDescriptors.length === 1) {
86+
if (panel && this._viewDescriptorService.getViewContainerModel(panel).visibleViewDescriptors.length === 1) {
8787
this._viewsService.closeView(TERMINAL_VIEW_ID);
8888
TerminalContextKeys.tabsMouse.bindTo(this._contextKeyService).set(false);
8989
}

0 commit comments

Comments
 (0)