Skip to content

Commit 4a8740d

Browse files
author
Akos Kitta
committed
fix: init library examples if board+port is ready
Closes #2239 Signed-off-by: Akos Kitta <[email protected]>
1 parent 20a192a commit 4a8740d

File tree

1 file changed

+2
-2
lines changed
  • arduino-ide-extension/src/browser/contributions

1 file changed

+2
-2
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/examples.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ export class LibraryExamples extends Examples {
300300
this.notificationCenter.onLibraryDidUninstall(() => this.update());
301301
}
302302

303-
override async onReady(): Promise<void> {
304-
this.update(); // no `await`
303+
override onReady(): void {
304+
this.boardsServiceProvider.ready.then(() => this.update());
305305
}
306306

307307
protected override handleBoardChanged(board: Board | undefined): void {

0 commit comments

Comments
 (0)