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

Wrong handlebars formatting in YAML text

Open Vad1mo opened this issue 5 years ago • 4 comments

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.

Vad1mo avatar Apr 30 '20 22:04 Vad1mo

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

JPinkney avatar May 01 '20 01:05 JPinkney

This issue is about the same as #246

smktpd avatar Dec 27 '23 16:12 smktpd

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!

MurzNN avatar Apr 15 '24 05:04 MurzNN

Looks related: https://github.com/prettier/prettier/issues/6517

mcm-ham avatar Jul 24 '24 07:07 mcm-ham