Put preselect items on top
This commit is contained in:
parent
90c62bcee9
commit
fc0c5dfcd1
1 changed files with 3 additions and 1 deletions
|
|
@ -178,7 +178,9 @@ pub(crate) fn completion_item(
|
|||
};
|
||||
|
||||
if completion_item.score().is_some() {
|
||||
res.preselect = Some(true)
|
||||
res.preselect = Some(true);
|
||||
// HACK: sort preselect items first
|
||||
res.sort_text = Some(format!(" {}", completion_item.label()));
|
||||
}
|
||||
|
||||
if completion_item.deprecated() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue