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

Weird yaml formatting

Open eugene-marchanka opened this issue 11 months ago • 0 comments

Describe the bug

This yaml formatter does weird formatting replacement when working with CRDs.

Image

Expected Behavior

autoformat does not replace valid characters with ? and :

Current Behavior

autoformat replaces some characters with ? and :

Steps to Reproduce

  1. Create .yaml file from .txt example manifest provided. (Can not attach .yaml/.yml files to the issue)
  2. Make sure you use redhat.vscode-yaml in your settings.json
    "[yaml]": {
        "editor.defaultFormatter": "redhat.vscode-yaml",
  1. Hit save and see what happens

Environment

  • [ ] Windows
  • [ ] Mac
  • [x] Linux
  • [ ] other (please specify)

eugene-marchanka avatar Nov 18 '24 17:11 eugene-marchanka