Don't generate code if editor is dirty