-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdeployWithCopilot.ts
More file actions
15 lines (13 loc) · 959 Bytes
/
deployWithCopilot.ts
File metadata and controls
15 lines (13 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { CopilotUserInput, type IActionContext } from "@microsoft/vscode-azext-utils";
import * as vscode from 'vscode';
import { type ContainerAppItem } from "../../tree/ContainerAppItem";
import { SharedState } from "../../webviews/OpenConfirmationViewStep";
import { deployContainerApp } from "../deployContainerApp/deployContainerApp";
export async function deployWithCopilot(context: IActionContext, node: ContainerAppItem): Promise<void> {
context.ui = new CopilotUserInput(vscode, JSON.stringify(node.viewProperties), () => SharedState.currentPanel);
await deployContainerApp(context, node);
}