Skip to content

Commit

Permalink
fix: on change handler should block again
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Oct 30, 2024
1 parent 0b206ab commit ce643c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce643c7

Please sign in to comment.