@@ -269,12 +269,6 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
269
269
command : MonitorViewContribution . TOGGLE_SERIAL_MONITOR_TOOLBAR ,
270
270
tooltip : 'Serial Monitor'
271
271
} ) ;
272
- registry . registerItem ( {
273
- id : ArduinoCommands . TOGGLE_ADVANCED_MODE . id ,
274
- command : ArduinoCommands . TOGGLE_ADVANCED_MODE_TOOLBAR . id ,
275
- tooltip : this . editorMode . proMode ? 'Switch to Classic Mode' : 'Switch to Advanced Mode' ,
276
- text : this . editorMode . proMode ? '$(toggle-on)' : '$(toggle-off)'
277
- } ) ;
278
272
}
279
273
280
274
registerCommands ( registry : CommandRegistry ) : void {
@@ -295,40 +289,26 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
295
289
}
296
290
}
297
291
} ) ;
298
- registry . registerCommand ( ArduinoCommands . TOGGLE_ADVANCED_MODE , {
299
- isToggled : ( ) => this . editorMode . proMode ,
300
- execute : ( ) => this . editorMode . toggleProMode ( )
301
- } ) ;
302
- registry . registerCommand ( ArduinoCommands . TOGGLE_ADVANCED_MODE_TOOLBAR , {
303
- isVisible : widget => ArduinoToolbar . is ( widget ) && widget . side === 'right' ,
304
- isToggled : ( ) => this . editorMode . proMode ,
305
- execute : ( ) => this . editorMode . toggleProMode ( )
306
- } ) ;
307
292
}
308
293
309
294
registerMenus ( registry : MenuModelRegistry ) {
310
- if ( ! this . editorMode . proMode ) {
311
- const menuId = ( menuPath : string [ ] ) : string => {
312
- const index = menuPath . length - 1 ;
313
- const menuId = menuPath [ index ] ;
314
- return menuId ;
315
- }
316
- registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( MonacoMenus . SELECTION ) ) ;
317
- registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( EditorMainMenu . GO ) ) ;
318
- registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( TerminalMenus . TERMINAL ) ) ;
319
- registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( CommonMenus . VIEW ) ) ;
295
+ const menuId = ( menuPath : string [ ] ) : string => {
296
+ const index = menuPath . length - 1 ;
297
+ const menuId = menuPath [ index ] ;
298
+ return menuId ;
320
299
}
300
+ registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( MonacoMenus . SELECTION ) ) ;
301
+ registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( EditorMainMenu . GO ) ) ;
302
+ registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( TerminalMenus . TERMINAL ) ) ;
303
+ registry . getMenu ( MAIN_MENU_BAR ) . removeNode ( menuId ( CommonMenus . VIEW ) ) ;
304
+
321
305
registry . registerSubmenu ( ArduinoMenus . SKETCH , 'Sketch' ) ;
322
306
registry . registerSubmenu ( ArduinoMenus . TOOLS , 'Tools' ) ;
323
307
registry . registerMenuAction ( ArduinoMenus . SKETCH__MAIN_GROUP , {
324
308
commandId : ArduinoCommands . TOGGLE_COMPILE_FOR_DEBUG . id ,
325
309
label : 'Optimize for Debugging' ,
326
310
order : '4'
327
311
} ) ;
328
- registry . registerMenuAction ( ArduinoMenus . HELP__CONTROL_GROUP , {
329
- commandId : ArduinoCommands . TOGGLE_ADVANCED_MODE . id ,
330
- label : 'Advanced Mode'
331
- } ) ;
332
312
}
333
313
334
314
protected async openSketchFiles ( uri : URI ) : Promise < void > {
0 commit comments