Finalize getAccounts API (#224877)

Fixes https://github.com/microsoft/vscode/issues/152399
This commit is contained in:
Tyler James Leonhardt
2024-08-05 11:59:33 -07:00
committed by GitHub
parent 85c100f652
commit 02b638ae27
8 changed files with 38 additions and 88 deletions

View File

@@ -290,13 +290,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
if (typeof options?.forceNewSession === 'object' && options.forceNewSession.learnMore) {
checkProposedApiEnabled(extension, 'authLearnMore');
}
if (options?.account) {
checkProposedApiEnabled(extension, 'authGetSessions');
}
return extHostAuthentication.getSession(extension, providerId, scopes, options as any);
},
getAccounts(providerId: string) {
checkProposedApiEnabled(extension, 'authGetSessions');
return extHostAuthentication.getAccounts(providerId);
},
// TODO: remove this after GHPR and Codespaces move off of it