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; }