@@ -94,10 +94,10 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
94
94
// The pty host should not get launched until the first window restored phase
95
95
await this . _lifecycleService . when ( LifecyclePhase . Restored ) ;
96
96
97
- mark ( 'code/willConnectPtyHost' ) ;
97
+ mark ( 'code/terminal/ willConnectPtyHost' ) ;
98
98
this . _logService . trace ( 'Renderer->PtyHost#connect: before acquirePort' ) ;
99
99
acquirePort ( 'vscode:createPtyHostMessageChannel' , 'vscode:createPtyHostMessageChannelResult' ) . then ( port => {
100
- mark ( 'code/didConnectPtyHost' ) ;
100
+ mark ( 'code/terminal/ didConnectPtyHost' ) ;
101
101
this . _logService . trace ( 'Renderer->PtyHost#connect: connection established' ) ;
102
102
// There are two connections to the pty host; one to the regular shared process
103
103
// _localPtyService, and one directly via message port _ptyHostDirectProxy. The former is
@@ -279,18 +279,24 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
279
279
280
280
// Re-resolve the environments and replace it on the state so local terminals use a fresh
281
281
// environment
282
+ mark ( 'code/terminal/willGetReviveEnvironments' ) ;
282
283
for ( const state of parsed ) {
283
284
const freshEnv = await this . _resolveEnvironmentForRevive ( variableResolver , state . shellLaunchConfig ) ;
284
285
state . processLaunchConfig . env = freshEnv ;
285
286
}
287
+ mark ( 'code/terminal/didGetReviveEnvironments' ) ;
286
288
289
+ mark ( 'code/terminal/willReviveTerminalProcesses' ) ;
287
290
await this . _localPtyService . reviveTerminalProcesses ( parsed , Intl . DateTimeFormat ( ) . resolvedOptions ( ) . locale ) ;
291
+ mark ( 'code/terminal/didReviveTerminalProcesses' ) ;
288
292
this . _storageService . remove ( TerminalStorageKeys . TerminalBufferState , StorageScope . WORKSPACE ) ;
289
293
// If reviving processes, send the terminal layout info back to the pty host as it
290
294
// will not have been persisted on application exit
291
295
const layoutInfo = this . _storageService . get ( TerminalStorageKeys . TerminalLayoutInfo , StorageScope . WORKSPACE ) ;
292
296
if ( layoutInfo ) {
297
+ mark ( 'code/terminal/willSetTerminalLayoutInfo' ) ;
293
298
await this . _localPtyService . setTerminalLayoutInfo ( JSON . parse ( layoutInfo ) ) ;
299
+ mark ( 'code/terminal/didSetTerminalLayoutInfo' ) ;
294
300
this . _storageService . remove ( TerminalStorageKeys . TerminalLayoutInfo , StorageScope . WORKSPACE ) ;
295
301
}
296
302
} catch {
0 commit comments