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
if target buffer is the same as source and the formatter throws an error, then the target and the source are empty and the original source will be lost.
to mitigate this problem there are a --force argument but this is by default false.
it is counter intuitive that per default the files are erased.
could --force be set to true per default?
why an extra argument at all? i don't see any user case that should allows formatter to destroy source files.
could --force argument be removed and the original source be kept in the exception case?
P.S: i will make PR for case 1. but honestly i would prefer 2.
The text was updated successfully, but these errors were encountered:
if target buffer is the same as source and the formatter throws an error, then the target and the source are empty and the original source will be lost.
to mitigate this problem there are a
--force
argument but this is by defaultfalse
.could
--force
be set totrue
per default?could
--force
argument be removed and the original source be kept in the exception case?P.S: i will make PR for case 1. but honestly i would prefer 2.
The text was updated successfully, but these errors were encountered: