Skip to content

Commit

Permalink
Add agent skill wrapping for down command (#3894)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored May 10, 2024
1 parent e4a70d0 commit 4a875e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ext/vscode/src/commands/down.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ import { isTreeViewModel, TreeViewModel } from '../utils/isTreeViewModel';
import { MessageItem } from 'vscode';
import { DialogResponses } from '@microsoft/vscode-azext-utils';

export async function down(context: IActionContext, selectedItem?: vscode.Uri | TreeViewModel): Promise<void> {
/**
* A tuple representing the arguments that must be passed to the `down` command when executed via {@link vscode.commands.executeCommand}
*/
export type DownCommandArguments = [ vscode.Uri | TreeViewModel | undefined, boolean? ];

export async function down(context: IActionContext, selectedItem?: vscode.Uri | TreeViewModel, fromAgent: boolean = false): Promise<void> {
context.telemetry.properties.fromAgent = fromAgent.toString();

const selectedFile = isTreeViewModel(selectedItem) ? selectedItem.unwrap<AzureDevCliApplication>().context.configurationFile : selectedItem;
const workingFolder = await getWorkingFolder(context, selectedFile);

Expand Down

0 comments on commit 4a875e2

Please sign in to comment.