You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The breaking of long chains uses the same logic as prettier, although it looks like there is a bug with the 1st case. Prettier does this with it. There is definitely a bug with the current way csharpier breaks it.
If I remember correctly, the logic tries to group property accessors onto a single line if they fit. It seems worth exploring breaking them instead. At the very least fixing the first case, which seems to be a bug.
…ains. (#967)
* notes
* Getting element access to break more consistently with invocations.
closes#956
* Getting properties breaking consistent with invocations
* Fixing more edge cases
* some self review
---------
Co-authored-by: Lasath Fernando <[email protected]>
In https://playground.csharpier.com/ I have played around with chains and following does not seem right:
Input:
output:
property and method chains are broken differently.
Other example:
input
output:
The text was updated successfully, but these errors were encountered: