diff options
author | Tyler James Leonhardt <me@tylerleonhardt.com> | 2022-06-02 06:02:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 06:02:05 +0300 |
commit | 15253f1528573fc8f84e956b21af4bad57f38c07 (patch) | |
tree | f57d009ee19ea9915d5c42bd52d4de3498039898 | |
parent | 445d4aad1b0bf1e72f049a8d60a8791ff12336a2 (diff) |
add a comment for session.scopes (#151050)
-rw-r--r-- | extensions/github-authentication/src/github.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 ?? '<unknown>', id: session.account?.id ?? userInfo?.id ?? '<unknown>' }, + // 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 }; |