Interface ISingleEditOperation

A single edit operation, that acts as a simple replace. i.e. Replace text at range with text in model.

interface ISingleEditOperation {
    forceMoveMarkers?: boolean;
    range: IRange;
    text: string;
}

Hierarchy (view full)

Properties

forceMoveMarkers?: boolean

This indicates that this operation has "insert" semantics. i.e. forceMoveMarkers = true => if range is collapsed, all markers at the position will be moved.

range: IRange

The range to replace. This can be empty to emulate a simple insert.

text: string

The text to replace with. This can be null to emulate a simple delete.