-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Labels
Description
Describe the bug
When applying the 'key ordering' quickfix to make the keys in alphabetical order, certain parts of the YAML get broken.
Here is an example case:
one:
child: moo
two:
child: moo
three:
child: mooApply the quickfix to order two after three
Expected Behavior
When the quickfix is applied, the resulting YAML represents the same data. I am expecting the resulting YAML to look like this:
one:
child: moo
two:
child: moo
three:
child: mooCurrent Behavior
one:
child: moo
three:
child: mootwo:
child: mooSteps to Reproduce
- Enable key ordering errors, eg.
"yaml.keyOrdering": true, - Make the above example YAML
- Apply the quickfix
Environment
- Windows
- Mac
- Linux
- other (please specify)
Reactions are currently unavailable