Skip to content
Discussion options

You must be logged in to vote

You are right, not everything is exported from protocol. Especially the EditorContextService however is not actually protocol material as it heavily relies on the selection and other client-level services.

As far as I can tell, you need to avoid the @eclipse-glsp/client imports from the code where you call ReloadModelAction.create so the best option would be to ensure that the definition/creation of that action are not in the same file (or even package) as the handling of that action which requires the actual client imports. That is one of the reasons, we often split something into a protocol and have the handling somewhere else. Could you give that a try?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@david-pa
Comment options

@martin-fleck-at
Comment options

Answer selected by david-pa
@david-pa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants