mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
sort scopes on filter for getSessions in the github auth provider. Fixes https://github.com/github/codespaces/issues/3109
This commit is contained in:
parent
5a18461abb
commit
1d1b9961d7
|
@ -67,7 +67,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
|
|||
|
||||
async getSessions(scopes?: string[]): Promise<vscode.AuthenticationSession[]> {
|
||||
return scopes
|
||||
? this._sessions.filter(session => arrayEquals(session.scopes, scopes))
|
||||
? this._sessions.filter(session => arrayEquals([...session.scopes].sort(), scopes.sort()))
|
||||
: this._sessions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue