Dependency injection with plugins

Hi there,
in my research about the usability of plugins in an customized Theia IDE we tried to use dependency injection with inversify in context of plugins. The scenario is pretty simple: We want to draw graphs based on data we collect in our extension. When our IDE is shipped with the graph-plugin it should be ready to use. Basically what we need is to inject a service/method from a plugin to update its content with data passed as parameter.

Until now we unfortunately are groping in the dark and maybe someone of you already faced the problem.

Thanks in advance!

[original thread by LouBen3010]

hello @louben3010 I don’t see any issue of using inversify inside your plug-in as it just need a start() and stop() entrypoint methods.
Following these steps should work: https://github.com/inversify/InversifyJS#step-4-resolve-dependencies

do you have some errors ?