Skip to content
Discussion options

You must be logged in to vote

@sboudreaux96 use the API to register menus (https://eclipse-theia.github.io/theia/docs/next/classes/core.menumodelregistry-1.html) like in the example:

registerMenus(menus: MenuModelRegistry): void {
const subMenuPath = [...MAIN_MENU_BAR, 'sample-menu'];
menus.registerSubmenu(subMenuPath, 'Sample Menu', {
order: '2' // that should put the menu right next to the File menu
});
menus.registerMenuAction(subMenuPath, {
commandId: SampleCommand.id,
order: '0'
});
menus.registerMenuAction(subMenuPath, {
commandId: SampleCommand2.id,
o…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vince-fugnitto
Comment options

@sboudreaux96
Comment options

@vince-fugnitto
Comment options

Answer selected by vince-fugnitto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants