Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${variable_name} doesn't get properly escaped #68

Open
marcsekz opened this issue Sep 26, 2021 · 1 comment
Open

${variable_name} doesn't get properly escaped #68

marcsekz opened this issue Sep 26, 2021 · 1 comment

Comments

@marcsekz
Copy link

When placing for example ${variable_name} inside a snippet, it should be escaped as \\${variable_name\\}, so that VScode doesn't think it's a placeholder in the snippet

For example for cortex debug, the following line is usually needed:
"cwd": "${workspaceRoot}",
With proper encoding:
"\"cwd\": \"\\${workspaceRoot\\}\",",

@nadavc-jfrog
Copy link

2x

disaac added a commit to disaac/snippet-generator that referenced this issue Jun 7, 2022
* Added replace for bash variables of format `${variable}` and `$variable`

Issue:  pawelgrzybek#68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants