-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLSP-1116 Revise model loading #211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me! 👍 Just a few minor doc suggestions inline.
plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/actions/RejectAction.java
Outdated
Show resolved
Hide resolved
...ipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/ModelSubmissionHandler.java
Outdated
Show resolved
Hide resolved
...ipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/ModelSubmissionHandler.java
Outdated
Show resolved
Hide resolved
...ipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/ModelSubmissionHandler.java
Outdated
Show resolved
Hide resolved
...ipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/ModelSubmissionHandler.java
Outdated
Show resolved
Hide resolved
@planger I have also added change for GLSP-1117 and GLSP-1071 to this PR. Since these are also changes that require updatse across all integration projects I would rather do this all in one go instead of having to create multiple PRs per repository. Could you please re-review? |
- Refactor `ModelSubmissionHandler` to support proper handling of the `RequestModelAction` as real request action - Add support for rejecting request actions Part-of: eclipse-glsp/glsp#1116 Part-of: eclipse-glsp/glsp#606
Refactor the base GLSP protocol to allow the client to tell the server which actions it is going to handle i.e. which actions should be forwarded to the client - Add `clientActions` array to `InitializeClientSessionParams`. This means the client now has to pass the action kinds it wants to handle as part of the initalize request - Refactor `ClientSessionManager` API directly use the `InitializeClientSessionParams` object for creating new sessions. This means that the `ClientSessionManager` can also access the generic `args` properties that might have been passed with the initialize request. - Replace `ClientActionHandler` with `ClientActionForwader` a separate component that is not part of the server-side action handlers. - Remove `configureClientActions` method from `DiagramModule` as the explicit configuration is no longer needed - Refactor `ClientIdModule` to `ClietnSessionModule` responsible for injection session specific configuration like the clientId and the clientActions Part of eclipse-glsp/glsp/issues/1117
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me! 👍
Also remove unused `ServerStatus` class Part of eclipse-glsp/glsp#1071
GLSP-1116 Revise model loading
ModelSubmissionHandler
to support proper handling of theRequestModelAction
as real request actionPart-of: Model initialization behavior is flaky glsp#1116
Part-of: Add server side support for rejecting actions glsp#606
GLSP-1117: Remove need for explicit definition of client actions
Refactor the base GLSP protocol to allow the client to tell the server which actions it is going to handle i.e. which actions should be forwarded to the client
clientActions
array toInitializeClientSessionParams
. This means the client now has to pass the action kinds it wants to handle as part of the initalize requestClientSessionManager
API directly use theInitializeClientSessionParams
object for creating new sessions. This means that theClientSessionManager
can also access the genericargs
properties that might have been passed with the initialize request.ClientActionHandler
withClientActionForwader
a separate component that is not part of the server-side action handlers.configureClientActions
method fromDiagramModule
as the explicit configuration is no longer neededClientIdModule
toClietnSessionModule
responsible for injection session specific configuration like the clientId and the clientActionsPart of eclipse-glsp/glsp/issues/1117
GLSP-1071: Rename ServerStatus/ServerMessage action
Also remove unused
ServerStatus
classPart of eclipse-glsp/glsp#1071