From 4c2e19e1a9ad2eb330673af0577a2643a1beff4e Mon Sep 17 00:00:00 2001 From: Michael Suo Date: Thu, 16 May 2019 22:42:16 -0700 Subject: [PATCH] Make the write command non-blocking on remote files As title. Saving a remote file can be slow, and we don't want to block the vim state it. We're not doing anything with the result anyway, so it should(?) be okay to remove this await. --- src/cmd_line/commands/write.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd_line/commands/write.ts b/src/cmd_line/commands/write.ts index 5360daca318..a8be2241654 100644 --- a/src/cmd_line/commands/write.ts +++ b/src/cmd_line/commands/write.ts @@ -52,7 +52,7 @@ export class WriteCommand extends node.CommandBase { // defer saving the file to vscode if file is new (to present file explorer) or if file is a remote file if (vimState.editor.document.isUntitled || vimState.editor.document.uri.scheme !== 'file') { - await vscode.commands.executeCommand('workbench.action.files.save'); + vscode.commands.executeCommand('workbench.action.files.save'); return; }