Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use the same label for both string and bag in tasks modal fuzzy match (#22022)

Michael Sloanf9df8c1729f7
diff --git a/crates/tasks_ui/src/modal.rs b/crates/tasks_ui/src/modal.rs
index 5595feaca72..2d855710798 100644
--- a/crates/tasks_ui/src/modal.rs
+++ b/crates/tasks_ui/src/modal.rs
@@ -555,11 +555,7 @@ fn string_match_candidates<'a>(
) -> Vec<StringMatchCandidate> {
candidates
.enumerate()
- .map(|(index, (_, candidate))| StringMatchCandidate {
- id: index,
- char_bag: candidate.resolved_label.chars().collect(),
- string: candidate.display_label().into(),
- })
+ .map(|(index, (_, candidate))| StringMatchCandidate::new(index, candidate.display_label()))
.collect()
}