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 @@ pub fn text_document_did_change(
// range = None -> whole document
range: None, //Some(Range)
range_length: None, // u64 apparently deprecated
text: "".to_string(),
text: new_text.to_string(),
}]
}
lsp::TextDocumentSyncKind::Incremental => {