Fix boards listing (#1520)

* Fix boards listing

* use arduio-cli sorting fix

* re-use code to handle board list response

* change `handleListBoards` visibility to `private`

* pad menu items order with leading zeros to fix alphanumeric order
This commit is contained in:
Alberto Iannaccone
2022-10-17 10:03:41 +02:00
committed by GitHub
parent e577de4e8e
commit 960a2d0634
5 changed files with 46 additions and 16 deletions

View File

@@ -176,7 +176,7 @@ export class SketchControl extends SketchContribution {
{
commandId: command.id,
label: this.labelProvider.getName(uri),
order: `${i}`,
order: String(i).padStart(4),
}
);
this.toDisposeBeforeCreateNewContextMenu.push(