-
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] handle plugin host activation exceptions #8103
Conversation
this.pluginActivationPromises.get(plugin.model.id)!.reject(err); | ||
} | ||
const message = `Activating extension '${plugin.model.displayName || plugin.model.name}' failed: ${err.message}`; | ||
this.messageRegistryProxy.$showMessage(MainMessageType.Error, message, {}, []); |
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 was wondering maybe instead of using message service, we should have a special service then you can custoimize it in your product to completely stop the execution if some core extensions are failed, by default it will delegate to the notification center.
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 like this idea, but it feels like a separate PR to change architecture rather than this bug fix.
I'll consider as the approach for our situation if that's OK?
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.
ok
Signed-off-by: Rob Moran <rob.moran@arm.com>
code looks good, but I have to check 2 cases:
|
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 with How to test
from #7852 and it seems to work
Signed-off-by: Rob Moran rob.moran@arm.com
What it does
Resolves #8018
Added catch to plugin host to handle exceptions thrown while resolving dependencies in plugins.
How to test
Follow steps in #8018
Review checklist
Reminder for reviewers