Skip to content

Conversation

cristianoc
Copy link
Collaborator

Fixes #557

@cristianoc cristianoc requested a review from zth September 12, 2022 03:03
@cristianoc cristianoc changed the title Expand one level of type definition on hover. Expand one level of type definition on hover and fix optional field type. Sep 12, 2022
Copy link
Member

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 💯

let labelDeclarationsTypes lds =
lds |> List.map (fun (ld : Types.label_declaration) -> ld.ld_type)
in
match References.digConstructor ~env ~package path with
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but it's a little big confusing that both References and Shared has a digConstructor. Or rather, hard to at a glance understand what Shared.digConstructor does (References.digConstructor is pretty easy to guess it has to do with references at least 😄 )

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the shared stuff is leftover that should probably be moved elsewhere

@cristianoc cristianoc merged commit c8afd43 into master Sep 12, 2022
@cristianoc cristianoc deleted the expand_type_def_on_hover branch September 12, 2022 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand type aliases one level when hovering
2 participants