From a068c2e805aa94dec4d496328461048cd664e705 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Wed, 1 Jun 2022 16:44:11 -0700 Subject: [PATCH] add a comment for session.scopes --- extensions/github-authentication/src/github.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/github-authentication/src/github.ts b/extensions/github-authentication/src/github.ts index ee1a179a3593b..52865e6502e1d 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 };