@@ -142,6 +142,9 @@ export class PtyService extends Disposable implements IPtyService {
142
142
{
143
143
...state . shellLaunchConfig ,
144
144
cwd : state . processDetails . cwd ,
145
+ color : state . processDetails . color ,
146
+ icon : state . processDetails . icon ,
147
+ name : state . processDetails . title ,
145
148
initialText : state . replayEvent . events [ 0 ] . data + '\x1b[0m\n\n\r\x1b[1;48;5;252;38;5;234m ' + restoreMessage + ' \x1b[K\x1b[0m\n\r'
146
149
} ,
147
150
state . processDetails . cwd ,
@@ -190,7 +193,7 @@ export class PtyService extends Disposable implements IPtyService {
190
193
executableEnv,
191
194
windowsEnableConpty
192
195
} ;
193
- const persistentProcess = new PersistentTerminalProcess ( id , process , workspaceId , workspaceName , shouldPersist , cols , rows , processLaunchOptions , unicodeVersion , this . _reconnectConstants , this . _logService , isReviving ? shellLaunchConfig . initialText : undefined , shellLaunchConfig . icon , shellLaunchConfig . color , shellLaunchConfig . fixedDimensions ) ;
196
+ const persistentProcess = new PersistentTerminalProcess ( id , process , workspaceId , workspaceName , shouldPersist , cols , rows , processLaunchOptions , unicodeVersion , this . _reconnectConstants , this . _logService , isReviving ? shellLaunchConfig . initialText : undefined , shellLaunchConfig . icon , shellLaunchConfig . color , shellLaunchConfig . name , shellLaunchConfig . fixedDimensions ) ;
194
197
process . onDidChangeProperty ( property => this . _onDidChangeProperty . fire ( { id, property } ) ) ;
195
198
process . onProcessExit ( event => {
196
199
persistentProcess . dispose ( ) ;
@@ -461,9 +464,13 @@ export class PersistentTerminalProcess extends Disposable {
461
464
reviveBuffer : string | undefined ,
462
465
private _icon ?: TerminalIcon ,
463
466
private _color ?: string ,
467
+ name ?: string ,
464
468
fixedDimensions ?: IFixedTerminalDimensions
465
469
) {
466
470
super ( ) ;
471
+ if ( name ) {
472
+ this . setTitle ( name , TitleEventSource . Api ) ;
473
+ }
467
474
this . _logService . trace ( 'persistentTerminalProcess#ctor' , _persistentProcessId , arguments ) ;
468
475
this . _wasRevived = reviveBuffer !== undefined ;
469
476
this . _serializer = new XtermSerializer (
0 commit comments