Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fake languages to pretty-print code & types #50

Merged
merged 7 commits into from
Nov 5, 2024

Conversation

vincent-botbol
Copy link
Contributor

@vincent-botbol vincent-botbol commented Oct 29, 2024

Depends on #51, do not merge before it lands.

This PR adds fake textmate grammars in order to properly display to the users type of expression on mouse hovering.

WIP: I would also like to add the full display of data structures when hovering on type expressions.

Status update: this PR misses a small surface printer to display enumeration & structures on hovering

Here are some examples of what it looks like:
image
image

@vincent-botbol vincent-botbol changed the title [WIP] Add fake languages to pretty-print types Add fake languages to pretty-print code & types Oct 30, 2024
@vincent-botbol vincent-botbol changed the title Add fake languages to pretty-print code & types [WIP] Add fake languages to pretty-print code & types Oct 30, 2024
@vincent-botbol vincent-botbol changed the title [WIP] Add fake languages to pretty-print code & types Add fake languages to pretty-print code & types Oct 31, 2024
Copy link
Contributor

@rprimet rprimet left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@denismerigoux denismerigoux left a comment

Choose a reason for hiding this comment

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

Yes, thanks!

@vincent-botbol vincent-botbol merged commit 412d957 into master Nov 5, 2024
1 check passed
@vincent-botbol vincent-botbol deleted the vbot@prettier_types branch November 5, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants