Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use yauzl instead of decompress for unzipping #15

Merged
merged 4 commits into from
Feb 21, 2020

Conversation

Charles-Gagnon
Copy link
Collaborator

This is an attempt to fix the issues seen where the extraction doesn't seem to actually be finished when the promise resolves.

There's an open issue in the repo indicating that we're not the only ones hitting this issue and since it's been years since it's been updated moving away from decompress seems prudent. kevva/decompress#62

Code adapted from VS Codes usage of the yauzl library : https://github.com/microsoft/vscode/blob/6ffa7d5887e60244169ef9699842ff276216be10/src/vs/base/node/zip.ts

Also added event for an entry being extracted from the zip for debugging/tracking purposes.

@anthonydresser
Copy link
Owner

You should test this in azuredatastudio fix (just replace the package.json entry with yours (or copy paste the code and overwrite what is there)).

@Charles-Gagnon
Copy link
Collaborator Author

Yeah - I've been running it manually and it works fine (tested both install-ssmsmin and install-sqltoolsservice)

@anthonydresser
Copy link
Owner

I'll merge and publish a new release

@anthonydresser anthonydresser merged commit c75cf3e into master Feb 21, 2020
@anthonydresser anthonydresser deleted the chgagnon/customZip branch February 21, 2020 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants