File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
terminals/envCollectionActivation Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ export class EnvironmentActivationService implements IEnvironmentActivationServi
180
180
181
181
@cache ( - 1 , true )
182
182
public async getProcessEnvironmentVariables ( resource : Resource , shell ?: string ) : Promise < EnvironmentVariables > {
183
+ // Shell mightve been not gitbash.. Hence messed up path.. lol
184
+
183
185
// Try to get the process environment variables using Python by printing variables, that can be little different
184
186
// from `process.env` and is preferred when calculating diff.
185
187
const globalInterpreters = this . interpreterService
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
243
243
envVarCollection . prepend ( key , value , defaultPrependOptions ) ;
244
244
return ;
245
245
}
246
+ // Avoid setting PWD.
246
247
if ( key === 'PATH' ) {
247
248
// perhaps PATH is getting messed up
248
249
const options = {
@@ -482,6 +483,7 @@ function shouldSkip(env: string) {
482
483
'PYTHONUTF8' ,
483
484
// We have deactivate service which takes care of setting it.
484
485
'_OLD_VIRTUAL_PATH' ,
486
+ 'PWD' ,
485
487
] . includes ( env ) ;
486
488
}
487
489
You can’t perform that action at this time.
0 commit comments