2.0 KiB
Monaco accessible-name API
Accepted bounded common change: additive AriaLabel with fallback Code editor, passed to actual editor creation and existing setEditorOption→editor.updateOptions. Creation captures its label so a parameter changed while initialization waits is applied afterward; added label synchronization does not run after disposal. Existing language, value, equipment/intellisense context, sync budgets, diagnostics, model operations, theme controls and disposal/error handling remain unchanged otherwise. This does not certify or refactor preexisting late-create/disposal behavior beyond the recorded tests.
Scope: shared MonacoEditor.razor, monaco-init.js and new MonacoAccessibilityTests.cs. Default-option regression red1, then19 targeted new+existing accessibility/disposal/sync/source tests pass (monaco-label-green.log). Tests verify creation/default, updated caller name with no setValue and preserved code/language/equipment options, and a name changed during delayed creation.
Actual component/real vendored Monaco at1440/390 passes2/2 in monaco-native-name.json. Native Chrome EditContext uses a zero-box internal DIV textbox; the first visible-box wait was inappropriate. Corrected proof checks the focused/editable, non-ignored native accessibility textbox inside the actual Monaco editor, then its updated accessible name. The first broad .monaco-editor click also matched the separate overflow helper; scoped data-uri targeting corrected the harness. Failed logs remain. Actual model text return 1;, language csharp and equipment-local context remain identical after rename and live GetValueAsync returns the same text. No outer-wrapper-only naming claim is used.
The disposable fixture returns an explicitly synthetic empty diagnostic projection and never executes a script or contacts a fleet/analysis service. Screenshots and raw AX properties are retained; no deployed-host or all-screen keyboard-editor claim is made. Context-specific production caller names roll out separately through OT13/common callsites.