-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(vsix): added vsix archives to http backend #8306
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -735,6 +735,7 @@ impl TarFormat { | |
| "bz2" | "tbz2" => TarFormat::TarBz2, | ||
| "zst" | "tzst" => TarFormat::TarZst, | ||
| "zip" => TarFormat::Zip, | ||
| "vsix" => TarFormat::Zip, | ||
|
||
| "7z" => TarFormat::SevenZip, | ||
| _ => TarFormat::Raw, | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While adding
.vsixtofrom_extcorrectly enables extraction for the HTTP backend, this change appears to be incomplete as other parts of the codebase still use hardcoded extension lists for archive handling:is_archive_format(line 553 insrc/cli/generate/tool_stub.rs): This function needs to include.vsixso thatmise generate tool-stubcan correctly identify these files as archives and attempt to auto-detect the binary path within them.AssetPicker::score_build_penalties(line 356 insrc/backend/asset_matcher.rs): There is a -100 penalty explicitly for.vsixfiles. Now that they are supported as valid archives, this penalty should likely be removed or reduced so that.vsixassets can be correctly auto-detected when they are the primary distribution format for a tool.open_tar(line 898 insrc/file.rs): TheAutomatch arm should be updated to handlevsix(similar tozip) to avoid falling through to the defaultTarGzcase, which would lead to confusing errors if content inspection is attempted on a VSIX file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to handle 1 and 3 here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on it, my bad i oversaw that