[ATL-1556] Sort board families in Tool menu (#486)

* [ATL-1556] Sort board families in Tool menu
This commit is contained in:
Francesco Stasi
2021-08-26 15:25:37 +02:00
committed by GitHub
parent 0f82e91380
commit d3d6ba8176

View File

@@ -185,7 +185,9 @@ PID: ${PID}`;
// Platform submenu
const platformMenuPath = [...boardsPackagesGroup, packageId];
// Note: Registering the same submenu twice is a noop. No need to group the boards per platform.
this.menuModelRegistry.registerSubmenu(platformMenuPath, packageLabel);
this.menuModelRegistry.registerSubmenu(platformMenuPath, packageLabel, {
order: packageName.toLowerCase(),
});
const id = `arduino-select-board--${fqbn}`;
const command = { id };