mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Render alias text for use imports
* removes one method breaking the flow
This commit is contained in:
parent
b4515d987f
commit
33ee157f3b
6 changed files with 84 additions and 61 deletions
|
@ -88,7 +88,13 @@ 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, ctx.doc_aliases_in_scope(def));
|
||||
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