Add a new menu in Theia

I am wondering is there a way to add a new menu in Theia (not a menu item to an existing menu)
Like File, Edit, or Help

[original thread by Soumesh Banerjee]

@sudoo do you mean adding a new top level menu? You can follow the simple example of Help.
You first need to create an entry at the main menu path (https://github.com/eclipse-theia/theia/blob/master/packages/core/src/browser/common-frontend-contribution.ts#L66), register it as a submenu (https://github.com/eclipse-theia/theia/blob/master/packages/core/src/browser/common-frontend-contribution.ts#L275), and add items to it (https://github.com/eclipse-theia/theia/blob/master/packages/getting-started/src/browser/getting-started-contribution.ts#L65-L71).

1 Like