Skip to content

Surface deploy, publish, and pipeline actions in Aspire pane - #19466

Merged
Adam Ratzman (adamint) merged 43 commits into
microsoft:mainfrom
SankeerthNara:deploy-publish-pipeline-actions
Aug 21, 2026
Merged

Adam Ratzman (adamint) merged 43 commits into
microsoft:mainfrom
SankeerthNara:deploy-publish-pipeline-actions

Conversation

@SankeerthNara

Copy link
Copy Markdown
Contributor

Description

The extension already supports deploy, publish, and do (pipeline steps) through command-palette commands and Aspire debug configurations, but these entry points were fragmented — the Aspire pane is the primary place to discover AppHosts and invoke runtime actions, yet an AppHost item didn't expose its deployment and pipeline operations. Users had to already know which command to search for, have the relevant source open, or create a dedicated launch configuration.

This PR adds Deploy, Publish, Run pipeline step, and Debug pipeline step actions directly to AppHost items in the Aspire pane:

  • Four new action rows under the idle WorkspaceAppHostItem node, mirroring the existing Run/Debug pattern.
  • Matching view/item/context right-click menu entries on both idle and running AppHost tree items (appHost, workspaceResources:hasAppHost, workspaceAppHost).
  • Delegates execution to the existing AppHostLaunchService.launch() and reuses its per-path locking, so a second operation against the same AppHost is safely rejected rather than needing new concurrency logic.
  • Pipeline-step resolution is extracted out of commands/do.ts into a shared utils/pipelineStep.ts helper, reused by the new tree actions. It gates interactive step prompting on the CLI's pipelines capability via ConfigInfoProvider: newer CLIs get prompted by their own interaction service, older CLIs fall back to a local showInputBox, matching the existing do command's behavior.
  • No new target-specific UI/forms — target, parameter, secret, and pipeline-step inputs continue to flow through the existing interaction service.

Fixes #19407

Checklist

  • Is this feature complete?

    • Yes. Ready to ship.
    • No. Follow-up changes expected.

    The core discoverability gap from the issue is closed (deploy/publish/pipeline-step actions are now reachable from the AppHost tree item), but a few items from the issue's "workflow should" list could use follow-up polish: durable progress/output with a direct link to logs, and explicit cancellation UX for these specific actions haven't been separately verified beyond what AppHostLaunchService already provides for run/debug. Deploy and Publish also aren't currently gated by CLI capability detection, since no capability token exists for them yet (matching the existing command-palette behavior) — worth a maintainer call on whether that's in scope here or a separate CLI-side change.

  • Are you including unit tests for the changes and scenario tests if relevant?

    • Yes

    Added unit tests in test/appHostTreeView.test.ts covering all four new tree-provider methods (delegation to launch() with correct args, the missing-path warning, capability-gated step prompting both ways, and cancellation on prompt dismissal), plus an E2E test in test-e2e/treeActions.e2e.test.ts verifying the action rows are discoverable in the pane and route through the real debug-launch event stream.

  • Did you add public API?

    • Yes
    • No

    Only internal VS Code commands and tree-item wiring; no changes to the extension's exported API surface.

  • Does the change make any security assumptions or guarantees?

    • Yes
    • No

    Reuses the existing AppHostLaunchService/Aspire CLI execution path unchanged; no new process execution or privilege surface introduced.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19466

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19466"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds additional AppHost actions to the Aspire tree (deploy/publish/pipeline-step) and routes them through the common launch service flow, while also refactoring pipeline-step prompting into a shared utility and adjusting E2E plumbing.

Changes:

  • Added new AppHost tree actions (Deploy/Publish/Run pipeline step/Debug pipeline step) with command + icon mappings.
  • Implemented new tree-provider handlers that delegate deploy/publish/do actions to AppHostLaunchService, with pipeline-step selection via a new helper.
  • Simplified/removes parts of the E2E bridge and CLI-target plumbing, plus corresponding unit/E2E test updates.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
