File tree 1 file changed +1
-13
lines changed
arduino-ide-extension/src/electron-browser/theia/core
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ import {
14
14
ElectronMenuOptions ,
15
15
ElectronMainMenuFactory as TheiaElectronMainMenuFactory ,
16
16
} from '@theia/core/lib/electron-browser/menu/electron-main-menu-factory' ;
17
- import type {
18
- MenuDto ,
19
- MenuRole ,
20
- } from '@theia/core/lib/electron-common/electron-api' ;
17
+ import type { MenuDto } from '@theia/core/lib/electron-common/electron-api' ;
21
18
import { inject , injectable } from '@theia/core/shared/inversify' ;
22
19
import {
23
20
ArduinoMenus ,
@@ -136,15 +133,6 @@ export class ElectronMainMenuFactory extends TheiaElectronMainMenuFactory {
136
133
return { label, submenu } ;
137
134
}
138
135
139
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-vars
140
- protected override roleFor ( id : string ) : MenuRole | undefined {
141
- // MenuItem `roles` are completely broken on macOS:
142
- // - https://github.com/eclipse-theia/theia/issues/11217,
143
- // - https://github.com/arduino/arduino-ide/issues/969
144
- // IDE2 uses commands instead.
145
- return undefined ;
146
- }
147
-
148
136
protected override fillMenuTemplate (
149
137
parentItems : MenuDto [ ] ,
150
138
menuModel : MenuNode ,
You can’t perform that action at this time.
0 commit comments