Refine project find's UX

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-02-25 15:27:34 +01:00
parent 51c645f6b4
commit f649074d36
6 changed files with 73 additions and 31 deletions

View file

@ -1175,6 +1175,12 @@ impl MultiBuffer {
let mut buffers = Vec::new();
for _ in 0..mutation_count {
if rng.gen_bool(0.05) {
log::info!("Clearing multi-buffer");
self.clear(cx);
continue;
}
let excerpt_ids = self
.buffers
.borrow()