Function getEditorContext

Returns the current editor context (dirty set). Poll this for a one-off read; use onEditorContextChange or useEditorContext to react.