Skip to content

Conversation

@motm32
Copy link
Contributor

@motm32 motm32 commented Dec 2, 2025

This PR includes a couple of changes:

  1. Edits to copilot prompts to extract subscription and activity log child items
  2. Edits to copilot user input to match up the picks based on label and subscription instead of the entire item (this makes the command run much faster)
  3. Wrapper to executeCommand so we can pass in additional context
  4. Add a run generic prompt step which preforms similarly to runQuickPickWizard but doesn't require the step to be a quick pick step.

Some of these changes are used in RG and others in the ACA extension.

}

function extractActivityChildren(context: string): string {
const activityLog = JSON.parse(context) as { children?: unknown };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably try/catch this just in case the shape is corrupted.

async (context: types.IActionContext) => {
let injectedContext: Partial<types.IActionContext> | undefined;
if (args.length > 0) {
const metadata = args[args.length - 1];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just do a .find on the metadata instead of assuming that it'll always be at the end if the arg list? I think that'll make this command a little more resilient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants