redhat-developer / redhat-developer/vscode-yaml
Formatting will be broken if the word SET at the end of value
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
The word ABCSET will make the formatter broken:
Expected Behavior
The formatter need to detect the keyword correctly
Current Behavior
It detect keyword incorrect hence render incorrect
Steps to Reproduce
- Create yaml file which has some keyword SET at the end. Even abcd: ABCSET works
Environment
- Windows
- Mac
- Linux
- other (please specify): WSL
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 formatter failure with a YAML value ending in SET, including abcd: ABCSET, on Windows or WSL. No file or test is named, so first locate the formatter's keyword-detection entry point and compare its handling of SET at the end of a value with other keyword positions. Done means the YAML formats correctly without treating the trailing text as a keyword.
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
- 50/100