Skip to content

Commit 9f48296

Browse files
Akos Kittakittaakos
authored andcommitted
fix: defer board+port state update for extensions
If it is set before the board+port settings are restored from the `localStorage`, extensions will see no board+port. Ref: #2165 Ref: dankeboy36/esp-exception-decoder#10 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent ec28623 commit 9f48296

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arduino-ide-extension/src/browser/contributions/update-arduino-state.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export class UpdateArduinoState extends SketchContribution {
7676
}
7777

7878
override onReady(): void {
79-
this.updateBoardsConfig(this.boardsServiceProvider.boardsConfig); // TODO: verify!
79+
this.boardsServiceProvider.ready.then(() => {
80+
this.updateBoardsConfig(this.boardsServiceProvider.boardsConfig);
81+
});
8082
this.updateSketchPath(this.sketchServiceClient.tryGetCurrentSketch());
8183
this.updateUserDirPath(this.configService.tryGetSketchDirUri());
8284
this.updateDataDirPath(this.configService.tryGetDataDirUri());

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy