docs: Document extension framework debugging, env propagation, and error handling#6860
Draft
docs: Document extension framework debugging, env propagation, and error handling#6860
Conversation
… EnvironmentService Co-authored-by: kristenwomack <5034778+kristenwomack@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update documentation for new features in extension framework
docs: Update extension framework documentation for debugging, environment propagation, and error handling
Feb 24, 2026
Copilot
AI
changed the title
docs: Update extension framework documentation for debugging, environment propagation, and error handling
docs: Document extension framework debugging, env propagation, and error handling
Feb 24, 2026
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
extension-framework.mdwas missing documentation for several shipped features identified as pain points in real-world extension development (#6853).Changes
Debugging Extensions — New section covering:
AZD_EXT_DEBUG/AZD_EXT_TIMEOUTfor lifecycle/listen extensionsazdext.WaitForDebugger(ctx, azdClient)for custom extension commands; documentsErrDebuggerAbortedandcontext.Canceledreturn valuesInvoking Extension Commands — Replaces vague "additional env vars are set" with precise behavior split by execution path:
os.Environ()+AZD_SERVER,AZD_ACCESS_TOKEN,TRACEPARENT/TRACESTATE,FORCE_COLOR,COLUMNS--debug,--no-prompt,--cwd,-e) are not forwarded as env varsAZD_EXT_DEBUGandAZD_EXT_TIMEOUTwith defaultsEnvironmentService —
GetValues,GetValue,SetValue:env_name/nameis optional; omitting it resolves to the current/default environment (shipped in Make env_name optional in EnvironmentService gRPC methods #6733, undocumented until now)Structured Error Handling — New section on
azdext.ServiceError, and clarifying thatWrapError/UnwrapErrorare internal; extension authors return*azdext.ServiceErrorfrom provider methods and Azure SDKazcore.ResponseErrorvalues are auto-detectedTable of Contents — Updated to surface the new sections
💡 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.