Associate StringMatchCandidate
with an id
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
e538beb920
commit
be24e58926
5 changed files with 26 additions and 31 deletions
|
@ -401,12 +401,7 @@ async fn test_outline(mut cx: gpui::TestAppContext) {
|
|||
.await;
|
||||
matches
|
||||
.into_iter()
|
||||
.map(|mat| {
|
||||
(
|
||||
outline.items[mat.candidate_index].text.as_str(),
|
||||
mat.positions,
|
||||
)
|
||||
})
|
||||
.map(|mat| (outline.items[mat.candidate_id].text.as_str(), mat.positions))
|
||||
.collect::<Vec<_>>()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue