Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

No folding for objects with list value without identation #99

@amarao

Description

@amarao

Description

Folding does not work with objects containing lists which are on the same indentation as parent element.

Steps to Reproduce

Example of yaml file:

---
example:
- one
- two

Place cursor on 'example' and press 'fold' (Ctrl-Shift-[)

Expected behavior: Folding of 'example' element

Actual behavior: nothing happens

Reproduces how often: 100%

Versions

Atom : 1.23.2
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
apm 1.18.12
npm 3.10.10
node 6.9.5 x64
atom 1.23.2
python 2.7.14+
git 2.15.1

OS: Ubuntu 18.04 x86_64.

Additional Information

If yaml file has additional indentation, folding works.

---
example:
 - one
 - two

The problem is that most of yaml-generating software (python-yaml, jackson yaml, etc) generate yaml with no additional indentation for lists by default (as in the bugreport example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions