Confusion about how EnvironmentVariableCollection handles multiple extensions changing the same variable #94081
Labels
bug
Issue identified by VS Code Team member as probable bug
terminal-process
Problems launching processes, managing ptys, exiting, process leaks, etc.
Milestone
Refs #93601
Repro
In Extension 1, create a persisted
EnvironmentVariableCollection
that calls.replace('TEST', 'replace')
In extension 2, create a non persisted
EnvironmentVariableCollection
that calls.append('TEST', 'append')
Install both extensions
Activate extension 1.
Then restart VS Code
Now activate extension 2
Create a new terminal and check the value of
TEST
Expected
I expected
TEST
to bereplaceappend
This is because I expect the initial value of
TEST
to bereplace
from the persisted collection in extension 1, then when extension 2 is activated it appends on its value.Actual
The value of
TEST
isreplace
The text was updated successfully, but these errors were encountered: