// fire events after the end event.
if (this._pendingEndingExecution) {
this._onDidRequestEndExecution.fire({ terminal: this._terminal, shellIntegration: this.value, execution: this._pendingEndingExecution.value, exitCode: undefined });
extHostTerminalShellIntegration.ts
this._pendingEndingExecution = undefined;
}
if (this._currentExecution) {