[editor] fixed editor bug occurring when switching between editor/tests tabs