Skip to content

Commit

Permalink
Remove close secondary side bar action when activity bar is at the top (
Browse files Browse the repository at this point in the history
#221473)

Remove close secondary side bar action when activty bar top
  • Loading branch information
benibenj authored Jul 12, 2024
1 parent 406357e commit 2a21871
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,6 @@ export class AuxiliaryBarPart extends AbstractPaneCompositePart {
return headerArea;
}

protected override getToolbarWidth(): number {
if (this.getCompositeBarPosition() === CompositeBarPosition.TOP) {
return 22;
}

return super.getToolbarWidth();
}

private headerActionViewItemProvider(action: IAction, options: IActionViewItemOptions): IActionViewItem | undefined {
if (action.id === ToggleAuxiliaryBarAction.ID) {
return this.instantiationService.createInstance(ActionViewItem, undefined, action, options);
Expand Down
4 changes: 0 additions & 4 deletions src/vs/workbench/browser/parts/panel/panelActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ registerAction2(class extends Action2 {
group: 'navigation',
order: 2,
when: ContextKeyExpr.notEquals(`config.${LayoutSettings.ACTIVITY_BAR_LOCATION}`, ActivityBarPosition.TOP)
}, {
id: MenuId.AuxiliaryBarHeader,
group: 'navigation',
when: ContextKeyExpr.equals(`config.${LayoutSettings.ACTIVITY_BAR_LOCATION}`, ActivityBarPosition.TOP)
}]
});
}
Expand Down

0 comments on commit 2a21871

Please sign in to comment.