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

Get definition on sequence item #979

Open
Willem-J-an opened this issue Jul 4, 2024 · 0 comments
Open

Get definition on sequence item #979

Willem-J-an opened this issue Jul 4, 2024 · 0 comments

Comments

@Willem-J-an
Copy link

When using a yaml sequence, there seems to be no way to hover the definition of a sequence item:

some_sequence:
  - mysequence_item_key: value # There is no position I can hover from that will give definition of the whole node in sequence
    second_key: value2

other_sequence:
  - { # If I hover on the brace, I do get the definition of the node in the sequence.
       mysequence_item_key: value,
       second_key: value
    }

Describe the solution you would like

Support hovering definition of the sequence item on the - char

some_sequence:
  >>-<< mysequence_item_key: value # Hover on the - to get definition of sequence item
    second_key: value2

Currently this provides no information, and it seems like the most logical place to hover.

Describe alternatives you have considered

Write all sequences items with explicit curly braces, but now all key/value pairs must be delineated with commas, and all sequences and mappings in the sequence item also require explicit braces and brackets.

sequence:
  - {
       key: [sequence, must, have, square, bracket],
       between_keys: {must: [have, commas, and, braces]}
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant