529
}
530
if (id === MenuId.CommandPalette) {
531
>
// CommandPalette is special because it shows
actions.ts
532
>
// all commands by default
533
>
this._appendImplicitItems(result);
534
>
}
535
return result;
536
}
537
538
private _appendImplicitItems(result: Array<IMenuItem | ISubmenuItem>) {
540
>
541
>
for (const item of result) {
542
>
if (isIMenuItem(item)) {
543
>
set.add(item.command.id);
544
>
if (item.alt) {
545
set.add(item.alt.id);
546
}
548
>
}
549
>
this._commands.forEach((command, id) => {
550
>
if (!set.has(id)) {
551
>
result.push({ command });
552
>
}
553
>
});
554
>
}
555
};
556