mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add doc(alias)-based use and other mod completion
This commit is contained in:
parent
f87f468dbd
commit
b4515d987f
4 changed files with 43 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue