Vscode-yaml: Broken code folding

Created on 9 Feb 2021  路  2Comments  路  Source: redhat-developer/vscode-yaml

Describe the bug

I'm having an issue when this extension is enabled where it is folding sections of code beyond their boundaries.

Expected Behavior

For a file like this, I would expect folding a level 2 entity (e.g., DeployBucketPolicy, to only fold up until the end of that entity.

image

Without this extension enabled, this happens as expected.

image

Current Behavior

Currently, when this extension is enabled, folding DeployBucketPolicy folds the lower-level Outputs into itself as well. In this case, the next level 2 entity is visible, but in many other cases where this issue also presents itself, entire entities can be hidden by folding a sibling entity.

image

Steps to Reproduce

  1. Open a YAML file
  2. Fold is at level 2 with the extension turned on
  3. Compare the results with the extension disabled

Environment

  • [ ] Windows
  • [x] Mac
  • [ ] Linux
  • [ ] other (please specify)

Most helpful comment

Duplicate of #422. It is should be resolved with v0.15. That release is scheduled for sometime today. I am waiting on it, as well as dozens of others at my company.

All 2 comments

Duplicate of #422. It is should be resolved with v0.15. That release is scheduled for sometime today. I am waiting on it, as well as dozens of others at my company.

Works fine! Thanks

Was this page helpful?
0 / 5 - 0 ratings