diff options
| author | Veetaha <gerzoh1@gmail.com> | 2020-02-08 21:25:03 +0200 |
|---|---|---|
| committer | Veetaha <gerzoh1@gmail.com> | 2020-02-08 21:25:03 +0200 |
| commit | bdd88c2fad272f96a8212e5230010f7c02b4d15d (patch) | |
| tree | 9a937ed5d6159ba325068dae4934d2a10a2b65ef /editors/code/src | |
| parent | 9791b6a8de7149d97cdf9880d86bfc9e640c8297 (diff) | |
| download | rust-bdd88c2fad272f96a8212e5230010f7c02b4d15d.tar.gz rust-bdd88c2fad272f96a8212e5230010f7c02b4d15d.zip | |
vscode: reduce throttle latency of downloadFile() progress callback for smoother UX
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/installation/download_file.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/installation/download_file.ts b/editors/code/src/installation/download_file.ts index 0cc5fc0cb2c..ec16dcd66bd 100644 --- a/editors/code/src/installation/download_file.ts +++ b/editors/code/src/installation/download_file.ts @@ -13,7 +13,7 @@ export async function downloadFile( destFilePath: fs.PathLike, onProgress: (readBytes: number, totalBytes: number) => void ): Promise<void> { - onProgress = throttle(500, /* noTrailing: */ true, onProgress); + onProgress = throttle(200, /* noTrailing: */ true, onProgress); const response = await fetch(url); |
