Fix board selector synchronization (#1214)

* prevent deselecting a board from the board selctor

* orrectly update board selector when baord config changes
This commit is contained in:
Alberto Iannaccone
2022-07-19 14:25:23 +02:00
committed by GitHub
parent 1f7c2eb52c
commit 8610332afc
3 changed files with 26 additions and 13 deletions

View File

@@ -516,6 +516,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution {
for (let i = 0; !hasChanged && i < availableBoards.length; i++) {
const [left, right] = [availableBoards[i], currentAvailableBoards[i]];
hasChanged =
left.fqbn !== right.fqbn ||
!!AvailableBoard.compare(left, right) ||
left.selected !== right.selected;
}