Skip to content

Commit d7a80ad

Browse files
committed
1 parent 877c962 commit d7a80ad

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/vs/workbench/browser/parts/views/viewsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export class ViewsService extends Disposable implements IViewsService {
269269
const location = this.viewDescriptorService.getViewContainerLocation(viewContainer);
270270
if (location === ViewContainerLocation.Sidebar) {
271271
this.layoutService.setPartHidden(true, Parts.SIDEBAR_PART);
272-
} else if (location === ViewContainerLocation.Panel) {
272+
} else if (location === ViewContainerLocation.Panel || location === ViewContainerLocation.AuxiliaryBar) {
273273
this.paneCompositeService.hideActivePaneComposite(location);
274274
}
275275

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,10 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
7777

7878
hidePanel(): void {
7979
// Hide the panel if the terminal is in the panel and it has no sibling views
80-
const location = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID);
81-
if (location === ViewContainerLocation.Panel) {
82-
const panel = this._viewDescriptorService.getViewContainerByViewId(TERMINAL_VIEW_ID);
83-
if (panel && this._viewDescriptorService.getViewContainerModel(panel).activeViewDescriptors.length === 1) {
84-
this._viewsService.closeView(TERMINAL_VIEW_ID);
85-
TerminalContextKeys.tabsMouse.bindTo(this._contextKeyService).set(false);
86-
}
80+
const panel = this._viewDescriptorService.getViewContainerByViewId(TERMINAL_VIEW_ID);
81+
if (panel && this._viewDescriptorService.getViewContainerModel(panel).activeViewDescriptors.length === 1) {
82+
this._viewsService.closeView(TERMINAL_VIEW_ID);
83+
TerminalContextKeys.tabsMouse.bindTo(this._contextKeyService).set(false);
8784
}
8885
}
8986

0 commit comments

Comments
 (0)