Interface TextDocumentSyncOptions

interface TextDocumentSyncOptions {
    change?: TextDocumentSyncKind;
    openClose?: boolean;
    save?: boolean | SaveOptions;
    willSave?: boolean;
    willSaveWaitUntil?: boolean;
}

Properties

Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.

openClose?: boolean

Open and close notifications are sent to the server. If omitted open close notification should not be sent.

save?: boolean | SaveOptions

If present save notifications are sent to the server. If omitted the notification should not be sent.

willSave?: boolean

If present will save notifications are sent to the server. If omitted the notification should not be sent.

willSaveWaitUntil?: boolean

If present will save wait until requests are sent to the server. If omitted the request should not be sent.