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, the formatter is intended to be idempotent. But, unfortunately, I've never been able to figure out a way to systematically ensure that it is in all cases. We do at least test now that all of the test cases are idempotent.
Most of the places where it fails to be have to do with comments in uncommon locations like here.
Running
dart format
on the following code...... produces this output:
Running
dort format
over that output again reformats it to the following (notice the added space before the//
):Expectation:
dart format
produces the final output after one run. Subsequent runs do not change the output further.The text was updated successfully, but these errors were encountered: