File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 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
4848
4949 nameFilter := strings .ToLower (req .GetName ())
5050
51- allLibs := listLibraries ( lm , req . GetUpdatable (), req . GetAll ())
51+ var allLibs [] * installedLib
5252 if f := req .GetFqbn (); f != "" {
53+ allLibs = listLibraries (lm , req .GetUpdatable (), true )
5354 fqbn , err := cores .ParseFQBN (req .GetFqbn ())
5455 if err != nil {
5556 return nil , & arduino.InvalidFQBNError {Cause : err }
@@ -93,6 +94,8 @@ func LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.Library
9394 for _ , lib := range filteredRes {
9495 allLibs = append (allLibs , lib )
9596 }
97+ } else {
98+ allLibs = listLibraries (lm , req .GetUpdatable (), req .GetAll ())
9699 }
97100
98101 installedLibs := []* rpc.InstalledLibrary {}
You can’t perform that action at this time.
0 commit comments