redhat-developer / redhat-developer/vscode-yaml

Add option to ignore spacing on lists

Open
#826 0 comments 7 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

Since this plugin is with built-in Kubernetes syntax, we need also an option to ignore spaces on lists.

Now the plugin forces this

my_list:
  - 1
  - 2
  - 3

But in Kubernetes we don't do that since it is using the golang YAML library which outputs the list as

my_list:
- 1
- 2
- 3

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

The issue names no files, tests, or entry points. Start by locating the YAML list-formatting logic and its tests, then trace how formatting options are configured. Done means an option can preserve the unindented list style shown for Kubernetes YAML without changing the existing default.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, yaml
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.