Add config hover_show_adtFieldsOrVariants to handle hovering limitation for ADTs

This commit is contained in:
roife 2024-04-06 13:57:56 +08:00
parent 1179c3ee83
commit 21da6c6164
5 changed files with 60 additions and 52 deletions

View file

@ -167,7 +167,7 @@ impl StaticIndex<'_> {
keywords: true,
format: crate::HoverDocFormat::Markdown,
max_trait_assoc_items_count: None,
max_struct_field_count: None,
max_adt_fields_or_variants_count: Some(10),
};
let tokens = tokens.filter(|token| {
matches!(