-
I'm currently implementing code completion for yaml-language-server with |
Beta Was this translation helpful? Give feedback.
Answered by
eemeli
Aug 2, 2021
Replies: 1 comment 1 reply
-
At least for now that's not directly available from a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eemeli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least for now that's not directly available from a
Node
, as they do not maintain parent links. If you have a reference for the node'sDocument
, then the easiest way to find the parent is almost certainly tovisit()
the doc, terminating the iteration when you find it.