• Create and mount a CodeMirror editor for a SafeExpression, with grammar-aware syntax highlighting and helper/identifier autocomplete.

    We construct the CodeMirror EditorView ourselves (rather than reusing Foundry's <code-mirror> element, which paints blank inside a DialogV2 popup) so we can force a re-measure via focus() once the dialog is visible.

    Parameters

    Returns MountedExpressionEditor

    A handle to read the value, focus/measure, and destroy the editor.