mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
IJPL-174027: restore previous behavior: index all files from all projects if project==null when invoking ensureUpToDate
Behavior changed unintentionally. Problem found during code review. (cherry picked from commit 7424552ccbc568d2ddfb22570c2db479df624821) IJ-CR-152316 GitOrigin-RevId: 4015ebbac27103eda06d8707882071a3394a37a5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c4eb1eb3c6
commit
82f14358db
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user