The "SQL CE editor" do not ask to save when closing the window, nor it has a "Save" button (only a "save as")
v4.0.0.1
http://social.msdn.microsoft.com/Forums/vstudio/en-US/66e6d99e-dc39-4984-b8af-9f528f9f9042/how-do-you-cancel-a-toolwindowpane-or-visual-studio-ide-close-operation-via-a-vspackage?forum=vsx
http://geekswithblogs.net/onlyutkarsh/archive/2013/08/03/listening-to-tool-window-events-in-visual-studio.aspx
http://stackoverflow.com/questions/2385146/how-do-you-cancel-a-toolwindowpane-or-visual-studio-ide-close-operation-via-a-vs
Comments: ** Comment from web user: Brisa **
v4.0.0.1
http://social.msdn.microsoft.com/Forums/vstudio/en-US/66e6d99e-dc39-4984-b8af-9f528f9f9042/how-do-you-cancel-a-toolwindowpane-or-visual-studio-ide-close-operation-via-a-vspackage?forum=vsx
http://geekswithblogs.net/onlyutkarsh/archive/2013/08/03/listening-to-tool-window-events-in-visual-studio.aspx
http://stackoverflow.com/questions/2385146/how-do-you-cancel-a-toolwindowpane-or-visual-studio-ide-close-operation-via-a-vs
Comments: ** Comment from web user: Brisa **
Thanks ErickEJ
AFAIK, VS always asks to save modified documents, and AFAIK, all the other editors do the same
And I will be fairly thankful if the program ask me to save something important I forgot to save, rather than
losing it for avoid saying "no" when I did some trivial script
But, if it annoys your users too much, you could honor the option in the configuration to ask whether to save always, not only when the user is closing the window
Brisa