mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
onContentReload: ensure all parallel PSI files have the same useStrongRef (EA-106631 - RE: FileTrees.withExclusiveStub)
This commit is contained in:
@@ -648,11 +648,11 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
|
||||
FileElement treeElement = derefTreeElement();
|
||||
if (treeElement != null) {
|
||||
setTreeElementPointer(null);
|
||||
treeElement.detachFromFile();
|
||||
DebugUtil.onInvalidated(treeElement);
|
||||
}
|
||||
updateTrees(myTrees.clearStub("onContentReload"));
|
||||
setTreeElementPointer(null);
|
||||
}
|
||||
finally {
|
||||
DebugUtil.finishPsiModification();
|
||||
|
||||
Reference in New Issue
Block a user