Closed varosi closed 7 years ago
I use HIndent and experience the same behavior, but I don't think this is an issue. Sometimes prettifyer does some unexpected things :) So I'm pleased to be able to undo the changes that it made.
Windows 7 x64, ide-haskell 1.9.6, Atom 1.17.2
It's good to be a undoable, but this should be ortogonal to saving.
Since v2.0.3, ide-haskell should automatically re-save file after prettifying. It's not an ideal solution, but Atom doesn't allow to defer saving until some async action finishes, and running external program in sync doesn't sound like a particularly good idea, even were it not a challenge (and it is)
Steps to reproduce
It'll be good on Ctrl + S (Save) to save the restyled version and don't ask for second save. And the build/ghc-mod/HLint processes to start over restyled version and not the intermediate.
Windows 10 x64 and ide-haskell 1.9.6 plug-in and Atom 1.16.0