From bdd88c2fad272f96a8212e5230010f7c02b4d15d Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sat, 8 Feb 2020 21:25:03 +0200 Subject: vscode: reduce throttle latency of downloadFile() progress callback for smoother UX --- editors/code/src/installation/download_file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/src/installation') 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( destFilePath: fs.PathLike, onProgress: (readBytes: number, totalBytes: number) => void ): Promise { - onProgress = throttle(500, /* noTrailing: */ true, onProgress); + onProgress = throttle(200, /* noTrailing: */ true, onProgress); const response = await fetch(url); -- cgit v1.2.3