Skip to content

Commit d3d6ba8

Browse files
authored
[ATL-1556] Sort board families in Tool menu (#486)
* [ATL-1556] Sort board families in Tool menu
1 parent 0f82e91 commit d3d6ba8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/board-selection.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ PID: ${PID}`;
185185
// Platform submenu
186186
const platformMenuPath = [...boardsPackagesGroup, packageId];
187187
// Note: Registering the same submenu twice is a noop. No need to group the boards per platform.
188-
this.menuModelRegistry.registerSubmenu(platformMenuPath, packageLabel);
188+
this.menuModelRegistry.registerSubmenu(platformMenuPath, packageLabel, {
189+
order: packageName.toLowerCase(),
190+
});
189191

190192
const id = `arduino-select-board--${fqbn}`;
191193
const command = { id };

0 commit comments

Comments
 (0)