mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable incomplete rename on non-physical elements
This commit is contained in:
+3
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user