Skip to content

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

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

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

kasiaMarek
Copy link
Member

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!

@tgodzik
Copy link
Contributor

tgodzik commented Feb 18, 2025

@kasiaMarek do you want to get back to this?

@kasiaMarek kasiaMarek marked this pull request as ready for review February 18, 2025 17:18
@kasiaMarek
Copy link
Member Author

do you want to get back to this?

Yeah, I don't think there is anything really to be done here. I just need to run the CI.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@tgodzik tgodzik merged commit 5929c87 into scala:main Feb 19, 2025
29 checks passed
@tgodzik tgodzik added the release-notes Should be mentioned in the release notes label Feb 24, 2025
@WojciechMazur WojciechMazur added this to the 3.7.0 milestone Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes Should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants