mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-01 20:03:17 +01:00
compoiste bar: removing a composite make sure to deactive it proper
fixes #46368
This commit is contained in:
@@ -99,6 +99,7 @@ export class CompositeBar implements ICompositeBar {
|
||||
}
|
||||
|
||||
this.options.composites = this.options.composites.filter(c => c.id !== id);
|
||||
this.deactivateComposite(id);
|
||||
this.unpin(id);
|
||||
this.pullComposite(id);
|
||||
}
|
||||
@@ -123,6 +124,12 @@ export class CompositeBar implements ICompositeBar {
|
||||
if (this.compositeIdToActions[id]) {
|
||||
this.compositeIdToActions[id].deactivate();
|
||||
}
|
||||
if (this.activeCompositeId === id) {
|
||||
this.activeCompositeId = undefined;
|
||||
}
|
||||
if (this.activeUnpinnedCompositeId === id) {
|
||||
this.activeUnpinnedCompositeId = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
public showActivity(compositeId: string, badge: IBadge, clazz?: string, priority?: number): IDisposable {
|
||||
|
||||
Reference in New Issue
Block a user