TypeFox / yang-lsp

A Language Server for YANG
http://www.yang-central.org
Apache License 2.0
51 stars 13 forks source link

Consider all context node descriptions for xpath resolution #173

Closed spoenemann closed 4 years ago

spoenemann commented 4 years ago

Fixes #163 (the second case mentioned in https://github.com/theia-ide/yang-lsp/issues/163#issuecomment-597574695).

From RFC 7950:

The effect of a "uses" reference to a grouping is that the nodes defined by the grouping are copied into the current schema tree...

This requirement was not considered when resolving XPaths: only the local name of the context node was used, but relative paths may refer to the context induced by the uses reference.