Skip to content

Commit 62aee5c

Browse files
committed
Fix for Issue 2036
Title: Custom board option menus not following the order sent by the cli Fixes "Custom board option menus not following the order inside boards.txt" Line 74-76 of "boards-data-menu-updater.ts": for (const { label, option, values } of configOptions.sort( ConfigOption.LABEL_COMPARATOR )) { New Line 74: for (const { label, option, values } of configOptions ) { IMHO using sort on configOptions will produce the mentioned failure. Simply don't sort and the order will be as in Arduino IDE 1.x (as desfined inside board.txt) I don't have the tools to build and test this change. I use the AppImage "arduino-ide_2.3.6_Linux_64bit.AppImage" Signed-off-by: Günter Neiß <[email protected]>
1 parent 0f9f0d0 commit 62aee5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arduino-ide-extension/src/browser/contributions/boards-data-menu-updater.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export class BoardsDataMenuUpdater extends Contribution {
7171
...ArduinoMenus.TOOLS__BOARD_SETTINGS_GROUP,
7272
'z01_boardsConfig',
7373
]; // `z_` is for ordering.
74-
for (const { label, option, values } of configOptions.sort(
75-
ConfigOption.LABEL_COMPARATOR
76-
)) {
74+
for (const { label, option, values } of configOptions ) {
7775
const menuPath = [...boardsConfigMenuPath, `${option}`];
7876
const commands = new Map<
7977
string,

0 commit comments

Comments
 (0)