mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 17:58:16 +00:00
Merge #10557
10557: fix: Fix qualified path completion not completing macros r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
2d7d7f729d
2 changed files with 4 additions and 0 deletions
|
@ -223,6 +223,7 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
|
|||
});
|
||||
}
|
||||
}
|
||||
hir::PathResolution::Macro(mac) => acc.add_macro(ctx, None, mac),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -122,11 +122,14 @@ use foo::$0
|
|||
mod foo {
|
||||
struct Private;
|
||||
pub struct Foo;
|
||||
macro_rules! foo_ { {} => {} }
|
||||
pub use foo_ as foo;
|
||||
}
|
||||
struct Bar;
|
||||
"#,
|
||||
expect![[r#"
|
||||
st Foo
|
||||
ma foo! macro_rules! foo_
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue