Skip to content

Commit

Permalink
fix: only show downloading message on first data event
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Jan 20, 2022
1 parent c610d29 commit b50ca0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class ConsoleReporter implements ProgressReporter {
console.log(`Downloading VS Code ${this.version} from ${report.url}`)
break;
case ProgressReportStage.Downloading:
if (!this.showDownloadProgress) {
if (!this.showDownloadProgress && report.bytesSoFar === 0) {
console.log(`Downloading VS Code (${report.totalBytes}B)`);
} else if (!this.downloadReport) {
this.downloadReport = { timeout: setTimeout(() => this.reportDownload(), 100), report };
Expand Down

0 comments on commit b50ca0a

Please sign in to comment.