mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
Add learnMore proposed API to forceNewSession (#206588)
ref https://github.com/microsoft/vscode/issues/206587
This commit is contained in:
committed by
GitHub
parent
19ecb4b833
commit
be59ec51ee
@@ -286,6 +286,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
const authentication: typeof vscode.authentication = {
|
||||
getSession(providerId: string, scopes: readonly string[], options?: vscode.AuthenticationGetSessionOptions) {
|
||||
if (typeof options?.forceNewSession === 'object' && options.forceNewSession.learnMore) {
|
||||
checkProposedApiEnabled(extension, 'authLearnMore');
|
||||
}
|
||||
return extHostAuthentication.getSession(extension, providerId, scopes, options as any);
|
||||
},
|
||||
getSessions(providerId: string, scopes: readonly string[]) {
|
||||
|
||||
Reference in New Issue
Block a user