• Updates a TextDocument by modifying its content.

    Parameters

    • document: TextDocument

      the document to update. Only documents created by TextDocument.create are valid inputs.

    • changes: TextDocumentContentChangeEvent[]

      the changes to apply to the document.

    • version: number

      the changes version for the document.

    Returns TextDocument

    The updated TextDocument. Note: That's the same document instance passed in as first parameter.