Repository navigation
Surface deploy, publish, and pipeline actions in Aspire pane - #19466
Adam Ratzman (adamint) merged 43 commits into
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19466Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19466" |
There was a problem hiding this comment.
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.
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
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
Ella Hathaway (ellahathaway)
left a comment
There was a problem hiding this comment.
Four additional correctness and completeness issues found beyond the existing review threads.
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 App <[email protected]>
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
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
Adam Ratzman (adamint)
left a comment
There was a problem hiding this comment.
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.
baa978b
into
microsoft:main
…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]>
Description
The extension already supports
deploy,publish, anddo(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:
WorkspaceAppHostItemnode, mirroring the existing Run/Debug pattern.view/item/contextright-click menu entries on both idle and running AppHost tree items (appHost,workspaceResources:hasAppHost,workspaceAppHost).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.commands/do.tsinto a sharedutils/pipelineStep.tshelper, reused by the new tree actions. It gates interactive step prompting on the CLI'spipelinescapability viaConfigInfoProvider: newer CLIs get prompted by their own interaction service, older CLIs fall back to a localshowInputBox, matching the existingdocommand's behavior.Fixes #19407
Checklist
Is this feature complete?
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
AppHostLaunchServicealready provides forrun/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?
Added unit tests in
test/appHostTreeView.test.tscovering all four new tree-provider methods (delegation tolaunch()with correct args, the missing-path warning, capability-gated step prompting both ways, and cancellation on prompt dismissal), plus an E2E test intest-e2e/treeActions.e2e.test.tsverifying the action rows are discoverable in the pane and route through the real debug-launch event stream.Did you add public API?
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?
Reuses the existing
AppHostLaunchService/Aspire CLI execution path unchanged; no new process execution or privilege surface introduced.