Skip to content

[docs] Document resource attach name resolution in VS Code extension - #2121

Closed
aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-21416-43083221016-1-43695574c1143e2f
Closed

aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-21416-43083221016-1-43695574c1143e2f

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21416

Author: @adamint

Targeting release/17.0 — the latest release branch on microsoft/aspire.dev — because release/17.1 (from the source PR milestone 17.1) does not exist there.

Why

The aspire_resource_debug attach 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

  • Updated (existing page): src/frontend/src/content/docs/get-started/aspire-vscode-extension.mdx — added "Attach to a resource by name" subsection.

Generated by PR Documentation Check for #21416 · copilot · auto · 27.5 AIC · ⌖ 1.16 AIC · ⊞ 7.4K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Nov 11, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #2121. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2121 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review November 13, 2026 14:53
Copilot AI balanced review requested due to automatic review settings November 13, 2026 14:53

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.

🟡 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.
@ellahathaway

Copy link
Copy Markdown
Contributor

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.

Adam Ratzman (adamint) added a commit that referenced this pull request Nov 16, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants