Skip to content

Conversation

@yaoweiprc
Copy link
Contributor

I used the MisMerge library as the merge editor. This library enables our current three-column diff view and highlights each conflicting change. When rendering the relationships between conflicting blocks at a low level, the library uses a canvas to draw graphics. For files with a large number of lines, the canvas area becomes very large, which can cause the rendering process to crash. As a result, the app becomes unresponsive

I changed to go with this new approach. It’s based on CodeMirror 5’s merge addon, with interactions similar to Mismerge, but the performance is significantly better.

@yaoweiprc yaoweiprc marked this pull request as draft October 16, 2025 08:54
@yaoweiprc yaoweiprc marked this pull request as ready for review October 16, 2025 10:27
@jackkav
Copy link
Contributor

jackkav commented Oct 16, 2025

cool

@yaoweiprc yaoweiprc force-pushed the fix/merge-editor branch 2 times, most recently from a5e1c5f to bd7e758 Compare October 22, 2025 05:18
@yaoweiprc yaoweiprc requested a review from a team October 22, 2025 05:33
@CurryYangxx
Copy link
Member

LGTM

@yaoweiprc yaoweiprc enabled auto-merge (squash) October 24, 2025 08:28
@yaoweiprc yaoweiprc merged commit 47daf60 into develop Oct 24, 2025
13 of 14 checks passed
@yaoweiprc yaoweiprc deleted the fix/merge-editor branch October 24, 2025 08:59
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.

4 participants