Skip to content

perf: persistent CM editor#239

Merged
code-alexander merged 4 commits into
mainfrom
dev
Apr 13, 2026
Merged

perf: persistent CM editor#239
code-alexander merged 4 commits into
mainfrom
dev

Conversation

@code-alexander

Copy link
Copy Markdown
Collaborator

No description provided.

code-alexander and others added 4 commits April 12, 2026 16:27
programmatic content swaps via recycleSourceView() fire docChanged but
should not mark the file dirty or schedule persistence. add a
isSwappingContentRef flag around setState() calls and check it in the
update listener. also fix flushPendingWork() to only flush when work
is actually scheduled, preventing stale state persistence during
effect cleanup.

other changes:
- add theme-matched background color to source mode editor container
- exclude all benchmark tests from e2e suite (not just memory)
- flatten loader match() nesting with early isLeft returns
- guard callbacks on editorId/fileId availability

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
search, external search highlighting, and diff gutter visuals are loaded
via requestIdleCallback instead of blocking the initial EditorState build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
replace key-based remounting with imperative content swap in Editor,
fixing cleanup ordering so pending state flushes to the OLD file.
source editor cleanup now uses closure-captured filePath/editorId
instead of refs that already point to the NEW file during cleanup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spacecake Ready Ready Preview, Comment Apr 13, 2026 4:07am

@code-alexander
code-alexander merged commit 514a398 into main Apr 13, 2026
6 checks passed
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