vscode-yaml
vscode-yaml copied to clipboard
Wrong handlebars formatting in YAML text
I have a YAML for helm that has gotemplate style handlebars {{ .Values.domain }} however the formatter turns them into{ { .Values.domain } } how can I disable specific behaviour . FYI Bracket spacing is non an option here as {{.Values.domain}}isn't a correct gotemplate syntax.
There's currently no configurations that can help in that use case unforunately.
The formatter we use is: https://github.com/prettier/prettier and there isn't a ton of customization we can do from our side
This issue is about the same as #246
Still no suitable solution or workaround found to resolve this issue ;( A suggested workaround from https://github.com/redhat-developer/vscode-yaml/issues/246 has other bad side effects. So, please implement a proper fix for this!
Looks related: https://github.com/prettier/prettier/issues/6517