@@ -958,7 +958,7 @@ mod cmd {
958 if autofmt {
958 if autofmt {
959 doc.format(view.id); // TODO: merge into save
959 doc.format(view.id); // TODO: merge into save
961− tokio::spawn(doc.save());
961+ helix_lsp::block_on(doc.save());
@@ -1051,7 +1051,7 @@ mod cmd {
1051 errors.push_str("cannot write a buffer without a filename\n");
1051 errors.push_str("cannot write a buffer without a filename\n");
1052 continue;
1052 continue;
1054− tokio::spawn(doc.save());
1054+ helix_lsp::block_on(doc.save());
1056 editor.set_error(errors);
1056 editor.set_error(errors);