Skip to content

Remove timeout code now that immediate activation will wait on the local Ext Host #288501

@TylerLeonhardt

Description

@TylerLeonhardt

Followup from #260061

We can now remove the timeout here

private async getSessions(authProviderId: string): Promise<readonly AuthenticationSession[]> {
for (let attempt = 1; attempt <= 3; attempt++) {
try {
return await this.authenticationService.getSessions(authProviderId, undefined, undefined, true);
} catch (error) {
this.logService.warn(`[DefaultAccount] Attempt ${attempt} to get sessions failed:`, getErrorMessage(error));
if (attempt === 3) {
throw error;
}
await timeout(500);
}
}
throw new Error('Unable to get sessions after multiple attempts');
}

Metadata

Metadata

Labels

authenticationIssues with the Authentication platformdebtCode quality issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions