File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/vs/platform/terminal/node Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ export class PtyService extends Disposable implements IPtyService {
240
240
) ;
241
241
// Don't start the process here as there's no terminal to answer CPR
242
242
this . _revivedPtyIdMap . set ( terminal . id , { newId, state : terminal } ) ;
243
+ this . _logService . info ( `Revived process, old id ${ terminal . id } -> new id ${ newId } ` ) ;
243
244
}
244
245
245
246
@traceRpc
@@ -532,6 +533,7 @@ export class PtyService extends Disposable implements IPtyService {
532
533
private async _expandTerminalInstance ( t : ITerminalInstanceLayoutInfoById ) : Promise < IRawTerminalInstanceLayoutInfo < IProcessDetails | null > > {
533
534
try {
534
535
const revivedPtyId = this . _revivedPtyIdMap . get ( t . terminal ) ?. newId ;
536
+ this . _logService . info ( `Expanding terminal instance, old id ${ t . terminal } -> new id ${ revivedPtyId } ` ) ;
535
537
this . _revivedPtyIdMap . delete ( t . terminal ) ;
536
538
const persistentProcessId = revivedPtyId ?? t . terminal ;
537
539
const persistentProcess = this . _throwIfNoPty ( persistentProcessId ) ;
@@ -542,6 +544,8 @@ export class PtyService extends Disposable implements IPtyService {
542
544
} ;
543
545
} catch ( e ) {
544
546
this . _logService . warn ( `Couldn't get layout info, a terminal was probably disconnected` , e . message ) ;
547
+ this . _logService . info ( 'Reattach to wrong terminal debug info - layout info by id' , t ) ;
548
+ this . _logService . info ( 'Reattach to wrong terminal debug info - _revivePtyIdMap' , Array . from ( this . _revivedPtyIdMap . values ( ) ) ) ;
545
549
// this will be filtered out and not reconnected
546
550
return {
547
551
terminal : null ,
You can’t perform that action at this time.
0 commit comments