Is your feature request related to a problem? Please describe.
spent 20 minutes re-writing a snippet in editor and lost all changes because i closed the windows
Describe the solution you'd like
same as script when edited
to ask for a confirmation to close the editor
Additional context