File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -702,13 +702,6 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
702
702
}
703
703
}
704
704
705
- // Activity bar cannot be hidden
706
- // This check must be called after state is set
707
- // because canActivityBarBeHidden calls isVisible
708
- if ( this . stateModel . getRuntimeValue ( LayoutStateKeys . ACTIVITYBAR_HIDDEN ) && ! this . canActivityBarBeHidden ( ) ) {
709
- this . stateModel . setRuntimeValue ( LayoutStateKeys . ACTIVITYBAR_HIDDEN , false ) ;
710
- }
711
-
712
705
// Window border
713
706
this . updateWindowsBorder ( true ) ;
714
707
}
@@ -1742,18 +1735,11 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
1742
1735
}
1743
1736
1744
1737
private setActivityBarHidden ( hidden : boolean , skipLayout ?: boolean ) : void {
1745
- if ( hidden && ! this . canActivityBarBeHidden ( ) ) {
1746
- return ;
1747
- }
1748
1738
this . stateModel . setRuntimeValue ( LayoutStateKeys . ACTIVITYBAR_HIDDEN , hidden ) ;
1749
1739
// Propagate to grid
1750
1740
this . workbenchGrid . setViewVisible ( this . activityBarPartView , ! hidden ) ;
1751
1741
}
1752
1742
1753
- private canActivityBarBeHidden ( ) : boolean {
1754
- return this . configurationService . getValue ( LayoutSettings . ACTIVITY_BAR_LOCATION ) === ActivityBarPosition . TOP ;
1755
- }
1756
-
1757
1743
private setBannerHidden ( hidden : boolean ) : void {
1758
1744
this . workbenchGrid . setViewVisible ( this . bannerPartView , ! hidden ) ;
1759
1745
}
You can’t perform that action at this time.
0 commit comments