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
Yeah, I think this is likely a different bug. I suspect that this has to do with a very obscure corner of the formatter that would be hard to describe. Thanks for reporting it. :)
I honestly don't know what the old formatter was doing, but the simpler argument list splitting style in the forthcomingtall style yields:
@Deprecated(
'loooooooooooooooooooooooong text string''loooooooooooooooooooooooong text string',
)
voidf(
@Deprecated(
'loooooooooooooooooooooooong text string''loooooooooooooooooooooooong text string',
)
x,
) {
'loooooooooooooooooooooooong text string''loooooooooooooooooooooooong text string';
}
I'm not sure where the bug is so I'm not sure how to title this issue. Take this input:
The formatter rewrites this as:
The 1st and 3rd pairs of adjacent strings are wrapped. But the middle one, a string in an annotation on a funtion parameter, is not wrapped. 🤔
The only open bug I could find which looks similar is #987
The text was updated successfully, but these errors were encountered: