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

Fix ConvertPositionalDUToNamed when other SynLongIdent.Pats are traversed #1090

Conversation

dawedawe
Copy link
Contributor

This fixes two bugs in the ConvertPositionalDUToNamed code fix.
First, there was a wrong paren range selected when the surrounding member takes () as parameters:

placement_bug.mp4

Second, there was no code fix offered when the surrounding function takes () as parameters:

offering_bug.mp4

@baronfel
Copy link
Contributor

Great catch!

@baronfel baronfel merged commit c11b282 into ionide:main Mar 28, 2023
@dawedawe dawedawe deleted the fix_ConvertPositionalDUToNamed_when_multiple_SynLongIdent_Pats branch March 28, 2023 05: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.

2 participants