I came to the forums today to post exactly what Laurent posted (post #52967). I very much want the ability to "recover" a clean exit just as much as an unexpected one. Much like the "restore previous session" ability found in many modern web browsers.
My entire team has been using this software for many many years, and I know I always have at least two instances running on my machine at any given moment. While some of my sql/command/etc. windows are saved to files & will be re-opened automatically, the majority of them are just for ad hoc queries. When it comes time to reboot (which is at least once every week or two...thanks Microsoft
) I have to remember to first kill each of my instances via task manager beforehand so that I can "recover" the state later. It's quite annoying to have to "work around" this issue
before it happens.
I would expect that the "Autosave desktop" preference would handle this exact scenario, but it seems to only deal with a very limited set of conditions. Combined with the fact that closing the application implicitly calls close on every child window first, even giving leaves no way to restore them without giving each and every one a unique filename. This is a nuisance and creates clutter (esp. for short term / ad hoc queries), so it's easier to just kill the process. It works, but something about it just doesn't seem
right.