Skip to content

Commit 78ee964

Browse files
author
Veetaha
committed
vscode: fix ebusy error on windows
1 parent f8d6d6f commit 78ee964

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editors/code/src/installation/download_file.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export async function downloadFile(
2727
readBytes += chunk.length;
2828
onProgress(readBytes, totalBytes);
2929
})
30-
.on("end", resolve)
3130
.on("error", reject)
32-
.pipe(fs.createWriteStream(destFilePath))
31+
.pipe(fs.createWriteStream(destFilePath).on("close", resolve))
3332
);
3433
}

0 commit comments

Comments
 (0)