Skip to content

Commit 266e7c9

Browse files
author
Vitaliy Boyko
committed
Skip IDEA include tag
1 parent 7f30949 commit 266e7c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/com/magento/idea/magento2plugin/stubs/indexes/xml/PhpClassNameIndex.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
import com.jetbrains.php.lang.PhpLangUtil;
2424
import com.magento.idea.magento2plugin.project.Settings;
2525
import com.magento.idea.magento2plugin.util.RegExUtil;
26+
import com.magento.idea.magento2plugin.util.xml.XmlPsiTreeUtil;
2627
import gnu.trove.THashMap;
28+
import java.util.List;
2729
import java.util.Map;
2830
import org.jetbrains.annotations.NotNull;
2931

@@ -79,6 +81,13 @@ private void fillMap(final XmlTag parentTag, final Map<String, Void> resultMap)
7981
if (XmlIncludeHandler.isXInclude(childTag)) {
8082
return;
8183
}
84+
85+
//skipping IDEA include tag
86+
List<XmlTag> ideaIncludeTags = XmlPsiTreeUtil.findSubTagsOfParent(childTag, "xi:include");
87+
if (!ideaIncludeTags.isEmpty()) {
88+
return;
89+
}
90+
8291
final XmlTagValue childTagValue = childTag.getValue();
8392
final String tagValue = childTagValue.getTrimmedText();
8493
if (!tagValue.isEmpty() && tagValue.matches(CLASS_NAME_PATTERN)) {

0 commit comments

Comments
 (0)