mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
drop java file declaration cache on any change in non-physical files (EA-62664)
This commit is contained in:
@@ -479,6 +479,9 @@ public abstract class PsiJavaFileBaseImpl extends PsiFileImpl implements PsiJava
|
||||
SymbolCollectingProcessor p = new SymbolCollectingProcessor();
|
||||
myFile.processDeclarationsNoGuess(p, ResolveState.initial(), myFile, myFile);
|
||||
MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext> results = p.getResults();
|
||||
if (!myFile.isPhysical()) {
|
||||
return Result.create(results, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT, myFile);
|
||||
}
|
||||
return Result.create(results, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user