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 removeCommaEdits in ConvertPositionalDUToNamed to work for unformatted patterns #1074

Conversation

dawedawe
Copy link
Contributor

Recording.2023-03-12.205242.mp4

For unformatted patterns like (a,b) (please note the missing space after the coma) the left edge of the b range should be left out when checking if the comma pos is inside a pattern range. Otherwise the removeCommaEdits don't remove the comma and invalid syntax is produced, see video.

For unformatted patterns like (a,b) the left edge of the b range should be left out when checking if the comma pos is inside a pattern range
@baronfel
Copy link
Contributor

Good spot 👍

@baronfel baronfel merged commit 2f20416 into ionide:main Mar 13, 2023
@dawedawe dawedawe deleted the fix_ConvertPositionalDUToNamed_when_unformated_pattern branch March 13, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants