finalize forceNewSession API

This commit is contained in:
Tyler Leonhardt
2021-11-16 09:41:27 -08:00
parent 5109e2e12a
commit 297c52bd80
3 changed files with 25 additions and 31 deletions

View File

@@ -227,9 +227,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
const authentication: typeof vscode.authentication = {
getSession(providerId: string, scopes: readonly string[], options?: vscode.AuthenticationGetSessionOptions) {
if (options?.forceNewSession) {
checkProposedApiEnabled(extension, 'authSession');
}
return extHostAuthentication.getSession(extension, providerId, scopes, options as any);
},
// TODO: remove this after GHPR and Codespaces move off of it