redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
648 stars 220 forks source link

default value escape dollar sign? #258

Closed jetersen closed 2 years ago

jetersen commented 4 years ago

We have this schema https://github.com/release-drafter/release-drafter/blob/master/schema.json

We have some defaults like * $TITLE (#$NUMBER) @$AUTHOR for change-template

When VS Code auto complete's the default

it becomes

change-template: *  (#) @

instead of the desired

change-template: * $TITLE (#$NUMBER) @$AUTHOR

How do one properly escape I tried \\ and \\\\ to no avail.

JPinkney commented 4 years ago

Looks like a bug. When it automatically inserts the default its stripping characters but if you auto complete change-template and then do another seperate auto completetion after then it works

jetersen commented 4 years ago

Glad I could help find a bug 😅

jetersen commented 4 years ago

I realize that for yaml we need to quote the string but that is more schema related 😆

msivasubramaniaan commented 2 years ago

It is working as expected in the latest version. image

jetersen commented 2 years ago

@msivasubramaniaan Great news!