Replies: 2 comments 10 replies
-
HI @csamarchi, if you want to bind a custom model state you have to override the protected bindModelState(): BindingTarget<ModelState> {
return { service: ModuleModelState };
} |
Beta Was this translation helpful? Give feedback.
-
Sorry, I'm afraid I can't follow. What exactly do you mean with
Each protected bindActionDispatcher(): BindingTarget<ActionDispatcher> {
return DefaultActionDispatcher;
} However, you can also return more complex protected bindModelState(): BindingTarget<ModelState> {
return { service: ModuleModelState };
} So intead of a class your return an object with |
Beta Was this translation helpful? Give feedback.
-
Hi again, when I launch my node server and GLSP VScode extension I get this error in the debug console:
(node:83544) UnhandledPromiseRejectionWarning: Error: No matching bindings found for serviceIdentifier: ModuleModelState
Meanwhile, the client extension endlessly stalls as shown below:
I have tried adding ModelState in my GModelDiagramModule file following this example like so and this does not solve it.
protected bindModuleModelState(): BindingTarget<ModelState> | undefined { return ModuleModelState; }
I was hoping someone could point me in the right direction or if you have any ideas.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions