Skip to content

Commit

Permalink
composite bar: when a new composite is activate make sure to automati…
Browse files Browse the repository at this point in the history
…cally deactivate previous one

fixes #40207
  • Loading branch information
isidorn committed Jan 5, 2018
1 parent 0a4937e commit bc3c2cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/browser/parts/compositebar/compositeBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export class CompositeBar implements ICompositeBar {

public activateComposite(id: string): void {
if (this.compositeIdToActions[id]) {
if (this.compositeIdToActions[this.activeCompositeId]) {
this.compositeIdToActions[this.activeCompositeId].deactivate();
}
this.compositeIdToActions[id].activate();
}
this.activeCompositeId = id;
Expand Down

0 comments on commit bc3c2cc

Please sign in to comment.