aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-02 04:52:12 +0000
committerBlaž Hrastnik2021-09-06 06:25:46 +0000
commit2793ff383228403b1ebaf2a29c870a13ee76075a (patch)
tree30dee962dd4326691f2b15024063698202f6e905
parent59ed1c8c78ab996273bcc910c11724bc8402f711 (diff)
lsp: SyncKind::Full: we need to send the whole document on each change
-rw-r--r--helix-lsp/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index b8fbfddb..27e4697c 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -462,7 +462,7 @@ impl Client {
// 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 => {