aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-08 19:25:03 +0000
committerVeetaha <[email protected]>2020-02-08 19:25:03 +0000
commitbdd88c2fad272f96a8212e5230010f7c02b4d15d (patch)
tree9a937ed5d6159ba325068dae4934d2a10a2b65ef /editors/code
parent9791b6a8de7149d97cdf9880d86bfc9e640c8297 (diff)
vscode: reduce throttle latency of downloadFile() progress callback for smoother UX
Diffstat (limited to 'editors/code')
-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 0cc5fc0cb..ec16dcd66 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(
13 destFilePath: fs.PathLike, 13 destFilePath: fs.PathLike,
14 onProgress: (readBytes: number, totalBytes: number) => void 14 onProgress: (readBytes: number, totalBytes: number) => void
15): Promise<void> { 15): Promise<void> {
16 onProgress = throttle(500, /* noTrailing: */ true, onProgress); 16 onProgress = throttle(200, /* noTrailing: */ true, onProgress);
17 17
18 const response = await fetch(url); 18 const response = await fetch(url);
19 19