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 struct literal formatting you're highlighting above is consistent with what happens if a chain contains multi-line elements. For example take the following function call:
I'd say that is inconsistent with when it follows a single line as well. Why would the chain get indented when it starts with a single line, but not when it starts with a multi-line block?
Currently code like
gets formatted as
However, something like
gets formatted as
Noting that the chained call is at the same depth as the block above.
This feels inconsistent, and I think it would be good if it can be formatted as
instead, or at least make it configurable.
On a separate note, if this whole thing is wrapped with another block, the formatting is even more weird, for example:
which I would expect to become something like
The text was updated successfully, but these errors were encountered: