diff options
author | Veetaha <[email protected]> | 2020-02-10 21:12:20 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-10 21:12:20 +0000 |
commit | 78ee964f7cb289d63be3a6d9573dc65b15c2fd2a (patch) | |
tree | 440807ebed2a8ac99960b9abafe414d041789350 /editors/code/src | |
parent | f8d6d6f23bfb15021be91031ba983da19f0d3ada (diff) |
vscode: fix ebusy error on windows
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/installation/download_file.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/installation/download_file.ts b/editors/code/src/installation/download_file.ts index b51602ef9..fe356c39d 100644 --- a/editors/code/src/installation/download_file.ts +++ b/editors/code/src/installation/download_file.ts | |||
@@ -27,8 +27,7 @@ export async function downloadFile( | |||
27 | readBytes += chunk.length; | 27 | readBytes += chunk.length; |
28 | onProgress(readBytes, totalBytes); | 28 | onProgress(readBytes, totalBytes); |
29 | }) | 29 | }) |
30 | .on("end", resolve) | ||
31 | .on("error", reject) | 30 | .on("error", reject) |
32 | .pipe(fs.createWriteStream(destFilePath)) | 31 | .pipe(fs.createWriteStream(destFilePath).on("close", resolve)) |
33 | ); | 32 | ); |
34 | } | 33 | } |