code-editor observe mode  change