DocumentSyncMode

data class DocumentSyncMode(val openClose: Boolean, val change: TextDocumentSyncKind)

How a document's changes should be synchronized to the server, as negotiated through the server's textDocumentSync capability.

Mirrors the semantics upstream @codemirror/lsp-client derives from the same capability: whether open/close notifications are sent, and whether content is synced incrementally, in full, or not at all.

Parameters

openClose

Whether textDocument/didOpen and textDocument/didClose notifications should be sent.

change

How content changes are synced (TextDocumentSyncKind.NONE, TextDocumentSyncKind.FULL, or TextDocumentSyncKind.INCREMENTAL).

Constructors

Link copied to clipboard
constructor(openClose: Boolean, change: TextDocumentSyncKind)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val change: TextDocumentSyncKind
Link copied to clipboard
Link copied to clipboard

True when content changes should be synchronized at all.