@@ -138,9 +138,7 @@ PID: ${PID}`;
138
138
// The board specific items, and the rest, have order with `z`. We needed something between `0` and `z` with natural-order.
139
139
this . menuModelRegistry . registerSubmenu (
140
140
boardsSubmenuPath ,
141
- nls . localize ( 'arduino/board/board' , 'Board' ) + ! ! boardsSubmenuLabel
142
- ? `: "${ boardsSubmenuLabel } "`
143
- : '' ,
141
+ nls . localize ( 'arduino/board/board' , 'Board{0}' , ! ! boardsSubmenuLabel ? `: "${ boardsSubmenuLabel } "` : '' ) ,
144
142
{ order : '100' }
145
143
) ;
146
144
this . toDisposeBeforeMenuRebuild . push (
@@ -157,9 +155,7 @@ PID: ${PID}`;
157
155
const portsSubmenuLabel = config . selectedPort ?. address ;
158
156
this . menuModelRegistry . registerSubmenu (
159
157
portsSubmenuPath ,
160
- nls . localize ( 'arduino/board/port' , 'Port' ) + portsSubmenuLabel
161
- ? `: "${ portsSubmenuLabel } "`
162
- : '' ,
158
+ nls . localize ( 'arduino/board/port' , 'Port{0}' , portsSubmenuLabel ? `: "${ portsSubmenuLabel } "` : '' ) ,
163
159
{ order : '101' }
164
160
) ;
165
161
this . toDisposeBeforeMenuRebuild . push (
@@ -197,10 +193,9 @@ PID: ${PID}`;
197
193
198
194
const packageLabel =
199
195
packageName +
200
- `${
201
- manuallyInstalled
202
- ? nls . localize ( 'arduino/board/inSketchbook' , ' (in Sketchbook)' )
203
- : ''
196
+ `${ manuallyInstalled
197
+ ? nls . localize ( 'arduino/board/inSketchbook' , ' (in Sketchbook)' )
198
+ : ''
204
199
} `;
205
200
// Platform submenu
206
201
const platformMenuPath = [ ...boardsPackagesGroup , packageId ] ;
@@ -273,9 +268,8 @@ PID: ${PID}`;
273
268
} ) ;
274
269
}
275
270
for ( const { name, fqbn } of boards ) {
276
- const id = `arduino-select-port--${ address } ${
277
- fqbn ? `--${ fqbn } ` : ''
278
- } `;
271
+ const id = `arduino-select-port--${ address } ${ fqbn ? `--${ fqbn } ` : ''
272
+ } `;
279
273
const command = { id } ;
280
274
const handler = {
281
275
execute : ( ) => {
0 commit comments