mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[dom] dont request stubs during stubs building
should fix some flaky tests. Funny that in other similar calls there is a comment that `XmlUtil.isStubBuilding()` is not necessary, but my guess that it still is. GitOrigin-RevId: bdb4295b50dca58ff9a3ebcdb4a67cf464b3a24f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d5a37c70dc
commit
89f876cca0
@@ -35,6 +35,7 @@ import com.intellij.util.xml.stubs.DomStub;
|
||||
import com.intellij.util.xml.stubs.ElementStub;
|
||||
import com.intellij.util.xml.stubs.FileStub;
|
||||
import com.intellij.xml.util.IncludedXmlTag;
|
||||
import com.intellij.xml.util.XmlUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -200,7 +201,7 @@ final class DomCreator {
|
||||
FileStub stub = null;
|
||||
DomFileMetaData meta = DomApplicationComponent.getInstance().findMeta(description);
|
||||
if (meta != null && meta.hasStubs() && file instanceof VirtualFileWithId && !isFileParsed(xmlFile)) {
|
||||
if (FileBasedIndex.getInstance().getFileBeingCurrentlyIndexed() == null) {
|
||||
if (FileBasedIndex.getInstance().getFileBeingCurrentlyIndexed() == null && !XmlUtil.isStubBuilding()) {
|
||||
ObjectStubTree<?> stubTree = StubTreeLoader.getInstance().readFromVFile(xmlFile.getProject(), file);
|
||||
if (stubTree != null) {
|
||||
stub = (FileStub)stubTree.getRoot();
|
||||
|
||||
Reference in New Issue
Block a user