extension/src/views/treeItems/appHostItems.ts Adds new action types and centralizes labels/icons/command IDs for AppHost action rows.
extension/src/views/AspireAppHostTreeProvider.ts Surfaces new actions in tree and implements handlers via a shared _launchAppHostAction.
extension/src/utils/pipelineStep.ts Introduces shared pipeline-step resolution logic with capability detection + fallback prompt.
extension/src/types/extensionApi.ts Updates E2E control command surface to include new tree-action commands; removes some older fields/commands.
extension/src/testing/e2eStateFileBridge.ts Updates E2E control handling and adds new tree-action commands; removes run scoping and other helpers.
extension/src/test/appHostTreeView.test.ts Adds unit tests for new tree actions and updates terminal-command expectations.
extension/src/test-e2e/treeActions.e2e.test.ts Adds E2E coverage ensuring new tree actions are discoverable and routed through launch service.
extension/src/test-e2e/packageSurface.e2e.test.ts Updates expected command IDs and activation events to match new/removed commands and capabilities.
extension/src/loc/strings.ts Adds localized labels for new AppHost actions; removes some older strings.
extension/src/commands/do.ts Refactors pipeline-step resolution to shared helper and simplifies command signature.
extension/src/activation/registerTreeViewCommands.ts Registers tree-view commands for new AppHost actions.
extension/package.nls.json Adds command titles and adjusts configuration text.
extension/package.json Declares new commands and contributes them to menus; updates configuration and dependencies.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread extension/src/utils/pipelineStep.ts Resolved
Comment thread extension/package.json Resolved
Comment thread extension/src/loc/strings.ts Resolved
Comment thread extension/src/commands/do.ts Resolved
Adam Ratzman (adamint) and others added 4 commits August 18, 2026 11:15
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Adam Ratzman (adamint) and others added 2 commits August 18, 2026 12:30
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Four additional correctness and completeness issues found beyond the existing review threads.

Comment thread extension/package.json Resolved
Adam Ratzman (adamint) and others added 3 commits August 18, 2026 14:29
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 8935fec2-aca6-4c4e-ae9a-3b724b1a2596
Copilot AI review requested due to automatic review settings August 19, 2026 00:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

  • Files reviewed: 32/32 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread extension/package.nls.json Resolved
Copilot AI review requested due to automatic review settings August 19, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review details

Files not reviewed (1)
  • src/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated file
  • Files reviewed: 76/78 changed files
  • Comments generated: 2
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

Adam Ratzman (adamint) and others added 15 commits August 21, 2026 00:13
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27

# Conflicts:
#	extension/loc/xlf/aspire-vscode.xlf
#	extension/src/debugger/AspireDebugConfigurationProvider.ts
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: fdc5c110-5785-476a-be70-23ce50515d27

@adamint Adam Ratzman (adamint) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The graceful-degradation paths are covered, the review threads are resolved, and the full CI rerun is green. I also verified the extension E2E cache fix without launching another E2E run.

@adamint
Adam Ratzman (adamint) merged commit baa978b into microsoft:main Aug 21, 2026
754 of 758 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.6 milestone Aug 21, 2026
Ella Hathaway (ellahathaway) added a commit to microsoft/aspire.dev that referenced this pull request Sep 25, 2026
…Aspire pane (#1750)

## Summary

<!-- Describe what this pull request changes and why. -->

Publish the VS Code extension documentation started by [PR Documentation
Check run
36066282711](https://github.com/microsoft/aspire/actions/runs/36066282711)
for microsoft/aspire#19466. The workflow generated the change but failed
before creating its draft PR.

Document **Deploy AppHost**, **Publish AppHost**, **Run pipeline step**,
and **Debug pipeline step** in the Aspire view, including the step
prompt and waiting for the current operation to finish. The paragraph
uses direct instructions consistent with the rest of the extension
guide.

---------

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VS Code] Surface deploy, publish, and pipeline actions in the Aspire pane

4 participants