Add doc(alias)-based use and other mod completion

This commit is contained in:
hecatia-elegua 2023-04-05 22:08:59 +02:00
parent f87f468dbd
commit b4515d987f
4 changed files with 43 additions and 3 deletions

View file

@ -88,7 +88,7 @@ pub(crate) fn complete_expr_path(
let module_scope = module.scope(ctx.db, Some(ctx.module));
for (name, def) in module_scope {
if scope_def_applicable(def) {
acc.add_path_resolution(ctx, path_ctx, name, def, vec![]);
acc.add_path_resolution(ctx, path_ctx, name, def, ctx.doc_aliases_in_scope(def));
}
}
}