Skip to content

Commit f673ff1

Browse files
anthonykim1Copilot
andauthored
Update src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts
Co-authored-by: Copilot <[email protected]>
1 parent 85a2b77 commit f673ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,8 +2191,8 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
21912191
await this.run(updatedTask);
21922192
} else {
21932193
const success = await this.run(task);
2194-
if (success?.exitCode === 1) {
2195-
// Task no longer exists, show warning
2194+
if (!success || success.exitCode !== 0) {
2195+
// Task no longer exists or failed to run, show warning
21962196
this._notificationService.warn(nls.localize('TaskSystem.taskNoLongerExists', 'Task {0} no longer exists or has been really modified. Cannot restart.', task.configurationProperties.name));
21972197
}
21982198
}

0 commit comments

Comments
 (0)