Commit 62aee5c
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ß <gneiss@web.de>1 parent 0f9f0d0 commit 62aee5c
File tree
1 file changed
+1
-3
lines changed- arduino-ide-extension/src/browser/contributions
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
0 commit comments