Skip to content

Commit 7bd2752

Browse files
committed
refactor: make activate function async
1 parent a002e1e commit 7bd2752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getIngListWebviewProvider } from '@/service/ing/ing-list-webview-provid
1010
import { setupUi } from '@/setup/setup-ui'
1111
import { LocalState } from '@/ctx/local-state'
1212

13-
export function activate(ctx: ExtensionContext) {
13+
export async function activate(ctx: ExtensionContext) {
1414
globalCtx.extCtx = ctx
1515

1616
// WRN: For old version compatibility, NEVER remove this line
@@ -28,7 +28,7 @@ export function activate(ctx: ExtensionContext) {
2828

2929
window.registerUriHandler(extUriHandler)
3030

31-
void AuthManager.updateAuthStatus()
31+
await AuthManager.updateAuthStatus()
3232

3333
setupUi(LocalState.getExtCfg())
3434

0 commit comments

Comments
 (0)