-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Formatting of list-patterns on multiple lines is incorrect #57244
Comments
@jinujoseph I'm afraid this issue needs attention from someone with a bit more expertise. I tried to fix this today but was unable to. |
@jcouv I looked at the linked PR and wasn't able to figure out what the request here is. |
@sharwell My PR fixed formatting of list-patterns on a single line (which is the common case). But when it comes to multi-line format, it's probably not right (it's not doing anything).
It probably should be something like one of these two (not sure which):
or maybe
Note: the existing scenario with braces is array instantiation. We also don't know how to format those on multiple lines (I guess it's very uncommon as well). |
Good news, its been assigned to me. Bad news, I've literally never touched or seen the C# formatter code 😛 |
Thanks @davidwengier |
Thanks @davidwengier for fixing this! |
This issue is referenced in tests from PR #53850
Relates to test plan #51289
The text was updated successfully, but these errors were encountered: