-
Notifications
You must be signed in to change notification settings - Fork 267
Add metadata capabilities and AZD_EXT_DEBUG support to extensions
#6541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
JeffreyCA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All changes applied in commit 4664a22: Version updates:
WaitForDebugger (#6542) added to:
Changelog entries simplified to "Add metadata capability" and "Add |
4c3d2b2 to
86e1276
Compare
AZD_EXT_DEBUG support to extensions
5c64495 to
1222de8
Compare
- Add metadata and framework service provider capabilities to init wizard - Update go.mod/go.sum
5786072 to
5af9b53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds metadata capabilities and debugger support across all Azure Dev CLI extensions. The changes enable better telemetry tracking through command path resolution and improved debugging workflows via the AZD_EXT_DEBUG environment variable.
Changes:
- Added
metadatacommand to all Go-based extensions to expose command structure for telemetry - Integrated
azdext.WaitForDebugger()support throughout extension commands for debugging withAZD_EXT_DEBUG=true - Updated
microsoft.azd.extensions(azd x) scaffolding to include metadata and framework service provider capabilities
Reviewed changes
Copilot reviewed 39 out of 43 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
microsoft.azd.extensions/internal/resources/languages/go/internal/cmd/metadata.go.tmpl |
New template for metadata command generation |
microsoft.azd.extensions/internal/resources/languages/go/internal/cmd/*.go.tmpl |
Added WaitForDebugger calls to command templates |
microsoft.azd.extensions/internal/resources/languages/go/internal/cmd/listen.go.tmpl |
Refactored to use ExtensionHost pattern |
microsoft.azd.extensions/internal/resources/languages/go/go.mod.tmpl |
Updated dependencies and Go version |
microsoft.azd.extensions/internal/cmd/*.go |
Added metadata command and WaitForDebugger to core commands |
microsoft.azd.extensions/internal/cmd/init.go |
Added metadata and framework service provider to capability wizard |
microsoft.azd.extensions/extension.yaml |
Added metadata capability declaration |
azure.coding-agent/*, azure.ai.finetune/*, azure.ai.agents/*, microsoft.azd.concurx/*, microsoft.azd.demo/* |
Applied metadata commands, WaitForDebugger support, and dependency updates across all extensions |
*.go.mod, *.go.sum |
Updated azure-dev dependency versions and transitive dependencies |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR adds metadata capability and
AZD_EXT_DEBUGdebugger support to all azd extensions. These enhancements enable better telemetry tracking (via command path resolution) and improved debugging workflows for extension developers.Changes
For Each Extension
metadatacommand to expose extension command structure for telemetry (captures full extension command path, see tracing: capture full extension command path using metadata capability #6528)azdext.WaitForDebugger()call to supportAZD_EXT_DEBUG=trueenvironment variable for debugging extensions (Addazdext.WaitForDebuggerto extensions for improved debugging #6542)For
microsoft.azd.extensions(azd x)azd x initwizardmetadatacommand,azdext.WaitForDebugger(), and ExtensionHost patternTesting
AZD_EXT_DEBUG=trueprompts for debugger attachmentOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.