mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Basic hover for builtin-attr and tool modules
This commit is contained in:
parent
db559e5049
commit
70b8331fd5
2 changed files with 13 additions and 2 deletions
|
@ -369,8 +369,9 @@ pub(super) fn definition(
|
|||
}
|
||||
Definition::GenericParam(it) => label_and_docs(db, it),
|
||||
Definition::Label(it) => return Some(Markup::fenced_block(&it.name(db))),
|
||||
Definition::BuiltinAttr(_) => return None, // FIXME
|
||||
Definition::Tool(_) => return None, // FIXME
|
||||
// FIXME: We should be able to show more info about these
|
||||
Definition::BuiltinAttr(it) => return Some(Markup::fenced_block(&it.name(db))),
|
||||
Definition::Tool(it) => return Some(Markup::fenced_block(&it.name(db))),
|
||||
};
|
||||
|
||||
markup(docs.filter(|_| config.documentation.is_some()).map(Into::into), label, mod_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue