Skip to content

Commit

Permalink
fixes #141404
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Jan 27, 2022
1 parent 877c962 commit d7a80ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/views/viewsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class ViewsService extends Disposable implements IViewsService {
const location = this.viewDescriptorService.getViewContainerLocation(viewContainer);
if (location === ViewContainerLocation.Sidebar) {
this.layoutService.setPartHidden(true, Parts.SIDEBAR_PART);
} else if (location === ViewContainerLocation.Panel) {
} else if (location === ViewContainerLocation.Panel || location === ViewContainerLocation.AuxiliaryBar) {
this.paneCompositeService.hideActivePaneComposite(location);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,10 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe

hidePanel(): void {
// Hide the panel if the terminal is in the panel and it has no sibling views
const location = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID);
if (location === ViewContainerLocation.Panel) {
const panel = this._viewDescriptorService.getViewContainerByViewId(TERMINAL_VIEW_ID);
if (panel && this._viewDescriptorService.getViewContainerModel(panel).activeViewDescriptors.length === 1) {
this._viewsService.closeView(TERMINAL_VIEW_ID);
TerminalContextKeys.tabsMouse.bindTo(this._contextKeyService).set(false);
}
const panel = this._viewDescriptorService.getViewContainerByViewId(TERMINAL_VIEW_ID);
if (panel && this._viewDescriptorService.getViewContainerModel(panel).activeViewDescriptors.length === 1) {
this._viewsService.closeView(TERMINAL_VIEW_ID);
TerminalContextKeys.tabsMouse.bindTo(this._contextKeyService).set(false);
}
}

Expand Down

0 comments on commit d7a80ad

Please sign in to comment.