feat: show go-to-type-def actions for subst when hovering

This commit is contained in:
roife 2024-12-31 13:05:29 +08:00
parent 1c6b83852b
commit edaf62e7d9
3 changed files with 57 additions and 3 deletions

View file

@ -432,7 +432,7 @@ pub(super) fn definition(
notable_traits: &[(Trait, Vec<(Option<Type>, Name)>)],
macro_arm: Option<u32>,
hovered_definition: bool,
subst_types: Option<Vec<(Symbol, Type)>>,
subst_types: Option<&Vec<(Symbol, Type)>>,
config: &HoverConfig,
edition: Edition,
) -> Markup {