mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-27 13:16:43 +00:00
arduino/arduino-pro-ide#188: Open Boards and Library manager on first start
This commit is contained in:
parent
1bc996d8d8
commit
24bd23b669
@ -455,13 +455,13 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
|
|||||||
|
|
||||||
registry.registerSubmenu(ArduinoMenus.SKETCH, 'Sketch');
|
registry.registerSubmenu(ArduinoMenus.SKETCH, 'Sketch');
|
||||||
registry.registerMenuAction(ArduinoMenus.SKETCH, {
|
registry.registerMenuAction(ArduinoMenus.SKETCH, {
|
||||||
commandId: ArduinoCommands.VERIFY.id,
|
commandId: ArduinoCommands.TOGGLE_COMPILE_FOR_DEBUG.id,
|
||||||
label: 'Verify/Compile',
|
label: 'Optimize for Debugging',
|
||||||
order: '1'
|
order: '1'
|
||||||
});
|
});
|
||||||
registry.registerMenuAction(ArduinoMenus.SKETCH, {
|
registry.registerMenuAction(ArduinoMenus.SKETCH, {
|
||||||
commandId: ArduinoCommands.TOGGLE_COMPILE_FOR_DEBUG.id,
|
commandId: ArduinoCommands.VERIFY.id,
|
||||||
label: 'Optimize for Debugging',
|
label: 'Verify/Compile',
|
||||||
order: '2'
|
order: '2'
|
||||||
});
|
});
|
||||||
registry.registerMenuAction(ArduinoMenus.SKETCH, {
|
registry.registerMenuAction(ArduinoMenus.SKETCH, {
|
||||||
|
@ -23,6 +23,10 @@ export class BoardsListWidgetFrontendContribution extends ListWidgetFrontendCont
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async initializeLayout(): Promise<void> {
|
||||||
|
this.openView();
|
||||||
|
}
|
||||||
|
|
||||||
registerMenus(menus: MenuModelRegistry): void {
|
registerMenus(menus: MenuModelRegistry): void {
|
||||||
if (this.toggleCommand) {
|
if (this.toggleCommand) {
|
||||||
menus.registerMenuAction(ArduinoMenus.TOOLS, {
|
menus.registerMenuAction(ArduinoMenus.TOOLS, {
|
||||||
|
@ -14,15 +14,15 @@ export class LibraryListWidgetFrontendContribution extends AbstractViewContribut
|
|||||||
widgetName: LibraryListWidget.WIDGET_LABEL,
|
widgetName: LibraryListWidget.WIDGET_LABEL,
|
||||||
defaultWidgetOptions: {
|
defaultWidgetOptions: {
|
||||||
area: 'left',
|
area: 'left',
|
||||||
rank: 600
|
rank: 700
|
||||||
},
|
},
|
||||||
toggleCommandId: `${LibraryListWidget.WIDGET_ID}:toggle`,
|
toggleCommandId: `${LibraryListWidget.WIDGET_ID}:toggle`,
|
||||||
toggleKeybinding: 'ctrlcmd+shift+l'
|
toggleKeybinding: 'ctrlcmd+shift+l'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
initializeLayout(): void {
|
async initializeLayout(): Promise<void> {
|
||||||
// NOOP
|
this.openView();
|
||||||
}
|
}
|
||||||
|
|
||||||
registerMenus(menus: MenuModelRegistry): void {
|
registerMenus(menus: MenuModelRegistry): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user