Auto-save
I had a discussion on twitter (@kuvos) a few weeks ago with somebody from Jetbrains, I'm sorry I forgot his name. The discussion spurred from my disappointment in the stance on preventing auto-save on-close/on-exit.
The discussion basically ended with an alternative that seemed to be acceptable at least by that dev and seemed workable within the Webstorm architecture. It involved reverting the last commit on-close if the editor still had unsaved changes (or maybe it was preventing the commit on-close) and the user did not want to save the changes (popup).
I was curious whether this issue had been discussed internally and whether it was accepted/rejected.
Please sign in to leave a comment.
I'll that as a "no", then. How unfortunate :(
Hello qFox,
I have tried to find your discussion and the only tweet which I found was https://twitter.com/#!/kuvos/status/124414616779493376.
You can find some arguments here - http://devnet.jetbrains.net/docs/DOC-191
Thank you for feedback!
Thank you for feedback!
Hi,
That's the comment that started the discussion. It seems I either followed that tweet up with another one, to which was replied. Or whomever I was discussing that with never used the reply functionality. Whatever the case, it doesn't change anything. Those tweets are black holed in the Twitter database.
I'm not going to put down the arguments against auto-save again. You won't care and I won't introduce anything that hasn't already been said before.
The dev I spoke with, at least I was under the impression this was one of the devs on the project, eventually said he'd discuss the "ask to rollback the last commit on-close with unsaved changes" feature with the rest of the team. At the time I think he found it a workable solution with the existing code base. It seems that internal discussion either did not happen or was ignored. How unfortunate.
It is possible to write a plugin which will revert all the changes upon exit up to last saved position. Is it ok for you?
Not sure but it sounds good :)