mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
shared-indexes: do not terminate Shared Indexes chunks download if indexing is restarted
GitOrigin-RevId: 5b8f6fad3d51634bb4b9e6de0dfc2bee2c687b6d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5b2efaaa08
commit
2a241cb4bc
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user