diff --git a/extensions/github-authentication/src/github.ts b/extensions/github-authentication/src/github.ts index ee1a179a359..52865e6502e 100644 --- a/extensions/github-authentication/src/github.ts +++ b/extensions/github-authentication/src/github.ts @@ -180,6 +180,8 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid : userInfo?.accountName ?? '', id: session.account?.id ?? userInfo?.id ?? '' }, + // we set this to session.scopes to maintain the original order of the scopes requested + // by the extension that called getSession() scopes: session.scopes, accessToken: session.accessToken };