-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathIProjectWizardContext.ts
More file actions
45 lines (36 loc) · 1.8 KB
/
IProjectWizardContext.ts
File metadata and controls
45 lines (36 loc) · 1.8 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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { type IActionContext } from "@microsoft/vscode-azext-utils";
import { type Uri, type WorkspaceFolder } from "vscode";
import { type FuncVersion } from "../../FuncVersion";
import { type McpProjectType, type ProjectLanguage } from "../../constants";
import { type TemplateSchemaVersion } from "../../templates/TemplateProviderBase";
import { type cliFeedUtils } from "../../utils/cliFeedUtils";
export interface IProjectWizardContext extends IActionContext {
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;
// Didn't want `mcpProjectType` on `IProjectWizardContext` but all projects can have mcp extension triggers
mcpProjectType?: McpProjectType;
}
export interface MCPProjectWizardContext extends IProjectWizardContext {
serverLanguage?: ProjectLanguage;
includeSnippets?: boolean;
sampleMcpRepoUrl?: string;
sampleToolFilePath?: string;
}
export type OpenBehavior = 'AddToWorkspace' | 'OpenInNewWindow' | 'OpenInCurrentWindow' | 'AlreadyOpen' | 'DontOpen';