Skip to content

Commit

Permalink
Remove some redundant code handling sequential dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
markw65 committed Apr 24, 2023
1 parent a473d38 commit 8b4ca12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,14 +555,10 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
promises.push(promise);
if (task.configurationProperties.dependsOrder === DependsOrder.sequence) {
const promiseResult = await promise;
if (promiseResult.exitCode === 0) {
promise = Promise.resolve(promiseResult);
} else {
promise = Promise.reject(promiseResult);
if (promiseResult.exitCode !== 0) {
break;
}
}
promises.push(promise);
} else {
this._log(nls.localize('dependencyFailed',
'Couldn\'t resolve dependent task \'{0}\' in workspace folder \'{1}\'',
Expand Down

0 comments on commit 8b4ca12

Please sign in to comment.