diff --git a/packages/task/src/common/task-protocol.ts b/packages/task/src/common/task-protocol.ts index 163c83bcfc26d..839895e02d732 100644 --- a/packages/task/src/common/task-protocol.ts +++ b/packages/task/src/common/task-protocol.ts @@ -144,6 +144,9 @@ export interface TaskExitedEvent { readonly signal?: string; readonly config?: TaskConfiguration; + + readonly terminalId?: number; + readonly processId?: number; } export interface TaskOutputEvent { diff --git a/packages/task/src/node/process/process-task.ts b/packages/task/src/node/process/process-task.ts index bca95bea9f5ea..3117ff40d3bee 100644 --- a/packages/task/src/node/process/process-task.ts +++ b/packages/task/src/node/process/process-task.ts @@ -115,7 +115,9 @@ export class ProcessTask extends Task { ctx: this.context, code: evt.code, signal: evt.signal, - config: this.options.config + config: this.options.config, + terminalId: this.process.id, + processId: this.process.id }; }