change the order of path suggestions
This commit is contained in:
parent
cfff31bc83
commit
353d6373ff
1 changed files with 6 additions and 0 deletions
|
@ -1707,6 +1707,12 @@ crate fn show_candidates(
|
|||
candidates.iter().map(|c| path_names_to_string(&c.path)).collect();
|
||||
|
||||
path_strings.sort();
|
||||
let core_path_strings =
|
||||
path_strings.iter().filter(|p| p.starts_with("core::")).cloned().collect::<Vec<String>>();
|
||||
if !core_path_strings.is_empty() {
|
||||
path_strings.retain(|p| !p.starts_with("core::"));
|
||||
}
|
||||
path_strings.extend(core_path_strings);
|
||||
path_strings.dedup();
|
||||
|
||||
let (determiner, kind) = if candidates.len() == 1 {
|
||||
|
|
Loading…
Add table
Reference in a new issue