Skip to content

Commit cb2ef78

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
ATL-1195: Show all libraries if no board selected.
Like for the examples, we show all libraries if no board is selected, or the platform for the selected board is not installed. Otherwise, we show the libs for the current board. Signed-off-by: Akos Kitta <[email protected]>
1 parent 68af4c3 commit cb2ef78

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ export class IncludeLibrary extends SketchContribution {
7474
this.mainMenuManager.update();
7575
const libraries: LibraryPackage[] = []
7676
const fqbn = this.boardsServiceClient.boardsConfig.selectedBoard?.fqbn;
77-
// Do not show board specific examples, when no board is selected.
78-
if (fqbn) {
79-
libraries.push(...await this.libraryService.list({ fqbn }));
80-
}
77+
// Show all libraries, when no board is selected.
78+
// Otherwise, show libraries only for the selected board.
79+
libraries.push(...await this.libraryService.list({ fqbn }));
8180

8281
const includeLibMenuPath = [...ArduinoMenus.SKETCH__UTILS_GROUP, '0_include'];
8382
// `Add .ZIP Library...`

0 commit comments

Comments
 (0)