Skip to content

Commit 9824af2

Browse files
committed
Fix Customize Layout bugs related to Activity Bar (fix #200571)
1 parent d0c510b commit 9824af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/browser/actions/layoutActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ if (!isMacintosh || !isNative) {
13601360
}
13611361

13621362
ToggleVisibilityActions.push(...[
1363-
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ContextKeyExpr.equals('config.workbench.activityBar.visible', true), localize('activityBar', "Activity Bar"), { whenA: ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
1363+
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'), localize('activityBar', "Activity Bar"), { whenA: ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
13641364
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, localize('sideBar', "Primary Side Bar"), { whenA: ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'), iconA: panelLeftIcon, iconB: panelRightIcon }),
13651365
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, localize('secondarySideBar', "Secondary Side Bar"), { whenA: ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'), iconA: panelRightIcon, iconB: panelLeftIcon }),
13661366
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, localize('panel', "Panel"), panelIcon),
@@ -1548,7 +1548,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
15481548
};
15491549

15501550
// Reset all layout options
1551-
resetSetting('workbench.activityBar.visible');
1551+
resetSetting('workbench.activityBar.location');
15521552
resetSetting('workbench.sideBar.location');
15531553
resetSetting('workbench.statusBar.visible');
15541554
resetSetting('workbench.panel.defaultLocation');

0 commit comments

Comments
 (0)