File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,9 @@ func LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.Library
48
48
49
49
nameFilter := strings .ToLower (req .GetName ())
50
50
51
- allLibs := listLibraries ( lm , req . GetUpdatable (), req . GetAll ())
51
+ var allLibs [] * installedLib
52
52
if f := req .GetFqbn (); f != "" {
53
+ allLibs = listLibraries (lm , req .GetUpdatable (), true )
53
54
fqbn , err := cores .ParseFQBN (req .GetFqbn ())
54
55
if err != nil {
55
56
return nil , & arduino.InvalidFQBNError {Cause : err }
@@ -93,6 +94,8 @@ func LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.Library
93
94
for _ , lib := range filteredRes {
94
95
allLibs = append (allLibs , lib )
95
96
}
97
+ } else {
98
+ allLibs = listLibraries (lm , req .GetUpdatable (), req .GetAll ())
96
99
}
97
100
98
101
installedLibs := []* rpc.InstalledLibrary {}
You can’t perform that action at this time.
0 commit comments