theia-ide / yangster

Yangster is a YANG IDE based on Theia
Apache License 2.0
42 stars 17 forks source link

Type shows as null for referenced types #66

Closed andreasjakobik closed 6 years ago

andreasjakobik commented 6 years ago

Hi,

Seems referenced types are not looked up properly.

Consider Yang

import ietf-yang-types {
    prefix yang;
}

... leaf time { type yang:date-and-time; } ...

The diagram will show "null" as type for the leaf, see attached picture.

image

Thanks, Andreas

JanKoehnlein commented 6 years ago

Fixed by https://github.com/theia-ide/yang-lsp/commit/7973d24479194ab028ef9f1cb6702eea43d9cd4c