We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97ce260 commit db383e5Copy full SHA for db383e5
packages/monaco/src/browser/monaco-menu.ts
@@ -49,7 +49,7 @@ export class MonacoEditorMenuContribution implements MenuContribution {
49
if (commandId) {
50
const nodeId = MonacoCommands.COMMON_ACTIONS.get(commandId) || commandId;
51
const menuPath = item.group ? [...EDITOR_CONTEXT_MENU, item.group] : EDITOR_CONTEXT_MENU;
52
- if (registry.getMenuNode([...menuPath, nodeId])) {
+ if (!registry.getMenuNode([...menuPath, nodeId])) {
53
// Don't add additional actions if the item is already registered.
54
registry.registerMenuAction(menuPath, this.buildMenuAction(commandId, item));
55
}
0 commit comments