Fix getSessions for microsoft auth provider
This commit is contained in:
parent
eceff53351
commit
263d4b75e2
|
@ -303,7 +303,7 @@ export class AzureActiveDirectoryService {
|
|||
async getSessions(scopes: string[]): Promise<vscode.AuthenticationSession[]> {
|
||||
const orderedScopes = scopes.sort().join(' ');
|
||||
const matchingTokens = this._tokens.filter(token => token.scope === orderedScopes);
|
||||
return Promise.all(this._tokens.map(token => this.convertToSession(token)));
|
||||
return Promise.all(matchingTokens.map(token => this.convertToSession(token)));
|
||||
}
|
||||
|
||||
public async createSession(scope: string): Promise<vscode.AuthenticationSession> {
|
||||
|
|
Loading…
Reference in a new issue