Interface TextDocumentChangeEvent

An event describing a transactional document change.

interface TextDocumentChangeEvent {
    contentChanges: readonly TextDocumentContentChangeEvent[];
    document: TextDocument;
    reason: undefined | TextDocumentChangeReason;
}

Properties

contentChanges: readonly TextDocumentContentChangeEvent[]

An array of content changes.

document: TextDocument

The affected document.

reason: undefined | TextDocumentChangeReason

The reason why the document was changed. Is undefined if the reason is not known.