cloned the editor menu.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-07-18 17:30:54 +02:00
parent 88631a318b
commit 42d5a08c3b
4 changed files with 113 additions and 17 deletions

View File

@@ -7,8 +7,18 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
registerMenus(registry: MenuModelRegistry): void {
super.registerMenus(registry);
registry.unregisterMenuAction(CommonCommands.SAVE);
registry.unregisterMenuAction(CommonCommands.SAVE_ALL);
for (const command of [
CommonCommands.SAVE,
CommonCommands.SAVE_ALL,
CommonCommands.CUT,
CommonCommands.COPY,
CommonCommands.PASTE,
CommonCommands.COPY_PATH,
CommonCommands.FIND,
CommonCommands.REPLACE
]) {
registry.unregisterMenuAction(command);
}
}
}