Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/platform/endpoint/common/domainService.ts
13401 views
1
/*---------------------------------------------------------------------------------------------
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 { createServiceIdentifier } from '../../../util/common/services';
7
import { Event } from '../../../util/vs/base/common/event';
8
9
export interface IDomainChangeEvent {
10
capiUrlChanged: boolean;
11
telemetryUrlChanged: boolean;
12
dotcomUrlChanged: boolean;
13
proxyUrlChanged: boolean;
14
}
15
16
// This doesn't really have a great home, but this file talks about domains so seemed best
17
export const FEEDBACK_URL = 'https://aka.ms/microsoft/vscode-copilot-release';
18
19
/**
20
* Very simple service used for dynamically setting the domains we use for API calls
21
* This allows better testing, SKU isolation, and Proxima
22
*/
23
export interface IDomainService {
24
readonly _serviceBrand: undefined;
25
readonly onDidChangeDomains: Event<IDomainChangeEvent>;
26
}
27
export const IDomainService = createServiceIdentifier<IDomainService>('IDomainService');
28
29