Is there a way to remove main menu(top menu)?

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.


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.