Path: blob/main/extensions/copilot/src/platform/endpoint/common/domainService.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { createServiceIdentifier } from '../../../util/common/services';6import { Event } from '../../../util/vs/base/common/event';78export interface IDomainChangeEvent {9capiUrlChanged: boolean;10telemetryUrlChanged: boolean;11dotcomUrlChanged: boolean;12proxyUrlChanged: boolean;13}1415// This doesn't really have a great home, but this file talks about domains so seemed best16export const FEEDBACK_URL = 'https://aka.ms/microsoft/vscode-copilot-release';1718/**19* Very simple service used for dynamically setting the domains we use for API calls20* This allows better testing, SKU isolation, and Proxima21*/22export interface IDomainService {23readonly _serviceBrand: undefined;24readonly onDidChangeDomains: Event<IDomainChangeEvent>;25}26export const IDomainService = createServiceIdentifier<IDomainService>('IDomainService');272829