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

feat: show inferred type on holes in hover [skip ci] #21423

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kasiaMarek
Copy link
Contributor

Low hanging fruit after: #21390.

It seems useful to see the inferred "expected" type on holes, so this PR adds them to be visible on hover.
Screenshot 2024-08-23 at 14 16 17

This won't be perfect, as we can't always infer the expected type as we'd like to (see: InferExpectedTypeSuite#flatmap, so I'm sure we want to introduce that at all.

Side note: Probably we should write something different than Expression type: in hover here.

cc: @tgodzik

@tgodzik
Copy link
Contributor

tgodzik commented Aug 26, 2024

I think making it work even for some cases would be cool. Great idea!

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.

2 participants