mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
vscode: fix ebusy error on windows
This commit is contained in:
parent
f8d6d6f23b
commit
78ee964f7c
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue