File tree 2 files changed +8
-1
lines changed
arduino-ide-extension/src/browser
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,12 @@ export const ArduinoConfigSchema: PreferenceSchema = {
258
258
) ,
259
259
default : undefined ,
260
260
} ,
261
+ 'arduino.sketch.editorOpenTimeout' : {
262
+ type : 'number' ,
263
+ description :
264
+ 'Set the editor timeout in milliseconds to reproduce the duplicate editor tabs. See #1791' ,
265
+ default : 5000 ,
266
+ } ,
261
267
} ,
262
268
} ;
263
269
@@ -288,6 +294,7 @@ export interface ArduinoConfiguration {
288
294
'arduino.cli.daemon.debug' : boolean ;
289
295
'arduino.sketch.inoBlueprint' : string ;
290
296
'arduino.checkForUpdates' : boolean ;
297
+ 'arduino.sketch.editorOpenTimeout' : number ;
291
298
}
292
299
293
300
export const ArduinoPreferences = Symbol ( 'ArduinoPreferences' ) ;
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export class OpenSketchFiles extends SketchContribution {
196
196
}
197
197
} ) ;
198
198
199
- const timeout = 5_000 ; // number of ms IDE2 waits for the editor to show up in the UI
199
+ const timeout = this . preferences [ 'arduino.sketch.editorOpenTimeout' ] ; // number of ms IDE2 waits for the editor to show up in the UI
200
200
const result : EditorWidget | undefined | 'timeout' = await Promise . race ( [
201
201
deferred . promise ,
202
202
wait ( timeout ) . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments