From d630afbbb07e6999f0a28baf3019985f3bbf75d0 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 19 Nov 2019 11:13:59 -0800 Subject: [PATCH] Fix strictFunctionTypes in extHostTerminalService Part of #81574 --- src/vs/workbench/api/common/extHostTerminalService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/api/common/extHostTerminalService.ts b/src/vs/workbench/api/common/extHostTerminalService.ts index 43e4f6bf753..50d9901b68d 100644 --- a/src/vs/workbench/api/common/extHostTerminalService.ts +++ b/src/vs/workbench/api/common/extHostTerminalService.ts @@ -268,8 +268,8 @@ export class ExtHostPseudoterminal implements ITerminalChildProcess { // Attach the listeners this._pty.onDidWrite(e => this._onProcessData.fire(e)); if (this._pty.onDidClose) { - this._pty.onDidClose((e: number | undefined = undefined) => { - this._onProcessExit.fire(e); + this._pty.onDidClose((e: number | void = undefined) => { + this._onProcessExit.fire(e === void 0 ? undefined : e); }); } if (this._pty.onDidOverrideDimensions) {