Complete exported macros in #[macro_use($0)]

This commit is contained in:
unexge 2023-12-16 16:19:58 +00:00
parent 21b06c1beb
commit b986d8ac92
6 changed files with 123 additions and 0 deletions

View file

@ -254,11 +254,13 @@ fn analyze(
{
let colon_prefix = previous_non_trivia_token(self_token.clone())
.map_or(false, |it| T![:] == it.kind());
CompletionAnalysis::UnexpandedAttrTT {
fake_attribute_under_caret: fake_ident_token
.parent_ancestors()
.find_map(ast::Attr::cast),
colon_prefix,
extern_crate: p.ancestors().find_map(ast::ExternCrate::cast),
}
} else {
return None;