redhat-developer / redhat-developer/vscode-yaml
Weird yaml formatting
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
This yaml formatter does weird formatting replacement when working with CRDs.
Expected Behavior
autoformat does not replace valid characters with ? and :
Current Behavior
autoformat replaces some characters with ? and :
Steps to Reproduce
- Create
.yamlfile from.txtexample manifest provided. (Can not attach.yaml/.ymlfiles to the issue) - Make sure you use
redhat.vscode-yamlin yoursettings.json
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml",
- Hit save and see what happens
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
Reproduce the issue on Linux with the attached cluster-issuer-test.txt manifest and the redhat.vscode-yaml formatter configured in settings.json. Compare the YAML before and after saving, then trace the formatter path responsible for the replacements; done means valid CRD characters are preserved instead of becoming '?' or ':'.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, yaml
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100