Skip to content

Commit 7e06506

Browse files
author
Tyler Deemer
committed
Merge master
1 parent 6d149c9 commit 7e06506

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/commands/studio.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,36 +243,38 @@ class StudioActions {
243243
return new Promise((resolve) => {
244244
this.api
245245
.actionQuery(query, parameters)
246-
.then(async data => {
247-
if(action.save) {
246+
.then(async (data) => {
247+
if (action.save) {
248248
await this.processSaveFlag(action.save);
249249
}
250-
if(!afterUserAction) {
250+
if (!afterUserAction) {
251251
outputConsole(data.console);
252252
}
253253
const actionToProcess = data.result.content.pop();
254254

255255
// CSP pages should not have a progress bar
256-
if(actionToProcess.action === 2) {
256+
if (actionToProcess.action === 2) {
257257
resolve();
258258
}
259259
return actionToProcess;
260260
})
261261
.then(this.processUserAction)
262-
.then(answer => {
262+
.then((answer) => {
263263
if (answer) {
264-
return (answer.msg || answer.msg === "")
264+
return answer.msg || answer.msg === ""
265265
? this.userAction(action, true, answer.answer, answer.msg, type)
266266
: this.userAction(action, true, answer, "", type);
267267
}
268-
}).then(() => resolve())
269-
.catch(err => {
268+
})
269+
.then(() => resolve())
270+
.catch((err) => {
270271
console.log(err);
271272
outputChannel.appendLine(`Studio Action "${action.label}" not supported`);
272273
outputChannel.show();
273-
})
274+
});
274275
});
275-
});
276+
}
277+
);
276278
}
277279

278280
private constructMenu(menu, contextOnly = false): any[] {

0 commit comments

Comments
 (0)