azure-dev
azure-dev copied to clipboard
The prompt for environment name shows up twice (Windows, PowerShell 7)
Small but somewhat annoying
Repro steps
Do azd init -t todo-nodejs-mongo
Expected Should see the prompt for environment name just once
Actual After entering the environment name the prompt (and the chosen environment name) is shown again above the next prompt (for location).

Additional notes
azdcompiled from sources, commit 1b57d3da69dd51caffc77e4871adb4b32a10a2ef as of morning 8/5/2022- Powershell 7.2.5 on Windows 11 21H2 22000.795
- Screenshot from Windows Terminal app, but I have observed this inside VS Code terminal as well
Suspect this is due to https://github.com/AlecAivazis/survey/issues/368 (we use this library). I suspect that there is a windows specific bug that was introduced (the linked issue has a comment saying when it was introduced, but I have not confirmed)