Open nulian opened 2 years ago
I'm not sure how to detect that the save is happening due to a rollback from the arguments that are passed
I'll ask JetBrains Slack to see if they have a solution.
@nulian to confirm, the file is ONLY reformatted, or other changes in the file are also restored?
If you rollback you will see the rollbacked version for a second and then it puts back like the previous data in the file I guess formatted from before the rollback.
Thanks @nulian! That makes it easier: I just need to figure out how to detect that the file changed due to a rollback.
I have enabled formatting on save normally the formatting works fine.
But if I use rollback from the local changes git tab it resets to before you do rollback. If I disable the formatter I can rollback without any problems.