Skip to content

Commit 4da705b

Browse files
committed
Fixes missing awaits for proper error handling
1 parent 9fe4597 commit 4da705b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/openInRemote.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class OpenInRemoteCommand extends ActiveEditorCommand {
3737
if (args.remotes.length === 1) {
3838
this.ensureRemoteBranchName(args);
3939
const command = new OpenRemoteCommandQuickPickItem(args.remotes[0], args.resource);
40-
return command.execute();
40+
return await command.execute();
4141
}
4242

4343
let placeHolder = '';
@@ -78,13 +78,13 @@ export class OpenInRemoteCommand extends ActiveEditorCommand {
7878

7979
if (args.remotes.length === 1) {
8080
const command = new OpenRemoteCommandQuickPickItem(args.remotes[0], args.resource);
81-
return command.execute();
81+
return await command.execute();
8282
}
8383

8484
const pick = await RemotesQuickPick.show(args.remotes, placeHolder, args.resource, args.goBackCommand);
8585
if (pick === undefined) return undefined;
8686

87-
return pick.execute();
87+
return await pick.execute();
8888

8989
}
9090
catch (ex) {

0 commit comments

Comments
 (0)