1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Handle synchronous errors in onActivate

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti 2022-02-03 14:58:54 +02:00
parent 4f89f08a70
commit 95cef8bb3a

View File

@ -113,8 +113,8 @@ export class LensExtension {
}
@action
activate() {
return Promise.resolve(this.onActivate());
async activate(): Promise<void> {
return this.onActivate();
}
protected onActivate(): Promise<void> | void {