From 817c2a7e6d36af6fd03b10810eb601cc12acf7a0 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 1 Oct 2022 19:56:30 +0200 Subject: [PATCH] Add blocking on file deletion Signed-off-by: trivernis --- helix-term/src/commands/typed.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index f2063b0f..91fa3cfc 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -250,6 +250,7 @@ fn delete( let future = doc.delete(); cx.jobs.add(Job::new(future)); + helix_lsp::block_on(cx.jobs.finish())?; let doc_id = view!(cx.editor).doc; cx.editor.close_document(doc_id, true)?;