-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathMockIProjectWizardContext.ts
More file actions
45 lines (37 loc) · 1.62 KB
/
MockIProjectWizardContext.ts
File metadata and controls
45 lines (37 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* eslint-disable no-restricted-imports */
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { type TestUserInput } from "@microsoft/vscode-azext-dev";
import { type Uri, type WorkspaceFolder } from "vscode";
import { type FuncVersion, type TemplateSchemaVersion } from "../extension.bundle";
import { type OpenBehavior } from "../src/commands/createNewProject/IProjectWizardContext";
import { type ProjectLanguage } from "../src/constants";
import { type cliFeedUtils } from "../src/utils/cliFeedUtils";
export interface MockIProjectWizardContext {
projectPath: string;
workspacePath: string;
workspaceFolder: WorkspaceFolder | undefined;
language?: ProjectLanguage;
languageModel?: number;
languageFilter?: RegExp;
version: FuncVersion;
templateSchemaVersion?: TemplateSchemaVersion;
projectTemplateKey: string | undefined;
workerRuntime?: cliFeedUtils.IWorkerRuntime;
openBehavior?: OpenBehavior;
generateFromOpenAPI?: boolean;
openApiSpecificationFile?: Uri[];
targetFramework?: string | string[];
containerizedProject?: boolean;
telemetry: {
properties: { [key: string]: string | undefined; }
measurements: { [key: string]: number | undefined; }
};
errorHandling: {
issueProperties: {}
};
valuesToMask: string[];
ui: TestUserInput;
}