mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 00:05:28 +01:00
always show toggle panel action in activity bar
This commit is contained in:
@@ -37,7 +37,7 @@ export class ActivitybarPart extends Part implements IActivityService {
|
||||
private panelSwitcherBar: ActionBar;
|
||||
private activityActionItems: { [actionId: string]: IActionItem; };
|
||||
private compositeIdToActions: { [compositeId: string]: ActivityAction; };
|
||||
private panelActions: Action[];
|
||||
private panelActions: ActivityAction[];
|
||||
private showPanelAction: TogglePanelAction;
|
||||
|
||||
constructor(
|
||||
@@ -158,7 +158,10 @@ export class ActivitybarPart extends Part implements IActivityService {
|
||||
|
||||
private updatePanelSwitcher(): void {
|
||||
this.panelSwitcherBar.clear();
|
||||
const actions = this.partService.isPanelHidden() ? this.showPanelAction : this.panelActions;
|
||||
const actions:ActivityAction[] = [this.showPanelAction];
|
||||
if (!this.partService.isPanelHidden()) {
|
||||
actions.push(...this.panelActions);
|
||||
}
|
||||
|
||||
this.panelSwitcherBar.push(actions, { label: true, icon: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user