ESlint: enable no-async-promise-executor (#134873)

This commit is contained in:
Benjamin Pasero
2021-10-12 10:50:44 +02:00
parent 0d803d3e51
commit 3cda269c80
35 changed files with 66 additions and 34 deletions

View File

@@ -642,6 +642,7 @@ export abstract class ExtHostTaskBase implements ExtHostTaskShape, IExtHostTask
if (result) {
return result;
}
// eslint-disable-next-line no-async-promise-executor
const createdResult: Promise<TaskExecutionImpl> = new Promise(async (resolve, reject) => {
const taskToCreate = task ? task : await TaskDTO.to(execution.task, this._workspaceProvider, this._providedCustomExecutions2);
if (!taskToCreate) {