Skip to content

Issues with PATH when multiple extensions contribute #245613

@anthonykim1

Description

@anthonykim1

There were reports where when multiple extensions contribute environment, (such as that of $PATH),
the end result was not predictable, and could lead to unexpected scenarios where PATH can be overwritten via extensions, such as after some additions have been made by fnm, leading to 'node' is not recognized for the user.

Investigate where this is coming from, and if this is possible to prevent&resolve:

Planning to investigate:
Environment variable collection code, see if there could be racing condition, overriding scenarios, or potentially come up with special case for things like PATH where it can be constantly dynamically changed throughout dev process.

Perhaps even limiting extensions to calling replace on PATH and only allow prepend.

/cc @Tyriar @connor4312

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugterminal-env-collectionIssues related to the EnvironmentVariableCollection APIverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions