mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
start dumb mode if there are many pending vfs changes to be processed
This commit is contained in:
@@ -1932,6 +1932,15 @@ public class FileBasedIndexImpl extends FileBasedIndex implements BaseComponent,
|
||||
!PowerSaveMode.isEnabled()) {
|
||||
myScheduledVfsEventsWorkers.incrementAndGet();
|
||||
myVfsEventsExecutor.submit(this::processFilesInReadActionWithYieldingToWriteAction);
|
||||
|
||||
for(Project project:ProjectManager.getInstance().getOpenProjects()) {
|
||||
DumbServiceImpl dumbService = DumbServiceImpl.getInstance(project);
|
||||
DumbModeTask task = FileBasedIndexProjectHandler.createChangedFilesIndexingTask(project);
|
||||
|
||||
if (task != null) {
|
||||
dumbService.queueTask(task);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user