@@ -214,12 +214,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
214214 if ( _container ) {
215215 this . _attachToElement ( _container ) ;
216216 }
217-
218- this . _processManager . createProcess ( this . _shellLaunchConfig , this . _cols , this . _rows , this . _accessibilityService . isScreenReaderOptimized ( ) ) . then ( error => {
219- if ( error ) {
220- this . _onProcessExit ( error ) ;
221- }
222- } ) ;
217+ this . _createProcess ( ) ;
223218 } ) ;
224219
225220 this . addDisposable ( this . _configurationService . onDidChangeConfiguration ( e => {
@@ -884,7 +879,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
884879 protected _createProcessManager ( ) : void {
885880 this . _processManager = this . _instantiationService . createInstance ( TerminalProcessManager , this . _id , this . _configHelper ) ;
886881 this . _processManager . onProcessReady ( ( ) => {
887- console . log ( '_processManager.onProcessReady' ) ;
888882 this . _onProcessIdReady . fire ( this ) ;
889883 } ) ;
890884 this . _processManager . onProcessExit ( exitCode => this . _onProcessExit ( exitCode ) ) ;
@@ -932,6 +926,14 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
932926 }
933927 }
934928
929+ private _createProcess ( ) : void {
930+ this . _processManager . createProcess ( this . _shellLaunchConfig , this . _cols , this . _rows , this . _accessibilityService . isScreenReaderOptimized ( ) ) . then ( error => {
931+ if ( error ) {
932+ this . _onProcessExit ( error ) ;
933+ }
934+ } ) ;
935+ }
936+
935937 private getShellType ( executable : string ) : TerminalShellType {
936938 switch ( executable . toLowerCase ( ) ) {
937939 case 'cmd.exe' :
@@ -1123,6 +1125,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
11231125 }
11241126
11251127 this . _processManager . onProcessData ( data => this . _onProcessData ( data ) ) ;
1128+ this . _createProcess ( ) ;
11261129 }
11271130
11281131 public relaunch ( ) : void {
0 commit comments