Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Clipboard actions in editor context menu #13626

Merged

Conversation

dhuebner
Copy link
Member

What it does

Prevents menu action registration for monaco menu items if a corresponding mapping command was already registered.
For example if core.cut command, which is a mapper for editor.action.clipboardCutAction (see MonacoCommands.COMMON_ACTIONS) already registered in the editor's context menu, the editor.action.clipboardCutAction command item will not be added to the menu.

See #13619

How to test

Open a text editor, open the context menu. Check the clipboard actions group, there should be no duplicate entries for Cut/Copy/Paste.

Follow-ups

Review checklist

Reminder for reviewers

@tsmaeder tsmaeder merged commit 80ae450 into eclipse-theia:master Apr 22, 2024
12 of 14 checks passed
@jfaltermeier jfaltermeier added this to the 1.49.0 milestone Apr 29, 2024
@dhuebner dhuebner deleted the dhuebner/duplicateMenuEntries-13619 branch October 11, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants