Open Anabra opened 6 years ago
Okay, now there is an error message warning the user to save the file before UndoRefactor, but after saving it, the original error message still pops-up. This is a consequence of #36, which is logical from a developer's point of view, but might be confusing for new users.
My recommendation: I would emphasize the fact that UndoRefactor is only usable right after performing a refactoring. This could be in form of an updated error message, or in the user documentation.
Updated the error message: https://github.com/haskell-tools/haskell-tools/commit/acac780e123c49e2d619efc9d26db18f9a25a81f
Write some code, refactor, modify the file (without saving it). Now "Undo Refactor" will say "Nothing to undo".