2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { Event } from '../../../../base/common/event.js';
7
>
import { deriveGitHubEndpoints, gitHubCopilotResource, gitHubRepoResource } from '../../common/githubEndpoints.js';
8
>
import { IAgentHostGitHubEndpointService } from '../../node/agentHostGitHubEndpointService.js';
9
>
10
>
/**
11
>
* A static {@link IAgentHostGitHubEndpointService} for tests. Resolves the same
12
>
* endpoints as production for a given (optional) enterprise URI; `onDidChange`
13
>
* never fires.
14
>
*/
15
>
export function createTestGitHubEndpointService(enterpriseUri?: string): IAgentHostGitHubEndpointService {
16
const endpoints = deriveGitHubEndpoints(enterpriseUri);
17
return {