diff --git a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java index 2dbd2b805d2b..b85c3c7022f2 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java @@ -857,8 +857,9 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx { boolean includeFilesFromOtherProjects = restrictedFile == null && project == null; ProjectFilesCondition projectFilterCondition = new ProjectFilesCondition( projectIndexableFiles(project), - // Index everything for performance reasons: unindexed project files will trigger "indexUnsavedDocument" too often - project == null ? GlobalSearchScope.EMPTY_SCOPE : GlobalSearchScope.everythingScope(project), + // TODO: index changed documents from other projects too for performance reasons: changed documents will break + // fast check (myUpToDateIndicesForUnsavedOrTransactedDocuments) in indexUnsavedDocument + project == null ? null : GlobalSearchScope.everythingScope(project), restrictedFile, includeFilesFromOtherProjects);