redhat-developer / vscode-yaml

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

Wrong handlebars formatting in YAML text #296

Open Vad1mo opened 4 years ago

Vad1mo commented 4 years ago

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.

JPinkney commented 4 years ago

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

smktpd commented 6 months ago

This issue is about the same as #246

MurzNN commented 2 months ago

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!