mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
Make sure both composites are known to this composite bar in move
This commit is contained in:
parent
97b51c5338
commit
6779069b83
1 changed files with 4 additions and 0 deletions
|
@ -403,6 +403,10 @@ export class CompositeBar implements ICompositeBar {
|
|||
}
|
||||
|
||||
public move(compositeId: string, toCompositeId: string): void {
|
||||
// Make sure both composites are known to this composite bar
|
||||
if (this.options.composites.filter(c => c.id === compositeId || c.id === toCompositeId).length !== 2) {
|
||||
return;
|
||||
}
|
||||
// Make sure a moved composite gets pinned
|
||||
if (!this.isPinned(compositeId)) {
|
||||
this.pin(compositeId, false /* defer update, we take care of it */);
|
||||
|
|
Loading…
Reference in a new issue