Skip to content

Try-catch onEditorReady - #1679

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Aug 11, 2026
Merged

Try-catch onEditorReady#1679
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

As inspired by #1676.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves editor-ready listener resilience so one failing callback does not block subsequent listeners.

Changes:

  • Adds guarded editor-ready notification.
  • Updates editor reset to use the notifier.
  • Adds regression coverage for queued listeners.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
CoreEditor/src/api/methods.ts Adds isolated listener notification.
CoreEditor/src/core.ts Uses the new notifier during reset.
CoreEditor/test/api.test.ts Tests continuation after listener failure.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CoreEditor/src/api/methods.ts Outdated
@archifont

Copy link
Copy Markdown

Glad this led somewhere useful. Thanks for tracking it down, this looks like a much more solid fix than anything I could have worked around on my end!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@cyanzhong
cyanzhong merged commit 62c0114 into main Aug 11, 2026
2 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.

3 participants