mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't drop PsiCacheKey cache on any change in a physical file
This commit is contained in:
@@ -76,7 +76,7 @@ public class PsiCacheKey<T, H extends PsiElement> extends Key<SoftReference<Pair
|
||||
*/
|
||||
private long getModificationCount(@NotNull PsiElement element) {
|
||||
PsiFile file = element.getContainingFile();
|
||||
long fileStamp = file == null ? 0 : file.getModificationStamp();
|
||||
long fileStamp = file == null || file.isPhysical() ? 0 : file.getModificationStamp();
|
||||
PsiModificationTracker tracker = file == null ? element.getManager().getModificationTracker()
|
||||
: file.getManager().getModificationTracker();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user