disable incomplete rename on non-physical elements

This commit is contained in:
Anna Kozlova
2014-12-29 11:24:50 +01:00
parent cec218603b
commit a8be778da0
@@ -44,8 +44,10 @@ public class VariableInIncompleteCodeSearcher extends QueryExecutorBase<PsiRefer
SearchScope scope = p.getEffectiveSearchScope();
if (!(scope instanceof LocalSearchScope)) {
final PsiFile file = refElement.getContainingFile();
if (file == null) return;
//process incomplete references to the 'field' in the same file only
scope = new LocalSearchScope(refElement.getContainingFile());
scope = new LocalSearchScope(file);
}
PsiElement[] elements = ((LocalSearchScope)scope).getScope();