change the order of path suggestions
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user