@@ -160,12 +160,7 @@ impl CompletionsMenu {
|
||||
let match_candidates = completions
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(id, completion)| {
|
||||
StringMatchCandidate::new(
|
||||
id,
|
||||
&completion.label.text[completion.label.filter_range.clone()],
|
||||
)
|
||||
})
|
||||
.map(|(id, completion)| StringMatchCandidate::new(id, &completion.label.filter_text()))
|
||||
.collect();
|
||||
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user