mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-97123 IDEA not responding after search by field
This commit is contained in:
+5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user