redhat-developer / redhat-developer/vscode-yaml

Formatting will be broken if the word SET at the end of value

Open
#1,279 0 comments 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

The word ABCSET will make the formatter broken:
Image

Expected Behavior

The formatter need to detect the keyword correctly

Current Behavior

It detect keyword incorrect hence render incorrect

Steps to Reproduce

  1. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.