Add blocking on file deletion

Signed-off-by: trivernis <trivernis@protonmail.com>
change-detection
trivernis 2 years ago
parent 092163bd8f
commit 817c2a7e6d
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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)?;

Loading…
Cancel
Save