From ce643c73e868e3c39df00a4bb2f78d5b3fb0ea43 Mon Sep 17 00:00:00 2001 From: Viet Dinh <54ckb0y789@gmail.com> Date: Wed, 30 Oct 2024 17:07:51 -0400 Subject: [PATCH] fix: on change handler should block again --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e719c0e..dfd006f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -399,8 +399,7 @@ impl LanguageServer for Backend { { let mut document = self .document_map - .try_get_mut(params.text_document.uri.path()) - .expect(format_loc!("deadlock")) + .get_mut(params.text_document.uri.path()) .expect("Did not build a document"); old_rope = document.rope.clone(); // Update the rope