Repository navigation
[docs] Document resource attach name resolution in VS Code extension - #2121
aspire-repo-bot[bot] wants to merge 1 commit into
Conversation
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
There was a problem hiding this comment.
🟡 Changes recommended
The documentation needs to clarify that partial resource-name matching requires an extension build containing microsoft/aspire#21416, while earlier builds require the exact, case-sensitive runtime name.
1 open issue
What changed in this PR
Documents resource-name resolution introduced by microsoft/aspire#21416 in the existing VS Code extension guide.
Changes:
- Explains case-insensitive runtime-name and display-name matching, precedence, and ambiguity handling.
- Adds a JSON example for attaching to a resource by display name.
- Describes how aliases resolve to runtime names to prevent competing debugger sessions.
| File | Description |
|---|---|
src/frontend/src/content/docs/get-started/aspire-vscode-extension.mdx |
Adds the “Attach to a resource by name” subsection. |
Review effort: Balanced
|
|
||
| ### Attach to a resource by name | ||
|
|
||
| The `aspire_resource_debug` tool can attach the editor's debugger to a running resource. Its `resourceName` input accepts either the resource's runtime name (for example, `api-<generated suffix>`) or its display name (for example, `api`). Matching is case-insensitive, so `API` also resolves. A runtime-name match takes precedence; otherwise, a display name is accepted only when it identifies exactly one resource. If a display name matches more than one resource, the request is rejected instead of choosing one, so use the runtime name. |
|
Closing in favor of #2150, which documents the full set of VS Code language model tools. The display-name resolution detail isn't needed for users. |
## Summary The VS Code extension page listed only `aspire_apphost_start` and `aspire_apphost_stop`, but Aspire 17.0 ships nine language model tools. This updates the tool table in **Let coding agents use editor tools** (renamed from "Let coding agents start and stop AppHosts") to include: - `aspire_resource_debug` (microsoft/aspire#18602) - `aspire_debug_session_status`, `aspire_list_debug_sessions`, `aspire_explain_launch_failure`, `aspire_hot_reload_status`, `aspire_open_dashboard`, `aspire_open_output` (microsoft/aspire#19414) It also corrects which tools request confirmation (start, stop, resource debug, and Output), adds a resource debug prompt example, and updates the cross-link and summary in `ai-coding-agents.mdx`. Tool names, chat references, and behavior were verified against `extension/package.json`, `package.nls.json`, and `extension/src/lm/editorAssistanceToolAdapters.ts` on microsoft/aspire `release/17.0`. Supersedes #2121. ## Third-party links and affiliations None ## Validation - Verified the renamed anchor `#let-coding-agents-use-editor-tools` has no remaining references to the old anchor in `src/frontend`. - Did not run a local build (per repo guidance); relying on CI. --------- Co-authored-by: Copilot App <[email protected]> Co-authored-by: Adam Ratzman <[email protected]>

Documents changes from microsoft/aspire#21416
Author:
@adamintTargeting
release/17.0— the latest release branch onmicrosoft/aspire.dev— becauserelease/17.1(from the source PR milestone17.1) does not exist there.Why
The
aspire_resource_debugattach strategy now resolves display names (e.g.api) as well as runtime names, case-insensitively, and rejects ambiguous matches. The tool wasn't documented, and the PR body includes a user-facing usage example.Triggered signals:
pr_body_has_user_facing_section,pr_body_has_cli_flag_mention.Changes
src/frontend/src/content/docs/get-started/aspire-vscode-extension.mdx— added "Attach to a resource by name" subsection.