Interface IModelContentChangedEvent

An event describing a change in the text of a model.

interface IModelContentChangedEvent {
    changes: IModelContentChange[];
    eol: string;
    isEolChange: boolean;
    isFlush: boolean;
    isRedoing: boolean;
    isUndoing: boolean;
    versionId: number;
}

Properties

The changes are ordered from the end of the document to the beginning, so they should be safe to apply in sequence.

eol: string

The (new) end-of-line character.

isEolChange: boolean

Flag that indicates that this event describes an eol change.

isFlush: boolean

Flag that indicates that all decorations were lost with this edit. The model has been reset to a new value.

isRedoing: boolean

Flag that indicates that this event was generated while redoing.

isUndoing: boolean

Flag that indicates that this event was generated while undoing.

versionId: number

The new version id the model has transitioned to.