Skip to content

improvement: Don't dealias named tuples for type hints #23013

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Apr 17, 2025

This causes the code to grow quite a lot.

Fixes scalameta/metals#7397

@bishabosha
Copy link
Member

is there a good reason to not try and simplify the result of match types? in the linked issue its unreduced

@tgodzik
Copy link
Contributor Author

tgodzik commented Apr 17, 2025

is there a good reason to not try and simplify the result of match types? in the linked issue its unreduced

The only reason is that I don't know how to do it :D

Also make it work on hover, completions and inferred type
@tgodzik
Copy link
Contributor Author

tgodzik commented Apr 18, 2025

Ok, it seems we managed to get the named tuples to simplify nicely.

@tgodzik tgodzik requested a review from rochala April 18, 2025 14:44
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.

Named tuples operations produce huge types in inlay hints
2 participants