extensions/github-authentication/src/githubServer.ts/GitHubServer/constructor
class GitHubServer:	constructor(private readonly _supportDeviceCodeFlow: boolean, private readonly _logger: Log, private readonly _telemetryReporter: ExperimentationTelemetry) {
		this._disposable = vscode.window.registerUriHandler(this._uriHandler);

		this.getRedirectEndpoint = vscode.commands.executeCommand<{ [providerId: string]: string } | undefined>('workbench.getCodeExchangeProxyEndpoints').then((proxyEndpoints) => {
			// If we are running in insiders vscode.dev, then ensure we use the redirect route on that.
			let redirectUri = REDIRECT_URL_STABLE;
			if (proxyEndpoints?.github && new URL(proxyEndpoints.github).hostname === 'insiders.vscode.dev') {
				redirectUri = REDIRECT_URL_INSIDERS;
			}
			return redirectUri;
		});
	}