-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, It is hard to know for sure without having the entire code in front of me, but it looks like you are trying to inject a class I think the closest example we have for your use case is this one:
With this mechanism you should be able to implement your use case. The button in your Theia extension would the simply trigger a Theia command, which is handled by a Theia I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi,
It is hard to know for sure without having the entire code in front of me, but it looks like you are trying to inject a class
RootSelectionManager
, which you bound in your GLSP dependency injection module (di.config.ts), into a class that lives in Theia.Please be aware that while both Theia and GLSP use inversify, their dependency injection containers are not the same. So values you bind in one are not available for injection in the other.
I think the closest example we have for your use case is this one: