src/vs/workbench/electron-sandbox/parts/titlebar/menubarControl.ts/NativeMenubarControl/setupMainMenu
class NativeMenubarControl:	protected override setupMainMenu(): void {
		super.setupMainMenu();

		for (const topLevelMenuName of Object.keys(this.topLevelTitles)) {
			const menu = this.menus[topLevelMenuName];
			if (menu) {
				this.mainMenuDisposables.add(menu.onDidChange(() => this.updateMenubar()));
			}
		}
	}