mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't load stubs if any of the PSI roots was modified (EA-99102 - RE: FileTrees.withExclusiveStub)
This commit is contained in:
@@ -1169,7 +1169,9 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
}
|
||||
|
||||
public final boolean useStrongRefs() {
|
||||
return myTrees.useStrongRefs;
|
||||
if (myTrees.useStrongRefs) return true;
|
||||
return myViewProvider instanceof MultiplePsiFilesPerDocumentFileViewProvider &&
|
||||
myViewProvider.getAllFiles().stream().anyMatch(root -> root instanceof PsiFileImpl && ((PsiFileImpl)root).myTrees.useStrongRefs);
|
||||
}
|
||||
|
||||
public boolean mayCacheAst() {
|
||||
|
||||
Reference in New Issue
Block a user