File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
extensions/github-authentication/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,9 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
171171 return sessions ;
172172 } ) ;
173173
174+ const supportedAuthorizationServers = ghesUri
175+ ? [ vscode . Uri . joinPath ( ghesUri , '/login/oauth' ) ]
176+ : [ vscode . Uri . parse ( 'https://github.com/login/oauth' ) ] ;
174177 this . _disposable = vscode . Disposable . from (
175178 this . _telemetryReporter ,
176179 vscode . authentication . registerAuthenticationProvider (
@@ -179,9 +182,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
179182 this ,
180183 {
181184 supportsMultipleAccounts : true ,
182- supportedAuthorizationServers : [
183- ghesUri ?? vscode . Uri . parse ( 'https://github.com/login/oauth' )
184- ]
185+ supportedAuthorizationServers
185186 }
186187 ) ,
187188 this . context . secrets . onDidChange ( ( ) => this . checkForUpdates ( ) )
You can’t perform that action at this time.
0 commit comments