-
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
plugin host not to crash on activation error and add messages #6097
Conversation
@amiramw Could you provide an extension please? |
@akosyakov here is an example for such problematic extension: https://github.com/amiramw/error-activate-vscode |
e932613
to
0ffc002
Compare
@akosyakov i believe i addressed all the comments. please review. |
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've tested that dart and flutter (dependent) still can be installed together and that failing activation of extension does not break loading of other extensions. @amiramw thank you for the work!
I think it completely fixes #6061 |
to notify the end user about plugin activation or loading errors Signed-off-by: Amiram Wingarten <amiram.wingarten@sap.com>
to notify the end user about plugin activation or loading errors
Signed-off-by: Amiram Wingarten amiram.wingarten@sap.com
What it does
Fixes a behavior such that exception on activatation method carshes plugin host without showing the exception anywhere which make it impossible to investigate without debugging the plugins.
Now such exception is catched, logged and message is showed to the end user.
Cover some of the issues raised in #6061
How to test
Create extension with activation event * and throw an exception on the activation method. Make sure that when loading it a proper message is printed to console and showed to the end user. Make sure that plugin host doesn't crash and that other plugins still work.
Review checklist
Reminder for reviewers