diff --git a/extensions/github-authentication/src/github.ts b/extensions/github-authentication/src/github.ts index 6f576496b3d..563785b89af 100644 --- a/extensions/github-authentication/src/github.ts +++ b/extensions/github-authentication/src/github.ts @@ -67,7 +67,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid async getSessions(scopes?: string[]): Promise { return scopes - ? this._sessions.filter(session => arrayEquals(session.scopes, scopes)) + ? this._sessions.filter(session => arrayEquals([...session.scopes].sort(), scopes.sort())) : this._sessions; }