rename forceRecreate to forceNewSession and allow it to take in a detail

This commit is contained in:
Tyler Leonhardt
2021-08-03 16:20:56 -07:00
parent eede0a5b71
commit c935e2292f
6 changed files with 21 additions and 17 deletions

View File

@@ -226,7 +226,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
const authentication: typeof vscode.authentication = {
getSession(providerId: string, scopes: readonly string[], options?: vscode.AuthenticationGetSessionOptions) {
if (options?.forceRecreate) {
if (options?.forceNewSession) {
checkProposedApiEnabled(extension);
}
return extHostAuthentication.getSession(extension, providerId, scopes, options as any);