mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
limit struct field hover display nums
This commit is contained in:
parent
d81148a009
commit
1c85234bcd
4 changed files with 28 additions and 12 deletions
|
@ -410,6 +410,9 @@ pub(super) fn definition(
|
|||
Definition::Trait(trait_) => {
|
||||
trait_.display_limited(db, config.max_trait_assoc_items_count).to_string()
|
||||
}
|
||||
Definition::Adt(Adt::Struct(struct_)) => {
|
||||
struct_.display_limited(db, config.max_struct_field_count).to_string()
|
||||
}
|
||||
_ => def.label(db),
|
||||
};
|
||||
let docs = def.docs(db, famous_defs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue