Skip to content
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-1096: Update to sprotty 0.14.0 #277

Merged
merged 1 commit into from
Aug 25, 2023
Merged

GLSP-1096: Update to sprotty 0.14.0 #277

merged 1 commit into from
Aug 25, 2023

Conversation

tortmayr
Copy link
Contributor

Update to sprotty 0.14.0 and adapt code to conform to latest changes/API breaks. With 0.14.0 the ToolManager API was deprecated and it will be removed in future versions. The intention is that this API moves to GLSP as it is only used there => refactor ToolManager API

Fixes eclipse-glsp/glsp#1096
Fixes eclipse-glsp/glsp#1094 (via sprotty update)

@planger
Copy link
Member

planger commented Aug 24, 2023

The code looks good, thank you!
However, I can't test this change. Maybe it is just me, but I think adaptations are missing for @eclipse-glsp/theia-integration after #274 as I get build errors in @eclipse-glsp/theia-integration:

@eclipse-glsp/theia-integration: src/browser/diagram/features/export/theia-export-svg-action-handler.ts(45,53): error TS2551: Property 'getSourceUri' does not exist on type 'EditorContextService'. Did you mean 'sourceUri'?
@eclipse-glsp/theia-integration: src/browser/diagram/glsp-diagram-widget.ts(22,5): error TS2305: Module '"@eclipse-glsp/client"' has no exported member 'configureServerActions'.
@eclipse-glsp/theia-integration: src/browser/diagram/glsp-diagram-widget.ts(187,21): error TS2339: Property 'connect' does not exist on type 'GLSPModelSource'.

Or is there something wrong with my setup?
Thank you!

tortmayr added a commit to eclipse-glsp/glsp-theia-integration that referenced this pull request Aug 25, 2023
Update Theia integration code to conform to latest client changes

Requires eclipse-glsp/glsp-client#277
@tortmayr
Copy link
Contributor Author

tortmayr commented Aug 25, 2023

The integration projects have not been updated to the latest client state yet.
I have now opened a PR for the Theia integration (eclipse-glsp/glsp-theia-integration#174).
The other projects are still pending. See also :eclipse-glsp/glsp#960

Update to sprotty 0.14.0 and adapt code to conform to latest changes/API breaks.
With 0.14.0 the `ToolManager API` was deprecated and it will be removed in future versions.
The intention is that this API moves to GLSP as it is only used there => refactor `ToolManager API`

GLSP-960: Make glspClient retrieval async

Fixes eclipse-glsp/glsp#1096
Fixes eclipse-glsp/glsp#1094
@tortmayr
Copy link
Contributor Author

@planger I rebased this PR on the latest master to resolve conflicts. Are there any open issues or can we go ahead and merge this?

@planger
Copy link
Member

planger commented Aug 25, 2023

I think I still can't test this unfortunately, because I get the same build errors as in eclipse-glsp/glsp-theia-integration#174 also with eclipse-glsp/glsp-theia-integration#174.

@tortmayr
Copy link
Contributor Author

tortmayr commented Aug 25, 2023 via email

Copy link
Member

@planger planger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sounds reasonable! This change itself looks good to me. Thanks!

@tortmayr tortmayr merged commit 8fb13fd into master Aug 25, 2023
5 checks passed
@tortmayr tortmayr deleted the issues/1096 branch August 25, 2023 21:48
tortmayr added a commit to eclipse-glsp/glsp-theia-integration that referenced this pull request Aug 26, 2023
Update Theia integration code to conform to latest client changes

Requires eclipse-glsp/glsp-client#277
tortmayr added a commit to eclipse-glsp/glsp-theia-integration that referenced this pull request Aug 26, 2023
Update Theia integration code to conform to latest client changes

Requires eclipse-glsp/glsp-client#277
tortmayr added a commit to eclipse-glsp/glsp-theia-integration that referenced this pull request Aug 26, 2023
Update Theia integration code to conform to latest client changes

Requires eclipse-glsp/glsp-client#277
tortmayr added a commit to eclipse-glsp/glsp-theia-integration that referenced this pull request Aug 26, 2023
Update Theia integration code to conform to latest client changes

Requires eclipse-glsp/glsp-client#277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to sprotty 0.14.0 Command Palette in 1.1.0.RC10 - wrong position of suggestion list?
2 participants