Skip to content

Merge in COSMOS enhancements to ace-diff#119

Merged
ryan-pratt merged 15 commits intomasterfrom
cosmos_fixes
May 30, 2025
Merged

Merge in COSMOS enhancements to ace-diff#119
ryan-pratt merged 15 commits intomasterfrom
cosmos_fixes

Conversation

@jmthomas
Copy link
Collaborator

No description provided.

Copy link
Collaborator Author

@jmthomas jmthomas left a comment

Choose a reason for hiding this comment

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

The majority of this was cleanup including var -> let and removing semicolons

// [new diff_match_patch.Diff(DIFF_EQUAL, mid_common)],
// diffs_b,
// )
// }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't get good results with this part of the algorithm so commented it out

let commonString = edit.substring(edit.length - commonOffset)
equality1 = equality1.substring(0, equality1.length - commonOffset)
edit = commonString + edit.substring(0, edit.length - commonOffset)
equality2 = commonString + equality2
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fix to prefer training newlines in the diff

package.json Outdated
Comment on lines 8 to 11
"serve": "vite build --watch --mode dev-server",
"dev": "vite server test --port 8081",
"build": "vite build",
"lint": "eslint src",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we should bring in the vite stuff since that was just to get it working in COSMOS 6. Bringing these changes to this repo will require extra work, and that's why the test workflow is failing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could keep the existing parcel build but that went through a major release revision so it's still work.

@ryan-pratt ryan-pratt merged commit ef637cc into master May 30, 2025
2 checks passed
@jmthomas jmthomas deleted the cosmos_fixes branch January 8, 2026 23:57
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