If we are going to insert any snippets to editor, or switch to another database, or anything else what will reset unsaved text in query editor (query wasn't saved directly by user and wasn't saved to history), we should show warning that unsaved changes will be lost.