Skip to content

Commit c20f832

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
Notify user if platform/lib install was successful
Signed-off-by: Akos Kitta <[email protected]>
1 parent cb2ef78 commit c20f832

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: arduino-ide-extension/src/browser/boards/boards-list-widget.ts

+5
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ export class BoardsListWidget extends ListWidget<BoardsPackage> {
3333
]);
3434
}
3535

36+
async install({ item, version }: { item: BoardsPackage; version: string; }): Promise<void> {
37+
await super.install({ item, version });
38+
this.messageService.info(`Successfully installed platform ${item.name}:${version}.`, { timeout: 3000 });
39+
}
40+
3641
}

Diff for: arduino-ide-extension/src/browser/library/library-list-widget.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ export class LibraryListWidget extends ListWidget<LibraryPackage> {
8484
}
8585

8686
if (typeof installDependencies === 'boolean') {
87-
return this.service.install({ item, version, installDependencies });
87+
await this.service.install({ item, version, installDependencies });
88+
this.messageService.info(`Successfully installed library ${item.name}:${version}.`, { timeout: 3000 });
8889
}
8990
}
9091

0 commit comments

Comments
 (0)