We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d6d6f commit 78ee964Copy full SHA for 78ee964
editors/code/src/installation/download_file.ts
@@ -27,8 +27,7 @@ export async function downloadFile(
27
readBytes += chunk.length;
28
onProgress(readBytes, totalBytes);
29
})
30
- .on("end", resolve)
31
.on("error", reject)
32
- .pipe(fs.createWriteStream(destFilePath))
+ .pipe(fs.createWriteStream(destFilePath).on("close", resolve))
33
);
34
}
0 commit comments