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
180180
181181 @cache ( - 1 , true )
182182 public async getProcessEnvironmentVariables ( resource : Resource , shell ?: string ) : Promise < EnvironmentVariables > {
183+ // Shell mightve been not gitbash.. Hence messed up path.. lol
184+
183185 // Try to get the process environment variables using Python by printing variables, that can be little different
184186 // from `process.env` and is preferred when calculating diff.
185187 const globalInterpreters = this . interpreterService
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
243243 envVarCollection . prepend ( key , value , defaultPrependOptions ) ;
244244 return ;
245245 }
246+ // Avoid setting PWD.
246247 if ( key === 'PATH' ) {
247248 // perhaps PATH is getting messed up
248249 const options = {
@@ -482,6 +483,7 @@ function shouldSkip(env: string) {
482483 'PYTHONUTF8' ,
483484 // We have deactivate service which takes care of setting it.
484485 '_OLD_VIRTUAL_PATH' ,
486+ 'PWD' ,
485487 ] . includes ( env ) ;
486488}
487489
You can’t perform that action at this time.
0 commit comments