-
I have a question regarding the My scenario is a little bit complex:
My problem now is that when I send this final action from the server to the client with the method Before GLSP Version I used the method What could be the reason for this behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @rsoika. Regarding the Maybe you could share the source code so that we can have a a quick look otherwise it's not really possible to pinpoint the problem. |
Beta Was this translation helpful? Give feedback.
-
Just one other thing related to the strange behavior in my UIExtension: In my previous version (GLSP 1.x) my UIExtension also registered itself for the This was a result of an earlier discussion here And this action is now in GLSP 2.x also no longer working - means: my UIExtension never ever received an action with EnableToolPaletteAction.KIND . Neither in Theia nor in VSCode. This was the other discussion a few days ago. So at the moment I do not know how to initialize my UIExtension after the model was loaded. To me it looks like GLSP 2.x has some changes that effect my in my UIExtension in different ways.... |
Beta Was this translation helpful? Give feedback.
Hi @rsoika.
dispatchAfterNextUpdate
should be the right approach for you scenario. This ensures that the server sends the action after the model update has been sent to the client.Regarding the
dispatch
API nothing has changed anddispatchAfterNextUpdate
should work the same as in previous versions.We also use it in our base
GModelCreateNoteOperationHandler
to select the created node after the update.I quickly retested this and the behavior still works as expected.
Maybe you could share the source code so that we can have a a quick look otherwise it's not really possible to pinpoint the problem.