mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Don't block other extensions from loading if one activation fails (#4805)
* Don't block other extensions from loading if one activation fails. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Handle synchronous errors in onActivate Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Keep extensions that can't be activated in this.intances Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Return extensions that failed to be activated from loadExtensions to match old behavior. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Simplify style. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Simplify object. Remove unnecessary action. Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
9b9b8e0d05
commit
e626cc91d4
2 files changed
+13
-8
No files matched your search
@@ -112,8 +112,7 @@ export class LensExtension {
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
activate() {
|
||||
async activate(): Promise<void> {
|
||||
return this.onActivate();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user