From a26248659664e4b416869c831cdbe9dfa11ef798 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 17 Jul 2025 00:02:14 +0200 Subject: [PATCH] also emite attempted when no sessions --- extensions/vscode/src/stubs/WorkOsAuthProvider.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts index cfd24739a..fef0e4ba7 100644 --- a/extensions/vscode/src/stubs/WorkOsAuthProvider.ts +++ b/extensions/vscode/src/stubs/WorkOsAuthProvider.ts @@ -206,9 +206,12 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable { } } + // It is important that every path in this function emits the attempted event + // As config loading in core will be locked until refresh is attempted private async _refreshSessions(): Promise { const sessions = await this.getSessions(); if (!sessions.length) { + this.attemptEmitter.emit("attempted"); return; }