Add config for preferring / ignoring prelude modules in find_path

This commit is contained in:
Lukas Wirth 2023-11-11 14:52:11 +01:00
parent 801a887954
commit ba61766217
36 changed files with 260 additions and 54 deletions

View file

@ -263,6 +263,7 @@ pub fn resolve_completion_edits(
candidate,
config.insert_use.prefix_kind,
config.prefer_no_std,
config.prefer_prelude,
)
})
.find(|mod_path| mod_path.display(db).to_string() == full_import_path);