Fix #105955, make sure auth provider registration completes when getSession is called

This commit is contained in:
Rachel Macfarlane
2020-09-02 11:51:35 -07:00
parent 355fbca8b2
commit 8eb9cdaba9
2 changed files with 35 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ export async function activate(context: vscode.ExtensionContext) {
return loginService.manuallyProvideToken();
}));
vscode.authentication.registerAuthenticationProvider({
context.subscriptions.push(vscode.authentication.registerAuthenticationProvider({
id: 'github',
label: 'GitHub',
supportsMultipleAccounts: false,
@@ -70,7 +70,7 @@ export async function activate(context: vscode.ExtensionContext) {
throw e;
}
}
});
}));
return;
}