File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/vs/workbench/contrib/terminal/electron-sandbox Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -279,10 +279,12 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
279
279
// Re-resolve the environments and replace it on the state so local terminals use a fresh
280
280
// environment
281
281
mark ( 'code/terminal/willGetReviveEnvironments' ) ;
282
- for ( const state of parsed ) {
283
- const freshEnv = await this . _resolveEnvironmentForRevive ( variableResolver , state . shellLaunchConfig ) ;
284
- state . processLaunchConfig . env = freshEnv ;
285
- }
282
+ await Promise . all ( parsed . map ( state => new Promise < void > ( r => {
283
+ this . _resolveEnvironmentForRevive ( variableResolver , state . shellLaunchConfig ) . then ( freshEnv => {
284
+ state . processLaunchConfig . env = freshEnv ;
285
+ r ( ) ;
286
+ } ) ;
287
+ } ) ) ) ;
286
288
mark ( 'code/terminal/didGetReviveEnvironments' ) ;
287
289
288
290
mark ( 'code/terminal/willReviveTerminalProcesses' ) ;
You can’t perform that action at this time.
0 commit comments