mirror of
https://github.com/stablyai/orca
synced 2026-04-21 14:17:16 +00:00
Two split panes viewing the same file are distinct <MonacoEditor> React instances with distinct viewStateKey values. Keying the dev/E2E registry by filePath made the second mount overwrite the first; because cleanup is guarded by editorRef identity, the first pane's later unmount couldn't find a matching entry and left the registry empty while a live pane still existed. Keying by viewStateKey gives each pane its own slot so set and delete share the same unique key. Also: - Declare window.__monacoEditors on Window in env.d.ts and helpers/runtime-types.ts so reads/writes are fully typed in both renderer and test harness. - getMonacoContent now scans the registry by model URI fsPath so specs that don't care about split panes can look up "the editor showing this file" without knowing its viewStateKey. - Restore markdownViewMode's `?? 'rich'` default at the test read site to match EditorPanel.tsx's effective mode — the store map is undefined for files the user never explicitly toggled. |
||
|---|---|---|
| .. | ||
| external-file-change.ts | ||
| file-explorer.ts | ||
| orca-app.ts | ||
| runtime-types.ts | ||
| shortcuts.ts | ||
| store.ts | ||
| terminal.ts | ||