This commit is contained in:
meganrogge 2024-03-28 09:27:37 -07:00
parent 4f446cf856
commit 7df05a7bc1
No known key found for this signature in database
GPG key ID: AA74638D4878183D

View file

@ -337,9 +337,9 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
}
return task._label;
});
this._lifecycleService.onBeforeShutdown(e => {
this._register(this._lifecycleService.onBeforeShutdown(e => {
this._willRestart = e.reason !== ShutdownReason.RELOAD;
});
}));
this._register(this.onDidStateChange(e => {
this._log(nls.localize('taskEvent', 'Task Event kind: {0}', e.kind), true);
if (e.kind === TaskEventKind.Changed) {