mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +00:00
Merge #3092
3092: vscode: fix binary is not functional on windows r=matklad a=Veetaha This is my first approach to fix this error, need to double-check this on windows still... Fixes #3087 Fixes #3090 Co-authored-by: Veetaha <gerzoh1@gmail.com>
This commit is contained in:
commit
af9a9abbd8
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ export async function downloadFile(
|
||||||
readBytes += chunk.length;
|
readBytes += chunk.length;
|
||||||
onProgress(readBytes, totalBytes);
|
onProgress(readBytes, totalBytes);
|
||||||
})
|
})
|
||||||
.on("end", resolve)
|
|
||||||
.on("error", reject)
|
.on("error", reject)
|
||||||
.pipe(fs.createWriteStream(destFilePath))
|
.pipe(fs.createWriteStream(destFilePath).on("close", resolve))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue