Is there a way to remove submenu?

I would like to remove few sub menus like Selection, Go which are not used. How can i remove those sub menus?

[original thread by asvinwin123]

Does this help? https://github.com/theia-ide/theia/issues/4252

If you want to remove Go, you have to customize and rebind the EditorMenuContribution: https://github.com/theia-ide/theia/blob/613069fc87169738999adab4044bc0530e54cb74/packages/editor/src/browser/editor-menu.ts#L75

[asvinwin123]

Thank you Akos.