allow a customized userEvent annotation for acceptChunk and rejectChunk in the unified merge view #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "unified-merge-accept-reject-custom-events"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR allows for a custom
userEventto be set foracceptChunkandrejectChunk. This enables handling finer-grained programmatic accepting & rejecting while maintaining the existinguserEventbehavior by default.This seems a use case that's too specific to add functionality for. I recommend copying the code for these commands (using
getChunksinstead of the privateChunkField) if you need to customize them.good idea ~ thanks!
@marijnh to make my own version of these commands, I'd need access to
originalDocandupdateOriginalDoc– is there a way to get these without exposing them directly? I'd be happy to submit a PR that exports these. I assume these are private for a reason.That's a good suggestion. Attached patch adds a
getOriginalDocfunction.Fantastic, thank you! Is there another way to also get
updateOriginalDoc? Believe this will be needed to trigger the effect when accepting.Oh, good point, it also does that. This patch exports a function for that.
Pull request closed