Closed 32teeth closed 2 months ago
Woot 14/14 checks passed #firsttry
Thanks for all the intake comments.
I did observe there was an unused utility for something similar, will investigate on how to implement
As per the double cost. Absolutely, worth a look on how to reduce cost on the fs.stat
Ideally I can retrofit it to
Great feedback, thank you
Set to "draft" since this still has lots of work needed. Un-draft it when it's ready for review.
Closing for now
Problem
Sometimes it takes long for the
collectFiles
to exit with an error if more than 200MB, depending on number of filesSolution
getWorkspaceSize
return accumulated size in bytescollectFiles
to 'eject' faster that trying to collect and zip and use storage}
// collect files excerpt const collection = await getWorkspaceSize(sourcePaths, respectGitIgnore) for (const file of collection) { const relativePath = getWorkspaceRelativePath(file.fsPath, { workspaceFolders }) if (!relativePath) { continue }