TypeFox / yang-lsp

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

Skip implicit Case segment when resolving XPaths #176

Closed spoenemann closed 4 years ago

spoenemann commented 4 years ago

Fixes #163. The following code

https://github.com/theia-ide/yang-lsp/blob/6c07988cbc287749feeec20f7838bd666c2803b7/yang-lsp/io.typefox.yang/src/main/java/io/typefox/yang/scoping/ScopeContextProvider.xtend#L544-L548

inserts an additional path segment for an implicit Case node. This segment must be skipped when resolving XPaths, like it is already done for explicit Cases.