Function onEditorContextChange

Subscribe to editor-context changes. The listener is invoked immediately with the current context, then again on every change. Returns an unsubscribe fn.