IDEA-97123 IDEA not responding after search by field

This commit is contained in:
Sergey Evdokimov
2012-12-11 20:42:36 +04:00
parent f527cbc3f4
commit a692528052
@@ -102,6 +102,11 @@ public class MavenFilteredPropertyPsiReferenceProvider extends PsiReferenceProvi
@NotNull
@Override
public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNull ProcessingContext context) {
if (element.getFirstChild() != element.getLastChild()) {
// Add reference to element with one child or leaf element only to avoid performance problem.
return PsiReference.EMPTY_ARRAY;
}
if (!MavenDomUtil.isFilteredResourceFile(element)) return PsiReference.EMPTY_ARRAY;
String text = element.getText();