-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 #13619
Comments
Seems like the one contribution comes from monaco editor e.g. Command ID for cut |
One possible solution would be to skip context menu registration in if (commandId) {
const menuPath = [...EDITOR_CONTEXT_MENU, (item.group || '')];
const coreId = MonacoCommands.COMMON_ACTIONS.get(commandId);
if (coreId && registry.getMenu(menuPath).children.some(it => it.id === coreId)) {
console.debug(`The command '${commandId}' is already registered in the context menu as '${coreId}'.`);
} else {
registry.registerMenuAction(menuPath, this.buildMenuAction(commandId, item));
}
} |
Corresponding PR was merged |
Bug Description:
Duplicate entries for Copy/Paste/Cut actions in the editor's context menu. Es extensions I have only ESLint installed, everything else should be the built-in extensions set.
Steps to Reproduce:
Additional Information
Operating System:
Mac OSX Sonoma
Theia Version:
Eclipse Theia IDE
Version 1.48.300
VS Code API Version: 1.87.2
The text was updated successfully, but these errors were encountered: