redhat-developer / redhat-developer/vscode-yaml

Bug: Double braces add a question mark `?` between the opening braces

Open
#1,245 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Use the provided pre-formatted document.
  2. Format document
  3. The malformed yaml appears.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.