Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 94a51c2

Browse filesBrowse files
author
Akos Kitta
committed
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 73ddbef commit 94a51c2
Copy full SHA for 94a51c2

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: arduino-ide-extension/src/browser/contributions/update-arduino-state.ts
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.