I am making a package with functionality which can be nicely visualized with GraphVis, so GraphVis is additional dependency that is not strictly required for the package itself.
I am looking how to provide user experience that if you work with it in IDE then you will have access to visualization “out of the box”
I was thinking to make an extension that depends on presence of VSCodeServer package, but then I need a following logic of package loading:
if VSCodeServer
require GraphVis
end
require OtherDeps
Note that if VSCodeServer is not available then GraphVis shall not be required too.
Is it possible to make such with Package Extensions or is there other way to achieve that?