Add test for stream_excerpts_with_context_lines
This commit is contained in:
parent
5ce065ac92
commit
c124caeb0d
2 changed files with 40 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue