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.
Fixes #163 (the second case mentioned in https://github.com/theia-ide/yang-lsp/issues/163#issuecomment-597574695).
From RFC 7950:
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.