From 2d9ebcf95b01a5f24bd05b543bedd9e93eb49519 Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Sun, 5 Jan 2020 21:56:19 +0200 Subject: [PATCH] Add info about processId and terminalId to TaskExitedEvent Signed-off-by: Roman Nikitenko --- packages/task/src/common/task-protocol.ts | 3 +++ packages/task/src/node/process/process-task.ts | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 }; }