about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <gerzoh1@gmail.com>2020-02-08 21:25:03 +0200
committerVeetaha <gerzoh1@gmail.com>2020-02-08 21:25:03 +0200
commitbdd88c2fad272f96a8212e5230010f7c02b4d15d (patch)
tree9a937ed5d6159ba325068dae4934d2a10a2b65ef /editors/code/src
parent9791b6a8de7149d97cdf9880d86bfc9e640c8297 (diff)
downloadrust-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.ts2
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);