Skip to content

Commit

Permalink
Fixes #49400: Cannot read property 'then' of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed May 30, 2018
1 parent cf13399 commit 7612f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/tasks/node/processTaskSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class ProcessTaskSystem implements ITaskSystem {
if (!this.activeTask || Task.getMapKey(this.activeTask) !== Task.getMapKey(task)) {
return TPromise.as<TaskTerminateResponse>({ success: false, task: undefined });
}
return this.terminateAll()[0];
return this.terminateAll().then(values => values[0]);
}

public terminateAll(): TPromise<TaskTerminateResponse[]> {
Expand Down

0 comments on commit 7612f07

Please sign in to comment.