Skip to content

refactor(editor): migrate code editors to CodeMirror 6 - #954

Merged
antonreshetov merged 4 commits into
mainfrom
refactor/codemirror6
Sep 26, 2026
Merged

antonreshetov merged 4 commits into
mainfrom
refactor/codemirror6

Conversation

@antonreshetov

Copy link
Copy Markdown
Member

Summary

Migrate code editors and code-image rendering to CodeMirror 6, removing CodeMirror 5 dependencies. Share highlighting across editor, AI code blocks, diffs and viewers, using native CM6 language support with a TextMate fallback for remaining languages.

Restore missing token categories and embedded-language highlighting identified during comparison of all 165 supported languages. Keep focused regression tests; remove the temporary migration QA corpus.

Validation

  • 140 scoped tests passed across 8 test files (formatting, highlighting, TextMate, embedded languages and grammar regressions).
  • Compared all 165 languages through the app UI against the pre-migration baseline and rechecked the 35 flagged cases.
  • Repeated XQuery selection after search without reproducing persistent highlighting loss.

Known limitation

Subsecond highlighting flicker has not been ruled out by frame-by-frame capture; this check is deferred.

@antonreshetov antonreshetov self-assigned this Sep 26, 2026
@antonreshetov
antonreshetov merged commit b12aac6 into main Sep 26, 2026
@antonreshetov
antonreshetov deleted the refactor/codemirror6 branch September 26, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant