fix: Fix qualified path completion not completing macros
This commit is contained in:
parent
f87debcf87
commit
2fbd52c78f
@ -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 @@ fn plain_qualified_use_tree() {
|
||||
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 New Issue
Block a user