mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Allow name querying for derive helpers
This commit is contained in:
parent
aa1491ecde
commit
ddad2847ab
8 changed files with 53 additions and 18 deletions
|
@ -370,8 +370,7 @@ pub(super) fn definition(
|
|||
// FIXME: We should be able to show more info about these
|
||||
Definition::BuiltinAttr(it) => return render_builtin_attr(db, it),
|
||||
Definition::ToolModule(it) => return Some(Markup::fenced_block(&it.name(db))),
|
||||
// FIXME: it.name(db)
|
||||
Definition::DeriveHelper(_it) => ("derive-helper".to_owned(), None),
|
||||
Definition::DeriveHelper(it) => (format!("derive_helper {}", it.name(db)), None),
|
||||
};
|
||||
|
||||
let docs = match config.documentation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue