mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Library search now works also for headers (.h) provided by libraries
Fixes #7604
This commit is contained in:
parent
e18261f486
commit
60021c1e63
@ -145,8 +145,12 @@ public class LibrariesIndexTableModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
ContributedLibrary latest = lib.getLatest();
|
ContributedLibrary latest = lib.getLatest();
|
||||||
String compoundTargetSearchText = latest.getName() + "\n" + latest.getParagraph()
|
String compoundTargetSearchText = latest.getName() + " "
|
||||||
+ "\n" + latest.getSentence();
|
+ latest.getParagraph() + " "
|
||||||
|
+ latest.getSentence();
|
||||||
|
if (latest.getProvidesIncludes() != null) {
|
||||||
|
compoundTargetSearchText += " " + latest.getProvidesIncludes();
|
||||||
|
}
|
||||||
if (!stringContainsAll(compoundTargetSearchText, selectedFilters)) {
|
if (!stringContainsAll(compoundTargetSearchText, selectedFilters)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,8 @@ public abstract class ContributedLibrary extends DownloadableContribution {
|
|||||||
|
|
||||||
public abstract List<ContributedLibraryReference> getRequires();
|
public abstract List<ContributedLibraryReference> getRequires();
|
||||||
|
|
||||||
|
public abstract List<String> getProvidesIncludes();
|
||||||
|
|
||||||
public static final Comparator<ContributedLibrary> CASE_INSENSITIVE_ORDER = (o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName());
|
public static final Comparator<ContributedLibrary> CASE_INSENSITIVE_ORDER = (o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName());
|
||||||
|
|
||||||
private Optional<UserLibrary> installedLib = Optional.empty();
|
private Optional<UserLibrary> installedLib = Optional.empty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user