redhat-developer / redhat-developer/vscode-yaml
Bug: Double braces add a question mark `?` between the opening braces
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
Could or could not be related to #968 and #246 but seems like when you format this document:
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.app.name }}
you get
apiVersion: apps/v1
kind: Deployment
metadata:
name: { ? { .Values.app.name } }
Expected Behavior
Though bracket spacing is acceptable and can be disabled according to #246, question mark should not appear.
Current Behavior
Question mark appeared for some reason.
Steps to Reproduce
- Use the provided pre-formatted document.
- Format document
- The malformed yaml appears.
Environment
- Windows
- Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the formatter behavior with the provided Kubernetes Deployment YAML in VS Code, then trace the formatting path handling Helm-style double braces. Confirm the change by formatting the example and verifying that bracket spacing may remain configurable but no question mark appears between the opening braces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100