-
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
handle user cancellation for variables #11406
handle user cancellation for variables #11406
Conversation
Allow a variable to throw a cancellation error to notify the variable resolver that the resolution process should be aborted. Remove `checkAllResolved` option from `VariableResolveOptions`.
5580211
to
1ecf161
Compare
1ecf161
to
75e82fe
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.
@paul-marechal ,
it seems to work fine! 👍
As per the code, only a couple of cosmetics as inline comments!!
packages/variable-resolver/src/browser/variable-resolver-service.spec.ts
Outdated
Show resolved
Hide resolved
@jfaltermeier regarding your comment I agree that our current components lack something. I think we should address that as a follow-up. |
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 have tested as per instructions and it works fine 👍
The code LGTM !!
Allow a variable to throw a cancellation error to notify the variable
resolver that the resolution process should be aborted.
Remove
checkAllResolved
option fromVariableResolveOptions
.Closes: #11332
How to test
Download and build the following test project
https://github.com/alvsan09/hello_express
Open the project in theia
From the debug view launch the configuration
Attach to node process
,Launch the configuration
Launch Backend
Launch the configuration
Launch Frontend
Hello World
message.Review checklist
Reminder for reviewers