Skip to content

refactor: source mode to use CodeMirror without Lexical#235

Merged
code-alexander merged 5 commits into
mainfrom
dev
Apr 11, 2026
Merged

refactor: source mode to use CodeMirror without Lexical#235
code-alexander merged 5 commits into
mainfrom
dev

Conversation

@code-alexander

Copy link
Copy Markdown
Collaborator

No description provided.

code-alexander and others added 5 commits April 11, 2026 08:45
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- read fileState from jotai store inside CM updateListener to avoid stale closure
- move source mode early return below all hooks in Editor to prevent hooks ordering violation
- pass workspacePath as prop instead of deriving from filePath string slicing
- cancel (not flush) debouncedSelection on unmount to skip unnecessary IPC

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
make the search machine's editor input nullable so source mode can pass
null instead of creating a headless lexical editor just to satisfy the
type constraint.

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

vercel Bot commented Apr 11, 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 11, 2026 6:09am

@code-alexander
code-alexander merged commit 627704b into main Apr 11, 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