-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Introduce 'window.withProgress' API endpoint #2979
Conversation
746b8d1
to
963e725
Compare
@AlexTugarev please review core and messages extensions |
963e725
to
ea443a6
Compare
I'm going to review and test this PR today. |
we need to synchronize this feature with https://github.com/theia-ide/theia/pull/2461/files somehow. it looks competing at first appearance, but I think there are different use cases in mind. |
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.
I reviewed core/message parts, and would like to do a next iteration. Currently I don't see this working. There is no caller in FE, and jsonrpc won't work. Proposal for changes to the API of MessageService
coming next...
@vinokurig, could your try with a different progress API in the core? In the end it should also work for progress reports from BE. Maybe something as simple as this: // an alternative to `newProgress` could be a token factory as function
newProgress(): Promise<ProgressToken> {
return Promise.resolve({ id: 'GENERATED-UUID' });
}
reportProgress(progress: ProgressToken, update: ProgressUpdate): Promise<void> {
return this.client.reportProgress(progress, update);
}
interface ProgressToken {
id: string;
}
interface ProgressUpdate {
value: string;
requestCancellation: boolean;
} |
@AlexTugarev Thank you for your feedback, I am going on vocation, so I will follow it in 3 weeks. |
ec83eed
to
30d07ae
Compare
@AlexTugarev Fixed all your comments, could you please take a look |
1d64396
to
bdec94d
Compare
hello @AlexTugarev did you were able to review this PR ? |
@benoitf, I'll provide a sample for the core part as mentioned previously. The current implementation won't work for the BE case, as callbacks cannot be passed via jsonrpc. Just synchronized with @vinokurig via PM on this. |
@AlexTugarev So what will be the next step?, Is it ready for merge now? |
3e22837
to
38b7606
Compare
@AlexTugarev Could you please review my last changes |
LGTM! @vinokurig, please squash the commits. Let's wait for CI builds. |
da38db4
to
e220094
Compare
@AlexTugarev looks like all CI builds have passed successfully, can we merge it? |
30b28b5
to
42512e7
Compare
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.
LGTM!
ac4f93e
to
744f9de
Compare
fca0eee
to
b064df5
Compare
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
b064df5
to
85cd481
Compare
fixes #2802 Introduce 'window.withProgress' API endpoint
This is needed to run vsCode Kubernetes plugin in Theia. The plugin calls
window.withProgress
method