Skip to content

Conversation

@ajitthakurak
Copy link
Contributor

Fix crash in Open Quickly preview caused by missing UndoManagerRegistration.

Root cause: OpenQuicklyPreviewView renders CodeFileView in a separate view hierarchy without the environment object.
Fix: Provide UndoManagerRegistration for the preview (non-editable) path so CodeFileView resolves it.
Reproduce: Open Quickly (CMD+SHIFT+O) -> select a text file -> previously crashed.
Validation: No crash; normal editing unaffected.

Copy link
Collaborator

@thecoolwinter thecoolwinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good catch. This would have been caught with a simple automation test, I'll add some to the QuickOpen panel later.

@thecoolwinter thecoolwinter merged commit bdf21ac into CodeEditApp:main Sep 3, 2025
2 checks passed
@ajitthakurak ajitthakurak deleted the fix/quickopen-undo-registration branch September 24, 2025 16:17
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.

3 participants