Finalize Auth Challenges caller API (#268006)

Fixes https://github.com/microsoft/vscode/issues/260156
This commit is contained in:
Tyler James Leonhardt
2025-09-23 10:21:21 -07:00
committed by GitHub
parent d9711f1a7c
commit b4c1eaa7c8
4 changed files with 61 additions and 132 deletions

View File

@@ -302,9 +302,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
const authentication: typeof vscode.authentication = {
getSession(providerId: string, scopesOrChallenge: readonly string[] | vscode.AuthenticationWwwAuthenticateRequest, options?: vscode.AuthenticationGetSessionOptions) {
if (!Array.isArray(scopesOrChallenge)) {
checkProposedApiEnabled(extension, 'authenticationChallenges');
}
if (
(typeof options?.forceNewSession === 'object' && options.forceNewSession.learnMore) ||
(typeof options?.createIfNone === 'object' && options.createIfNone.learnMore)