mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-09 18:02:48 +00:00
vscode: reduce throttle latency of downloadFile() progress callback for smoother UX
This commit is contained in:
parent
9791b6a8de
commit
bdd88c2fad
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue