diff options
Diffstat (limited to 'editors/code/src/installation')
-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 9d37eaa0e..8a0766c66 100644 --- a/editors/code/src/installation/download_file.ts +++ b/editors/code/src/installation/download_file.ts | |||
@@ -34,8 +34,7 @@ export async function downloadFile( | |||
34 | readBytes += chunk.length; | 34 | readBytes += chunk.length; |
35 | onProgress(readBytes, totalBytes); | 35 | onProgress(readBytes, totalBytes); |
36 | }) | 36 | }) |
37 | .on("end", resolve) | ||
38 | .on("error", reject) | 37 | .on("error", reject) |
39 | .pipe(fs.createWriteStream(destFilePath)) | 38 | .pipe(fs.createWriteStream(destFilePath).on("close", resolve)) |
40 | ); | 39 | ); |
41 | } | 40 | } |