Skip to content

Commit 70a3bea

Browse files
committed
reject progress if error happens
1 parent bd02bf7 commit 70a3bea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/studio.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class StudioActions {
250250
title: `Executing user action: ${action.label}`,
251251
},
252252
() => {
253-
return new Promise((resolve) => {
253+
return new Promise((resolve, reject) => {
254254
this.api
255255
.actionQuery(query, parameters)
256256
.then(async (data) => {
@@ -281,6 +281,7 @@ class StudioActions {
281281
console.log(err);
282282
outputChannel.appendLine(`Studio Action "${action.label}" not supported`);
283283
outputChannel.show();
284+
return reject();
284285
});
285286
});
286287
}

0 commit comments

Comments
 (0)