pub enum TextDocumentSyncKind {
None,
Full,
Incremental,
}
Expand description
Defines how the host (editor) should sync document changes to the language server.
Variants§
None
Documents should not be synced at all.
Full
Documents are synced by always sending the full content of the document.
Incremental
Documents are synced by sending the full content on open. After that only incremental updates to the document are sent.
Trait Implementations§
source§impl Clone for TextDocumentSyncKind
impl Clone for TextDocumentSyncKind
source§fn clone(&self) -> TextDocumentSyncKind
fn clone(&self) -> TextDocumentSyncKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextDocumentSyncKind
impl Debug for TextDocumentSyncKind
source§impl<'de> Deserialize<'de> for TextDocumentSyncKind
impl<'de> Deserialize<'de> for TextDocumentSyncKind
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more