MergeView

class MergeView(config: MergeViewConfig)

A merge view manages two editors side-by-side, highlighting the difference between them.

Constructors

Link copied to clipboard
constructor(config: MergeViewConfig)

Properties

Link copied to clipboard

The first editor view.

Link copied to clipboard

The second editor view.

Link copied to clipboard

The current set of changed chunks.

Functions

Link copied to clipboard

Dispatch a transaction to one of the editors, updating chunks if the document changed.

Link copied to clipboard
fun dispose()

Clean up both editor views.

Link copied to clipboard
fun revertChunk(chunk: Chunk)

Revert a specific chunk, copying content from source to destination.