File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
arduino-ide-extension/src/electron-browser/theia/core Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 88} from '@theia/core/lib/common/menu' ;
99import {
1010 ElectronMainMenuFactory as TheiaElectronMainMenuFactory ,
11+ ElectronMenuItemRole ,
1112 ElectronMenuOptions ,
1213} from '@theia/core/lib/electron-browser/menu/electron-main-menu-factory' ;
1314import {
@@ -123,6 +124,15 @@ export class ElectronMainMenuFactory extends TheiaElectronMainMenuFactory {
123124 return { label, submenu } ;
124125 }
125126
127+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
128+ protected override roleFor ( id : string ) : ElectronMenuItemRole | undefined {
129+ // MenuItem `roles` are completely broken on macOS:
130+ // - https://github.com/eclipse-theia/theia/issues/11217,
131+ // - https://github.com/arduino/arduino-ide/issues/969
132+ // IDE2 uses commands instead.
133+ return undefined ;
134+ }
135+
126136 protected override handleElectronDefault (
127137 menuNode : CompositeMenuNode ,
128138 args : any [ ] = [ ] ,
You can’t perform that action at this time.
0 commit comments