mirror of
https://github.com/microsoft/vscode.git
synced 2026-03-02 06:35:29 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user