redhat-developer / redhat-developer/vscode-yaml

FEATURE: Trailing comma

Open
#232 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement formatter
Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

So instead of tags: [update_vars] we would get tags: [update_vars, ]. Right now trailing commas are removed by the formatter. An option to disable the removing would already be helpful.

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 locating the YAML formatter implementation and its existing formatting-option handling in the TypeScript codebase. Determine how trailing commas are currently removed and how an option could preserve them. Done means the formatter can retain a trailing comma when configured, while existing behavior remains unchanged by default, with coverage for the requested array syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.