This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
formatOnSave requires extra save #56
Labels
Comments
I am not sure how to solve this, as the onWillSave callback is called synchronously - there's no way to interrupt the save operation (which is probably a good thing). |
The |
how about just run standard --fix on this file and let the command update file directly? can atom pick up the change from file automatically? |
👍 |
+1 Would be great to see this fixed. |
+1! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
#55 fixed the package crash on Atom 1.12.x, but it also introduced a bug with the
formatOnSave
option. Since the transform operation is now async, the save operation saves the untransformed text, and then the text is replaced with the transformed text, resulting in you needing to save a second time.The text was updated successfully, but these errors were encountered: