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

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.