redhat-developer / redhat-developer/vscode-yaml

Wrong handlebars formatting in YAML text

Open
#296 4 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

formatter
Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by reproducing the reported formatting of {{ .Values.domain }} in a YAML document opened in the VS Code YAML extension, then trace which formatter handles the text. Done means the Go-template expression remains valid after formatting without requiring the global bracket-spacing option.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, vscode, yaml
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.