redhat-developer / redhat-developer/yaml-language-server

Indentation of list

Open
#195 3 comments 25 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

VSCODE Settings

"[yaml]": { "editor.formatOnSave": false, "editor.defaultFormatter": "redhat.vscode-yaml", "editor.tabSize": 2, "editor.detectIndentation": true, "editor.insertSpaces": true, "editor.autoIndent": false },

apparently the tabSize must be greater than 0... How about a list specific tab size because yamllint is a serious pain but useful tool and the automatic indention of list (unnecessarily) is a headache.

Current outcome when editor.tabSize is 2
Screen Shot 2019-10-24 at 12 55 04 AM

desired outcome when edition.listTabSize is 0 (yes I am requesting this key be added)
Screen Shot 2019-10-24 at 12 55 16 AM

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 tracing how the language server handles VS Code's editor.tabSize and indentation settings. Determine where a list-specific setting would be read and applied; the work is done when a value of 0 prevents extra list indentation while existing behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, 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.