mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
Finalize getAccounts API (#224877)
Fixes https://github.com/microsoft/vscode/issues/152399
This commit is contained in:
committed by
GitHub
parent
85c100f652
commit
02b638ae27
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user