I want to remove the main menu like “Edit”, “Debug”, “View” marked in the following picture in Theia. What should I do?
I referred to the answer in this post.
Here is my demo.
menus.unregisterMenuNode('2_edit');
menus.unregisterMenuNode('3_selection');
menus.unregisterMenuNode("4_view");
After running Theia, I found that although the main menu on the page did disappear, but some of its original submenu commands could still be triggered through shortcut keys.
The command panel was originally in the View menu, but I can still use Ctrl+Shift+P to open it.
I only removed the menu node, but the commands or shortcuts bound to that menu mode have not been unregistered.
@4EverM Similar to how you can unregister menu entries, you can also unregister commands using the CommandRegistry#unregisterCommand
method.