mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 07:44:33 +01:00
333d9a4053
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
30 lines
1007 B
TypeScript
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 '';
|
|
}
|
|
}
|