Package-level declarations
Types
A chunk describes a range of lines which have changed content in them. Either side (a/b) may either be empty (when its to is equal to its from), or points at a range starting at the start of the first changed line, to 1 past the end of the last changed line.
Result of getChunks.
Configuration for collapsing unchanged text.
Color definitions for merge view decorations.
Internal merge configuration.
A merge view manages two editors side-by-side, highlighting the difference between them.
Configuration for a side-by-side merge view.
Orientation of the two editors.
Data class for original doc update effects.
Direction for revert controls.
Configuration for a unified merge view.
Properties
Move the selection to the next changed chunk.
Move the selection to the previous changed chunk.
A state effect that expands the section of collapsed unchanged code starting at the given position.
The state effect used to signal changes in the original doc in a unified merge view.
Functions
In a unified merge view, accept the chunk under the given position or the cursor. This chunk will no longer be highlighted unless it is edited again.
Collapse unchanged sections in a merge view.
Get the changed chunks for the merge view that this editor is part of, plus the side it is on if it is part of a MergeView.
Get the original document from a unified merge editor's state.
Create an effect that updates the original document being compared against.
Compute the difference between the given strings, and clean up the resulting diff for presentation to users by dropping short unchanged ranges, and aligning changes to word boundaries when appropriate.
In a unified merge view, reject the chunk under the given position or the cursor. Reverts that range to the content it has in the original document.
Create an extension that causes the editor to display changes between its content and the given original document. Changed chunks will be highlighted, with uneditable widgets displaying the original text displayed above the new text.