From 4da705b29bd0f35bd28cc121735af2bb93a85ed2 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 8 Jun 2018 01:28:23 -0400 Subject: [PATCH] Fixes missing awaits for proper error handling --- src/commands/openInRemote.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/openInRemote.ts b/src/commands/openInRemote.ts index 604071a..71b935c 100644 --- a/src/commands/openInRemote.ts +++ b/src/commands/openInRemote.ts @@ -37,7 +37,7 @@ export class OpenInRemoteCommand extends ActiveEditorCommand { if (args.remotes.length === 1) { this.ensureRemoteBranchName(args); const command = new OpenRemoteCommandQuickPickItem(args.remotes[0], args.resource); - return command.execute(); + return await command.execute(); } let placeHolder = ''; @@ -78,13 +78,13 @@ export class OpenInRemoteCommand extends ActiveEditorCommand { if (args.remotes.length === 1) { const command = new OpenRemoteCommandQuickPickItem(args.remotes[0], args.resource); - return command.execute(); + return await command.execute(); } const pick = await RemotesQuickPick.show(args.remotes, placeHolder, args.resource, args.goBackCommand); if (pick === undefined) return undefined; - return pick.execute(); + return await pick.execute(); } catch (ex) {