Keep the memory/file editor stable while controlled content updates flow through CodeMirror. - stop recreating the editor view when content and editor options change - reconfigure line numbers, word wrap, read-only state, and language in place via compartments - add regression tests for editor instance preservation and caret stability during controlled edits Files changed: packages/dashboard/app/components/FileEditor.tsx | 34 +++++++++++++++- packages/dashboard/app/components/__tests__/FileEditor.test.tsx | 47 +++++++++++++++++++++- 2 files changed, 79 insertions(+), 2 deletions(-) Fusion-Task-Id: FN-5861 Fusion-Task-Lineage: a8c5c4b0-ff5f-4f25-9e65-ed3f31c2b893
9.2 KiB
9.2 KiB