View Source GenLSP.Enumerations.TextDocumentSyncKind (gen_lsp v0.10.0)

Defines how the host (editor) should sync document changes to the language server.

Link to this section Summary

Functions

Documents are synced by always sending the full content of the document.

Documents are synced by sending the full content on open. After that only incremental updates to the document are send.

Documents should not be synced at all.

Link to this section Types

@type t() :: 0 | 1 | 2

Link to this section Functions

@spec full() :: 1

Documents are synced by always sending the full content of the document.

@spec incremental() :: 2

Documents are synced by sending the full content on open. After that only incremental updates to the document are send.

@spec none() :: 0

Documents should not be synced at all.