@@ -970,14 +970,32 @@ export class TerminalInstance implements ITerminalInstance {
}
this._isExiting=true;
letexitCodeMessage:string;
letexitCodeMessage:string|undefined;
// Create exit code message
if(exitCode){
exitCodeMessage=nls.localize('terminal.integrated.exitedWithCode','The terminal process terminated with exit code: {0}',exitCode);
}
if(exitCode===SHELL_PATH_INVALID_EXIT_CODE){
exitCodeMessage=nls.localize('terminal.integrated.exitedWithInvalidPath','The terminal process terminated as it could not find the specified path : {0}',this._shellLaunchConfig.executable);
if(exitCode===SHELL_PATH_INVALID_EXIT_CODE){
exitCodeMessage=nls.localize('terminal.integrated.exitedWithInvalidPath','The terminal shell path does not exist: {0}',this._shellLaunchConfig.executable);
this._notificationService.error(nls.localize('terminal.integrated.launchFailed','The terminal process command \'{0}{1}\' failed to launch (exit code: {2})',this._shellLaunchConfig.executable,args,exitCode));
}else{
this._notificationService.error(nls.localize('terminal.integrated.launchFailedExtHost','The terminal process failed to launch (exit code: {0})',exitCode));