Interface DocumentUpdateHandler

Shared service for handling text document changes and watching relevant files.

interface DocumentUpdateHandler {
    didChangeContent?(event: TextDocumentChangeEvent<TextDocument>): void;
    didChangeWatchedFiles?(params: DidChangeWatchedFilesParams): void;
    didCloseDocument?(event: TextDocumentChangeEvent<TextDocument>): void;
    didOpenDocument?(event: TextDocumentChangeEvent<TextDocument>): void;
    didSaveDocument?(event: TextDocumentChangeEvent<TextDocument>): void;
    willSaveDocument?(event: TextDocumentWillSaveEvent<TextDocument>): void;
    willSaveDocumentWaitUntil?(event: TextDocumentWillSaveEvent<TextDocument>): MaybePromise<TextEdit[]>;
}

Implemented by

Methods

  • The client detected changes to files and folders watched by the language client.

    Parameters

    • params: DidChangeWatchedFilesParams

      The files/folders change event.

    Returns void