document

abstract val document: TextDocument?(source)

The document of the cell or undefined when it did not change.

Note that you should use the onDidChangeTextDocument-event for detailed change information, like what edits have been performed.

Online Documentation