From 3cbab2090839ef0d0ca7d7d6ef01404e48ddc8fa Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 25 Dec 2020 17:42:50 +0900 Subject: lsp: Fix pos_to_lsp_pos calculation. --- helix-view/src/document.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'helix-view/src') 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"); } -- cgit v1.2.3-70-g09d2