TypeFox / yang-lsp

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

Support for absolute paths exclusion #232

Closed esmasth closed 4 months ago

esmasth commented 5 months ago

Currently excludePath only supports relative paths, and it is seemingly presumed that yangPath is always provisioned with a directory which does not contain unwanted duplicates.

It would be very helpful for our use case, if there is support added for excludePath with absolute paths as well as it is ensured that if an excludePath is a subdirectory of any of yangPath directories then it is removed from the indexing.

Alternatively, an additional variable is introduced e.g., yangPathIgnore, which is used to ignore (sub)directories out of what's provided via yangPath

esmasth commented 4 months ago

240 addressed this issue