shared-indexes: do not terminate Shared Indexes chunks download if indexing is restarted

GitOrigin-RevId: 5b8f6fad3d51634bb4b9e6de0dfc2bee2c687b6d
This commit is contained in:
Eugene Petrenko
2020-06-03 01:23:00 +03:00
committed by intellij-monorepo-bot
parent 5b2efaaa08
commit 2a241cb4bc
2 changed files with 6 additions and 1 deletions
@@ -14,7 +14,7 @@ import java.io.IOException;
@ApiStatus.Internal
public interface FileBasedIndexInfrastructureExtension {
ExtensionPointName<FileBasedIndexInfrastructureExtension> EP_NAME = ExtensionPointName.create("com.intellij.fileBasedIndexInfrastructureExtension");
ExtensionPointName<FileBasedIndexInfrastructureExtension> EP_NAME = ExtensionPointName.create("com.intellij.fileBasedIndexInfrastructureExtension");
/**
* This notification is sent from the IDE to let the extension point implementation
@@ -24,6 +24,10 @@ public interface FileBasedIndexInfrastructureExtension {
*/
void processIndexingProject(@NotNull Project project, @NotNull ProgressIndicator indexingIndicator);
/**
* This notification is sent when the indexing is started and there are no files detected to index
*/
void noFilesFoundToProcessIndexingProject(@NotNull Project project, @NotNull ProgressIndicator indexingIndicator);
interface FileIndexingStatusProcessor {
/**
@@ -132,6 +132,7 @@ public final class UnindexedFilesUpdater extends DumbModeTask {
}
if (totalFiles == 0 || SystemProperties.getBooleanProperty("idea.indexes.pretendNoFiles", false)) {
FileBasedIndexInfrastructureExtension.EP_NAME.extensions().forEach(ex -> ex.noFilesFoundToProcessIndexingProject(myProject, indicator));
return;
}