提交 bb714d59 编写于 作者: B Benjamin Pasero

status - avoid duplicate entries in menu

上级 259be0a4
......@@ -199,11 +199,9 @@ class StatusbarViewModel extends Disposable {
const id = arg1;
for (const entry of this._entries) {
if (entry.id !== id) {
continue;
if (entry.id === id) {
this.updateVisibility(entry);
}
this.updateVisibility(entry);
}
}
......@@ -558,6 +556,7 @@ export class StatusbarPart extends Part implements IStatusbarService {
this.viewModel.entries.forEach(entry => {
if (!handledEntries.has(entry.id)) {
actions.push(new ToggleStatusbarEntryVisibilityAction(entry.id, entry.name, this.viewModel));
handledEntries.add(entry.id);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册