-
Notifications
You must be signed in to change notification settings - Fork 267
azd x init - ensure extension directory confirmation occurs before task list
#6578
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
azd x init - ensure extension directory confirmation occurs before task list
#6578
Conversation
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
This reverts commit 8a2a2b6.
azd x init - ensure extension directory confirmation occurs before task list
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 fixes a UX issue where the directory existence confirmation prompt in azd x init was being rendered underneath the task list, making it invisible and causing the command to hang while waiting for user input.
Changes:
- Move the existing-directory confirmation prompt to execute before the task list begins (lines 184-208)
- Add explicit validation to reject file collisions before prompting the user (line 186-187)
- Pass the current working directory as a parameter to avoid redundant calls
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
azd x initcould hang because the existing-directory confirmation prompt was rendered underneath the task list and remained waiting for input.This PR also fixes local registry setup to use the absolute filepath to prevent the current working directory from affecting
azd ext list,azd ext install, etc.Original prompt
azd x init- "The extension directory <dir> already exists." prompt disappears immediately #6577💡 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.