Skip to content

Commit 80a094c

Browse files
committed
change(sdkconfig): improved SDKConfigurationFilter
1 parent 31b7055 commit 80a094c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/com.espressif.idf.sdk.config.ui/src/com/espressif/idf/sdk/config/ui/SDKConfigurationFilter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ public class SDKConfigurationFilter extends PatternFilter
1010
@Override
1111
protected boolean isLeafMatch(Viewer viewer, Object element)
1212
{
13-
1413
if (element instanceof KConfigMenuItem)
1514
{
1615
KConfigMenuItem highLevelElem = (KConfigMenuItem) element;
1716

18-
return wordMatches(highLevelElem.getTitle()) || recursiveMatch(highLevelElem);
17+
return wordMatches(highLevelElem.getTitle()) || wordMatches(highLevelElem.getName())
18+
|| recursiveMatch(highLevelElem);
1919
}
2020

2121
return false;
@@ -25,12 +25,12 @@ private boolean recursiveMatch(KConfigMenuItem parent)
2525
{
2626
if (parent.getChildren().isEmpty())
2727
{
28-
return wordMatches(parent.getName());
28+
return wordMatches(parent.getName()) || wordMatches(parent.getTitle());
2929
}
3030

3131
for (KConfigMenuItem child : parent.getChildren())
3232
{
33-
if (wordMatches(child.getName()) || recursiveMatch(child))
33+
if (wordMatches(child.getName()) || wordMatches(child.getTitle()) || recursiveMatch(child))
3434
{
3535
return true;
3636
}

0 commit comments

Comments
 (0)