We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussed in #13716.
Registering a menu with a delay prevents that menu from showing up in the main application menu.
The issue is that the main menu is only recreated during startup and when the menu bar visibility changes. It doesn't listen on any other events.
registerMenus
MenuContribution
window.menuBarVisibility
The text was updated successfully, but these errors were encountered:
setTimeout(() => { menus.registerSubmenu(subSubMenuPath, 'Sample sub menu', { order: '2' }); menus.registerMenuAction(subSubMenuPath, { commandId: SampleCommand2.id, order: '3' }); const visibility = this.preferenceService.get('window.menuBarVisibility'); this.preferenceService.updateValue('window.menuBarVisibility', visibility === 'classic' ? 'visible' : 'classic') }, 5000);
@msujew Thanks for your help, I changed window.menuBarVisibility like this and it worked for me
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Description:
Discussed in #13716.
Registering a menu with a delay prevents that menu from showing up in the main application menu.
The issue is that the main menu is only recreated during startup and when the menu bar visibility changes. It doesn't listen on any other events.
Steps to Reproduce:
registerMenus
method of anyMenuContribution
.window.menuBarVisibility
setting.Additional Information
The text was updated successfully, but these errors were encountered: