ScriptEditor is CloseConfirmable so it should present the save dialog for its scripts before being hidden. The fact that it isn't suggests it may be getting picked up by the IJ1 close mechanism first.
My first guess is that there could be a parent/child problem where the editor window is being hidden even though child windows aren't ready yet.. so it could just be a traversal order problem
ScriptEditorisCloseConfirmableso it should present the save dialog for its scripts before being hidden. The fact that it isn't suggests it may be getting picked up by the IJ1 close mechanism first.My first guess is that there could be a parent/child problem where the editor window is being hidden even though child windows aren't ready yet.. so it could just be a traversal order problem