Skip to content

Commit 62ffca4

Browse files
authored
Merge pull request #2052 from ahoppen/6.1/schedule-indexing-progress
[6.1] Only show the `Scheduling Indexing` progress if no indexing tasks are currently happening
2 parents 017c710 + 471841c commit 62ffca4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SemanticIndex/SemanticIndexManager.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ package final actor SemanticIndexManager {
215215
if inProgressPreparationTasks.values.contains(where: { $0.purpose == .forEditorFunctionality }) {
216216
return .preparingFileForEditorFunctionality
217217
}
218-
if !scheduleIndexingTasks.isEmpty {
219-
return .schedulingIndexing
220-
}
221218
let preparationTasks = inProgressPreparationTasks.mapValues { inProgressTask in
222219
return inProgressTask.task.isExecuting ? IndexTaskStatus.executing : IndexTaskStatus.scheduled
223220
}
@@ -230,6 +227,9 @@ package final actor SemanticIndexManager {
230227
}
231228
}
232229
if preparationTasks.isEmpty && indexTasks.isEmpty {
230+
if !scheduleIndexingTasks.isEmpty {
231+
return .schedulingIndexing
232+
}
233233
return .upToDate
234234
}
235235
return .indexing(preparationTasks: preparationTasks, indexTasks: indexTasks)

0 commit comments

Comments
 (0)