aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-25 08:42:50 +0000
committerBlaž Hrastnik2020-12-25 08:42:50 +0000
commit3cbab2090839ef0d0ca7d7d6ef01404e48ddc8fa (patch)
tree137dabf6c4a65bc5ac869f9b70c5bc720598d496 /helix-view
parent2ab069bb3fc815394cccca50378b62932f3146f5 (diff)
lsp: Fix pos_to_lsp_pos calculation.
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 785b0ca8..f32cca76 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -193,8 +193,11 @@ impl Document {
// emit lsp notification
if let Some(language_server) = &self.language_server {
- let notify = language_server
- .text_document_did_change(self.versioned_identifier(), transaction.changes());
+ let notify = language_server.text_document_did_change(
+ self.versioned_identifier(),
+ &old_doc,
+ transaction.changes(),
+ );
smol::block_on(notify).expect("failed to emit textDocument/didChange");
}