Skip to content

Commit bfe89b8

Browse files
committed
skip PWD and see what I get
1 parent fb4dd1a commit bfe89b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/client/interpreter/activation/service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/client/terminals/envCollectionActivation/service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)