Skip to content

Commit

Permalink
vscode: fix ebusy error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Feb 10, 2020
1 parent f8d6d6f commit 78ee964
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editors/code/src/installation/download_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
);
}

0 comments on commit 78ee964

Please sign in to comment.