fix ReplaceInaccessibleFieldWithGetterSetterFixTest by not searching for incomplete usages in cls file

This commit is contained in:
peter
2016-04-26 17:14:42 +02:00
parent 99f755531b
commit de85cf5d59
@@ -42,7 +42,7 @@ public class VariableInIncompleteCodeSearcher extends QueryExecutorBase<PsiRefer
SearchScope scope = p.getEffectiveSearchScope();
if (!(scope instanceof LocalSearchScope)) {
final PsiFile file = refElement.getContainingFile();
if (file == null) return;
if (file == null || file instanceof PsiCompiledElement) return;
//process incomplete references to the 'field' in the same file only
scope = new LocalSearchScope(new PsiElement[]{file}, null, !PsiSearchHelperImpl.shouldProcessInjectedPsi(p.getScopeDeterminedByUser()));
}