Add supportsMultipleAccounts to auth providers

This commit is contained in:
Rachel Macfarlane
2020-05-11 18:32:19 -07:00
parent 4a875e0d7c
commit cbb0b04d7d
4 changed files with 22 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.authentication.registerAuthenticationProvider({
id: 'github',
displayName: 'GitHub',
supportsMultipleAccounts: false,
onDidChangeSessions: onDidChangeSessions.event,
getSessions: () => Promise.resolve(loginService.sessions),
login: async (scopeList: string[]) => {