vscode: fix ebusy error on windows
This commit is contained in:
@@ -27,8 +27,7 @@ export async function downloadFile(
|
|||||||
readBytes += chunk.length;
|
readBytes += chunk.length;
|
||||||
onProgress(readBytes, totalBytes);
|
onProgress(readBytes, totalBytes);
|
||||||
})
|
})
|
||||||
.on("end", resolve)
|
|
||||||
.on("error", reject)
|
.on("error", reject)
|
||||||
.pipe(fs.createWriteStream(destFilePath))
|
.pipe(fs.createWriteStream(destFilePath).on("close", resolve))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user