Files
vscode/extensions/copilot/src/platform/simulationTestContext/common/simulationTestContext.ts
T
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00

30 lines
1007 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { createServiceIdentifier } from '../../../util/common/services';
export const ISimulationTestContext = createServiceIdentifier<ISimulationTestContext>('ISimulationTestContext');
export interface ISimulationTestContext {
_serviceBrand: undefined;
readonly isInSimulationTests: boolean;
writeFile(filename: string, contents: Uint8Array | string, tag: string): Promise<string>;
}
export class NulSimulationTestContext implements ISimulationTestContext {
_serviceBrand: undefined;
readonly isInSimulationTests = false;
async writeFile(filename: string, contents: Uint8Array | string, tag: string): Promise<string> {
return '';
}
}