Skip to content

Commit

Permalink
safest refs #94454 (#94566)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten authored Apr 6, 2020
1 parent e619a37 commit 15297a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/panel/panelPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
const viewContainer = this.getViewContainer(panelDescriptor.id);
if (viewContainer?.hideIfEmpty) {
const viewDescriptors = this.viewDescriptorService.getViewDescriptors(viewContainer);
if (viewDescriptors.activeViewDescriptors.length === 0) {
if (viewDescriptors.activeViewDescriptors.length === 0 && this.compositeBar.getPinnedComposites().length > 1) {
this.hideComposite(panelDescriptor.id); // Update the composite bar by hiding
}
}
Expand Down

0 comments on commit 15297a9

Please sign in to comment.