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
Thanks for the report!
This is intended behavior. :: is intended to sometimes break to improve readability, this is based on conditions similar to breaking chain calls.
All styling decisions in this formatter are acquired from prettier core, and I'm reluctant to make changes to it
With that said, there are exceptions in core to never break on a few widely used javascript-specific names such as it.<method> from testing libraries. Maybe fs should get that treatment, I'm not sure.
Input code
Output code
Additional context
fs::read_to_string
shouldn't be broken across lines, it's a single qualified value.It only does this sometimes, not in a way that I can reproduce. There's many other cases in my code where it didn't do this, for example:
The text was updated successfully, but these errors were encountered: