dotnet / dotnet/Scaffolding

Don't display "Initializing dotnet-scaffold" progress bar when waiting for user input after running dotnet scaffold the first time

Open
#3,292 1 comment 0 reactions 1 assignee Claimed by @haileymck View on GitHub
area-dotnet-scaffolding Triage-Approved
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

When you first run `dotnet scaffold`, you get a telemetry notice that you need to acknowledge by pressing a key to continue. But you also then get an "Initializing dotnet-scaffold" progress bar, suggesting that the tooling is busy working on something. I've more than once sat around waiting for dotnet scaffold to finish initializing, only to later realize that I needed to press a key to continue :laugh:. We should wait to display the "Initializing dotnet-scaffold" progress bar until *after* the user has pressed a key to acknowledge the telemetry notice.

Repro steps:
- Install the .NET SDK
- Install `dotnet scaffold`: `dotnet tool install -g microsoft.dotnet-scaffold`
- Run `dotnet scaffold`

Expected result: Telemetry notice is displayed without the "Initializing dotnet-scaffold" progress bar.
Actual result:

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.