Skip to content

Fix shell integration for append/prepend EnvironmentVariableCollection API#223450

Closed
anton-matosov wants to merge 1 commit intomicrosoft:mainfrom
anton-matosov:fix-env-prepend-append
Closed

Fix shell integration for append/prepend EnvironmentVariableCollection API#223450
anton-matosov wants to merge 1 commit intomicrosoft:mainfrom
anton-matosov:fix-env-prepend-append

Conversation

@anton-matosov
Copy link
Copy Markdown
Contributor

Add missing : separator in the variable setter for append and prepend for bash/zsh and fish. Withtout it last entry of first list and first entry of second list will merge into one string.

Add quotes around all the expression that eval into strings in fish integration, for safety sake.

…n API

Add missing `:` separator in the variable setter for append and prepend for bash/zsh and fish. Withtout it last entry of first list and first entry of second list will merge into one string.

Add quotes around all the expression that eval into strings in fish integration, for safety sake.
@anton-matosov
Copy link
Copy Markdown
Contributor Author

I was overly focused on fixing the issue for PATH, while not realizing that this code is generic.
This PR is invalid. Separator has to be provided by the extension.

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants