mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
vscode: fix ebusy error on windows
This commit is contained in:
parent
f8d6d6f23b
commit
78ee964f7c
@ -27,8 +27,7 @@ export async function downloadFile(
|
||||
readBytes += chunk.length;
|
||||
onProgress(readBytes, totalBytes);
|
||||
})
|
||||
.on("end", resolve)
|
||||
.on("error", reject)
|
||||
.pipe(fs.createWriteStream(destFilePath))
|
||||
.pipe(fs.createWriteStream(destFilePath).on("close", resolve))
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user