Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto completing an object underneath an array can produce the wrong indentation #392

Closed
1 of 4 tasks
JPinkney opened this issue Jan 14, 2021 · 0 comments · Fixed by #415
Closed
1 of 4 tasks

Auto completing an object underneath an array can produce the wrong indentation #392

JPinkney opened this issue Jan 14, 2021 · 0 comments · Fixed by #415
Assignees
Labels
Milestone

Comments

@JPinkney
Copy link
Contributor

Describe the bug

Auto completing an object underneath an array can produce the wrong indentation

Expected Behavior

test_array_anyOf_2objects:
  - obj2:
      | <- indent here

Current Behavior

test_array_anyOf_2objects:
  - obj2:
    | <- indent here

Steps to Reproduce

  1. Use https://raw.githubusercontent.com/redhat-developer/yaml-language-server/252c1e83c99394d2536b58c08057e2d37d3b7187/test/fixtures/testArrayCompletionSchema.json as the schema
  2. Use this yaml and try to autocomplete
test_array_anyOf_2objects:
  - | <- auto complete here
  1. See that you get current behavior and not expected behavior

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
@evidolob evidolob added this to the 0.16.0 milestone Feb 10, 2021
@evidolob evidolob self-assigned this Feb 24, 2021
@evidolob evidolob added the bug label Feb 24, 2021
evidolob added a commit to evidolob/yaml-language-server that referenced this issue Feb 24, 2021
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants