Add test for stream_excerpts_with_context_lines

This commit is contained in:
Antonio Scandurra 2023-01-19 15:52:59 +01:00
parent 5ce065ac92
commit c124caeb0d
2 changed files with 40 additions and 1 deletions

View file

@ -130,7 +130,7 @@ impl ProjectSearch {
let matches = search.await.log_err()?;
let this = this.upgrade(&cx)?;
let mut matches = matches.into_iter().collect::<Vec<_>>();
let (_rebuild, mut match_ranges) = this.update(&mut cx, |this, cx| {
let (_task, mut match_ranges) = this.update(&mut cx, |this, cx| {
this.match_ranges.clear();
matches.sort_by_key(|(buffer, _)| buffer.read(cx).file().map(|file| file.path()));
this.excerpts.update(cx, |excerpts, cx| {