File tree 1 file changed +10
-2
lines changed
arduino-ide-extension/src/browser/contributions
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ ${value}
141
141
label : nls . localize ( 'arduino/editor/decreaseIndent' , 'Decrease Indent' ) ,
142
142
order : '2' ,
143
143
} ) ;
144
+ registry . registerMenuAction ( ArduinoMenus . EDIT__CODE_CONTROL_GROUP , {
145
+ commandId : EditContributions . Commands . AUTO_FORMAT . id ,
146
+ label : nls . localize ( 'arduino/editor/autoFormat' , 'Auto Format' ) ,
147
+ order : '3' ,
148
+ } ) ;
144
149
145
150
registry . registerMenuAction ( ArduinoMenus . EDIT__FONT_CONTROL_GROUP , {
146
151
commandId : EditContributions . Commands . INCREASE_FONT_SIZE . id ,
@@ -248,10 +253,13 @@ ${value}
248
253
} ) ;
249
254
}
250
255
251
- protected async current ( ) : Promise < ICodeEditor | StandaloneCodeEditor | undefined > {
256
+ protected async current ( ) : Promise <
257
+ ICodeEditor | StandaloneCodeEditor | undefined
258
+ > {
252
259
return (
253
260
this . codeEditorService . getFocusedCodeEditor ( ) ||
254
- this . codeEditorService . getActiveCodeEditor ( ) || undefined
261
+ this . codeEditorService . getActiveCodeEditor ( ) ||
262
+ undefined
255
263
) ;
256
264
}
257
265
You can’t perform that action at this time.
0 commit comments