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.
Create and mount a CodeMirror editor for a SafeExpression, with grammar-aware syntax highlighting and helper/identifier autocomplete.
We construct the CodeMirror
EditorViewourselves (rather than reusing Foundry's<code-mirror>element, which paints blank inside a DialogV2 popup) so we can force a re-measure viafocus()once the dialog is visible.