vscode-env icon indicating copy to clipboard operation
vscode-env copied to clipboard

Formatting of single quotes can add extra double quotes.

Open Dave-EMIS opened this issue 1 year ago • 0 comments

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

Dave-EMIS avatar Nov 03 '23 09:11 Dave-EMIS