redhat-developer / redhat-developer/vscode-yaml

array of objects completion: line return indentation should be always at array item level

Open
#430 6 comments 0 reactions 1 assignee View on GitHub

@evidolob is already working on this.

Since Feb 24, 2021.

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

Description

Is your enhancement related to a problem? Please describe.

Currently, when I have an array of objects, if I type RETURN on first item of my array, new line indentation is at parent level (not at array item level).

For example, if I type:

- prop1: value1

And then ENTER, I get this:

- prop1: value1
#INDENTATION AT ROOT

Although if I have this:

- prop1: value1
  prop2: value2

And then ENTER, I get this:

- prop1: value1
  prop2: value2
  #INDENTATION AT ARRAY ITEM LEVEL
Describe the solution you would like

I would like that always, when array is an "array of objects", RETURN generates a new line with "array item indentation"

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.