Skip to content

Commit 24bd23b

Browse files
committed
arduino/arduino-pro-ide#188: Open Boards and Library manager on first start
1 parent 1bc996d commit 24bd23b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,13 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
455455

456456
registry.registerSubmenu(ArduinoMenus.SKETCH, 'Sketch');
457457
registry.registerMenuAction(ArduinoMenus.SKETCH, {
458-
commandId: ArduinoCommands.VERIFY.id,
459-
label: 'Verify/Compile',
458+
commandId: ArduinoCommands.TOGGLE_COMPILE_FOR_DEBUG.id,
459+
label: 'Optimize for Debugging',
460460
order: '1'
461461
});
462462
registry.registerMenuAction(ArduinoMenus.SKETCH, {
463-
commandId: ArduinoCommands.TOGGLE_COMPILE_FOR_DEBUG.id,
464-
label: 'Optimize for Debugging',
463+
commandId: ArduinoCommands.VERIFY.id,
464+
label: 'Verify/Compile',
465465
order: '2'
466466
});
467467
registry.registerMenuAction(ArduinoMenus.SKETCH, {

arduino-ide-extension/src/browser/boards/boards-widget-frontend-contribution.ts

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export class BoardsListWidgetFrontendContribution extends ListWidgetFrontendCont
2323
});
2424
}
2525

26+
async initializeLayout(): Promise<void> {
27+
this.openView();
28+
}
29+
2630
registerMenus(menus: MenuModelRegistry): void {
2731
if (this.toggleCommand) {
2832
menus.registerMenuAction(ArduinoMenus.TOOLS, {

arduino-ide-extension/src/browser/library/library-widget-frontend-contribution.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export class LibraryListWidgetFrontendContribution extends AbstractViewContribut
1414
widgetName: LibraryListWidget.WIDGET_LABEL,
1515
defaultWidgetOptions: {
1616
area: 'left',
17-
rank: 600
17+
rank: 700
1818
},
1919
toggleCommandId: `${LibraryListWidget.WIDGET_ID}:toggle`,
2020
toggleKeybinding: 'ctrlcmd+shift+l'
2121
});
2222
}
2323

24-
initializeLayout(): void {
25-
// NOOP
24+
async initializeLayout(): Promise<void> {
25+
this.openView();
2626
}
2727

2828
registerMenus(menus: MenuModelRegistry): void {

0 commit comments

Comments
 (0)