Skip to content

Commit

Permalink
Make the write command non-blocking on remote files (VSCodeVim#3778)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
suo authored and jpoon committed May 19, 2019
1 parent 59261b7 commit 7857681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd_line/commands/write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7857681

Please sign in to comment.