Skip to content

Clear editor highlighting on reload#415

Open
yusufm wants to merge 1 commit into
schuyler:mainfrom
yusufm:Codex/clear-highlighting-on-reload-019def52-b3da-7962-96cd-afa05d8d1592
Open

Clear editor highlighting on reload#415
yusufm wants to merge 1 commit into
schuyler:mainfrom
yusufm:Codex/clear-highlighting-on-reload-019def52-b3da-7962-96cd-afa05d8d1592

Conversation

@yusufm
Copy link
Copy Markdown
Contributor

@yusufm yusufm commented May 3, 2026

Summary

  • clear existing editor highlighting after replacing text during reload from disk
  • refresh clear-text attributes before scheduling the new highlight pass
  • add a lifecycle regression for the external reload path

Related to #378.

Validation

  • xcodebuild test -workspace 'MacDown 3000.xcworkspace' -scheme MacDown -destination 'platform=macOS' -only-testing:MacDownTests/MPDocumentLifecycleTests/testExistingDocumentClearsHighlightingBeforeReloadHighlight -only-testing:MacDownTests/MPDocumentLifecycleTests/testExistingDocumentTriggersRenderOnReload -only-testing:MacDownTests/MPDocumentLifecycleTests/testExistingDocumentTriggersHighlightOnReload

Note: the last only-testing selector is not present on main, so Xcode ran the two matching lifecycle tests.

@yusufm yusufm marked this pull request as ready for review May 3, 2026 20:35
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