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:
parent
4f89f08a70
commit
95cef8bb3a
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user