Skip to content

Refactor updateContent - #1875

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Nov 12, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

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.

🟢 Approval recommended

No active review issues were identified in the helper-extraction refactor of EditorDocument.updateContent.

No open issues 🎉

What changed in this PR

Refactors EditorDocument.updateContent into smaller helpers while preserving the existing document-update sequence.

Changes:

  • Extracts save-time formatting into formatContent.
  • Moves editor-text synchronization and background debug-file writing into separate helpers.
  • Keeps filename suggestions, interaction unblocking, and clean-state handling in updateContent.
File Description
MarkEditMac/​Sources/​Editor/​Models/​EditorDocument.swift Extracts focused helpers to simplify updateContent without changing its intended behavior.

Review effort: Balanced

@cyanzhong
cyanzhong merged commit 5544ec2 into main Nov 12, 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.

2 participants