vscode-env
vscode-env copied to clipboard
Formatting of single quotes can add extra double quotes.
I needed to export a variable for terraform that is a string list:
If I have a single value in the array, this works fine
Before
export TF_VAR_abc='["Hello"]'
After Formatting
export TF_VAR_abc='["Hello"]'
However, when I add 2 items to the list it adds extra quotes:
Before
export TF_VAR_abc='["Hello", "World"]'
After Formatting
export TF_VAR_abc="'["Hello", "World"]'"
Which is a different value when echoed