Skip to content

Fix "convert to use" code action when used on function calls with labelled out-of-order arguments #4514

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 2 commits into from
Apr 29, 2025

Conversation

giacomocavalieri
Copy link
Member

@giacomocavalieri giacomocavalieri commented Apr 27, 2025

If a function was called with arguments that ended up being out of order because of labels, the "convert to use" code action would end up removing more arguments than it actually should. This PR fixes this bug, closes #4498

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you!

@lpil lpil merged commit ea03327 into gleam-lang:main Apr 29, 2025
12 checks passed
@giacomocavalieri giacomocavalieri deleted the fix-4498 branch April 29, 2025 16:41
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.

"convert to use" action - error when parameters are out of order
2 participants