Path: blob/main/extensions/copilot/src/extension/intents/node/testIntent/testInfoStorage.ts
13405 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 { URI } from '../../../../util/vs/base/common/uri';7import { Range } from '../../../../vscodeTypes';8910export const ITestGenInfoStorage = createServiceIdentifier<ITestGenInfoStorage>('ITestGenInfoStorage');1112export interface ITestGenInfo {13uri: URI;14target: Range;15identifier: string | undefined;16}1718/**19* Global storage for test generation information that allows data flow between20* test gen entry points such as (context menu item and code action) and an inline chat that21* are created from those entry points.22*/23export interface ITestGenInfoStorage {24readonly _serviceBrand: undefined;2526sourceFileToTest: ITestGenInfo | undefined;27}2829export class TestGenInfoStorage implements ITestGenInfoStorage {30declare _serviceBrand: undefined;3132sourceFileToTest = undefined;33}343536