File tree 1 file changed +4
-7
lines changed
lib/vscode/src/vs/server/node
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -499,12 +499,6 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
499
499
return args . configuration [ 'terminal.integrated.env.linux' ] ;
500
500
} ;
501
501
502
- const getNonInheritedEnv = async ( ) : Promise < platform . IProcessEnvironment > => {
503
- const env = await getMainProcessParentEnv ( process . env ) ;
504
- env . VSCODE_IPC_HOOK_CLI = process . env [ 'VSCODE_IPC_HOOK_CLI' ] ! ;
505
- return env ;
506
- } ;
507
-
508
502
const env = terminalEnvironment . createTerminalEnvironment (
509
503
shellLaunchConfig ,
510
504
getEnvFromConfig ( ) ,
@@ -513,9 +507,12 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
513
507
args . configuration [ 'terminal.integrated.detectLocale' ] ,
514
508
args . configuration [ 'terminal.integrated.inheritEnv' ] !== false
515
509
? process . env as platform . IProcessEnvironment
516
- : await getNonInheritedEnv ( )
510
+ : await getMainProcessParentEnv ( process . env )
517
511
) ;
518
512
513
+ env . VSCODE_PROXY_URI = args . resolverEnv ?. VSCODE_PROXY_URI || process . env . VSCODE_PROXY_URI ;
514
+ env . VSCODE_IPC_HOOK_CLI = process . env . VSCODE_IPC_HOOK_CLI ;
515
+
519
516
// Apply extension environment variable collections to the environment.
520
517
if ( ! shellLaunchConfig . strictEnv ) {
521
518
// They come in an array and in serialized format.
You can’t perform that action at this time.
0 commit comments