Whether the collection should be cached for the workspace and applied to the terminal across window reloads. When true the collection will be active immediately such when the window reloads. Additionally, this API will return the cached version if it exists. The collection will be invalidated when the extension is uninstalled or when the collection is cleared. Defaults to true.
A description for the environment variable collection, this will be used to describe the changes in the UI.
Replace an environment variable with a value.
Note that an extension can only make a single change to any one variable, so this will overwrite any previous calls to replace, append or prepend.
The variable to replace.
The value to replace the variable with.
Options applied to the mutator, when no options are provided this will
default to { applyAtProcessCreation: true }
.
Append a value to an environment variable.
Note that an extension can only make a single change to any one variable, so this will overwrite any previous calls to replace, append or prepend.
The variable to append to.
The value to append to the variable.
Options applied to the mutator, when no options are provided this will
default to { applyAtProcessCreation: true }
.
Prepend a value to an environment variable.
Note that an extension can only make a single change to any one variable, so this will overwrite any previous calls to replace, append or prepend.
The variable to prepend.
The value to prepend to the variable.
Options applied to the mutator, when no options are provided this will
default to { applyAtProcessCreation: true }
.
Gets the mutator that this collection applies to a variable, if any.
The variable to get the mutator for.
Iterate over each mutator in this collection.
Function to execute for each entry.
The this
context used when invoking the handler function.
Deletes this collection's mutator for a variable.
The variable to delete the mutator for.
Clears all mutators from this collection.
A collection of mutations that an extension can apply to a process environment.