mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "use separate modificationCount for PSI and Document (fixes psifile-dependent CachedValues)"
This reverts commit 306b9ada21.
naive fix reverted
This commit is contained in:
@@ -73,7 +73,6 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
|
||||
private IElementType myElementType;
|
||||
protected IElementType myContentElementType;
|
||||
private long myModificationStamp;
|
||||
|
||||
protected PsiFile myOriginalFile = null;
|
||||
private final FileViewProvider myViewProvider;
|
||||
@@ -355,9 +354,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
myStub = null;
|
||||
}
|
||||
|
||||
public void clearCaches() {
|
||||
myModificationStamp ++;
|
||||
}
|
||||
public void clearCaches() {}
|
||||
|
||||
@Override
|
||||
public String getText() {
|
||||
@@ -389,7 +386,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
|
||||
@Override
|
||||
public long getModificationStamp() {
|
||||
return myModificationStamp;
|
||||
return getViewProvider().getModificationStamp();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user