Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler James Leonhardt <me@tylerleonhardt.com>2022-06-02 06:02:05 +0300
committerGitHub <noreply@github.com>2022-06-02 06:02:05 +0300
commit15253f1528573fc8f84e956b21af4bad57f38c07 (patch)
treef57d009ee19ea9915d5c42bd52d4de3498039898 /extensions
parent445d4aad1b0bf1e72f049a8d60a8791ff12336a2 (diff)
add a comment for session.scopes (#151050)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/github-authentication/src/github.ts2
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
};