提交 f526b754 编写于 作者: S Sandeep Somavarapu

Check in composite bar for previous existence

上级 0232d04c
......@@ -269,10 +269,11 @@ export class ActivitybarPart extends Part {
private updateCompositebar(): void {
const viewlets = this.viewletService.getViewlets();
for (const viewlet of viewlets) {
const existsBefore = this.compositeBar.getComposites().some(({ id }) => id === viewlet.id);
this.compositeBar.addComposite(viewlet);
// Pin it by default if it is new => it does not has a placeholder
if (this.placeholderComposites.every(c => c.id !== viewlet.id)) {
// Pin it by default if it is new
if (!existsBefore) {
this.compositeBar.pin(viewlet.id);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册