mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
add proposed forceRecreate option on getSession. Related to #129064
This commit is contained in:
@@ -226,6 +226,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
const authentication: typeof vscode.authentication = {
|
||||
getSession(providerId: string, scopes: readonly string[], options?: vscode.AuthenticationGetSessionOptions) {
|
||||
if (options?.forceRecreate) {
|
||||
checkProposedApiEnabled(extension);
|
||||
}
|
||||
return extHostAuthentication.getSession(extension, providerId, scopes, options as any);
|
||||
},
|
||||
get onDidChangeSessions(): Event<vscode.AuthenticationSessionsChangeEvent> {
|
||||
|
||||
Reference in New Issue
Block a user