File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
app/src/cc/arduino/contributions/libraries/ui
arduino-core/src/cc/arduino/contributions/libraries Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,12 @@ private boolean filterCondition(ContributedLibraryReleases lib) {
145
145
}
146
146
147
147
ContributedLibrary latest = lib .getLatest ();
148
- String compoundTargetSearchText = latest .getName () + "\n " + latest .getParagraph ()
149
- + "\n " + latest .getSentence ();
148
+ String compoundTargetSearchText = latest .getName () + " "
149
+ + latest .getParagraph () + " "
150
+ + latest .getSentence ();
151
+ if (latest .getProvidesIncludes () != null ) {
152
+ compoundTargetSearchText += " " + latest .getProvidesIncludes ();
153
+ }
150
154
if (!stringContainsAll (compoundTargetSearchText , selectedFilters )) {
151
155
return false ;
152
156
}
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ public abstract class ContributedLibrary extends DownloadableContribution {
65
65
66
66
public abstract List <ContributedLibraryReference > getRequires ();
67
67
68
+ public abstract List <String > getProvidesIncludes ();
69
+
68
70
public static final Comparator <ContributedLibrary > CASE_INSENSITIVE_ORDER = (o1 , o2 ) -> o1 .getName ().compareToIgnoreCase (o2 .getName ());
69
71
70
72
private Optional <UserLibrary > installedLib = Optional .empty ();
You can’t perform that action at this time.
0 commit comments