Skip to content

Commit f23af92

Browse files
Notify the user that we're collecting symbols
It could be confusing if they see "Indexing n/n" but cache priming does not finish.
1 parent 1c7a94f commit f23af92

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

crates/ide-db/src/prime_caches.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub fn parallel_prime_caches(
202202
crates_currently_indexing: vec![],
203203
crates_done: crate_def_maps_done,
204204
crates_total: crate_def_maps_done,
205-
work_type: "Indexing",
205+
work_type: "Done",
206206
});
207207
return;
208208
}
@@ -226,6 +226,15 @@ pub fn parallel_prime_caches(
226226
}
227227
}
228228

229+
if crate_def_maps_done == crate_def_maps_total {
230+
cb(ParallelPrimeCachesProgress {
231+
crates_currently_indexing: vec![],
232+
crates_done: crate_def_maps_done,
233+
crates_total: crate_def_maps_done,
234+
work_type: "Collecting Symbols",
235+
});
236+
}
237+
229238
let origin = &crate_id.data(db).origin;
230239
if origin.is_lang() {
231240
crate_import_maps_total += 1;

0 commit comments

Comments
 (0)