From 95cef8bb3adafe179be54c3197aa15ec2f59a7bf Mon Sep 17 00:00:00 2001 From: Panu Horsmalahti Date: Thu, 3 Feb 2022 14:58:54 +0200 Subject: [PATCH] Handle synchronous errors in onActivate Signed-off-by: Panu Horsmalahti --- src/extensions/lens-extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/lens-extension.ts b/src/extensions/lens-extension.ts index 361bb3a803..4a20620938 100644 --- a/src/extensions/lens-extension.ts +++ b/src/extensions/lens-extension.ts @@ -113,8 +113,8 @@ export class LensExtension { } @action - activate() { - return Promise.resolve(this.onActivate()); + async activate(): Promise { + return this.onActivate(); } protected onActivate(): Promise | void {