Re:Developer accidentally deletes 3 months of work with Visu...
by devrandomguy on Friday August 18, 2017 @03:16PM
(#15048967)
Excessive automation considered harmful: even if you want something to happen 99% of the time, it should still be a manual operation. Otherwise, it will bite 100 of your 10,000 users at least once.
Re:Developer accidentally deletes 3 months of work with Visu...
by whipoodle on Friday August 18, 2017 @04:12PM
(#15049358)
If it's a destructive operation, yeah. I was really, genuinely surprised that their editor works like that. As you say, it's not something that will bite you often, but when it bites, it could be pretty painful.
Re:Developer accidentally deletes 3 months of work with Visu...
by joaomoreno on Monday August 21, 2017 @02:48AM
(#15062442)
Actually you can control this behaviour with "workbench.editor.closeOnFileDelete": false
You could argue it was my fault because I didn't stage and commit the new file, but there's no reason to close a buffer just because the backing file is gone. Close it if I say so, otherwise keep it open with the last-seen contents of the file. This has always worked fine in Sublime.
Please always err on the side of not losing data, even if it means keeping around "annoying" extra tabs.