parent
af50261ae2
commit
53c9af3e61
3 changed files with 7 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue