lsp: SyncKind::Full: we need to send the whole document on each change

This commit is contained in:
Blaž Hrastnik 2021-09-02 13:52:12 +09:00
parent 59ed1c8c78
commit 2793ff3832

View file

@ -462,7 +462,7 @@ impl Client {
// range = None -> whole document // range = None -> whole document
range: None, //Some(Range) range: None, //Some(Range)
range_length: None, // u64 apparently deprecated range_length: None, // u64 apparently deprecated
text: "".to_string(), text: new_text.to_string(),
}] }]
} }
lsp::TextDocumentSyncKind::Incremental => { lsp::TextDocumentSyncKind::Incremental => {