Skip to content

Detect archive type of extension to decompress #92

Closed

Description

@kylecarbs

We've filled the client zip implementation with tar so we can eventually load extensions on the client. Installing from a VSIX no longer works because the standard format is a zip.

We should detect the archive type then use the appropriate fill.

Activity

  1. added
    enhancement
    on Mar 7, 2019
  2. self-assigned this
    on Mar 7, 2019
  3. RiFi2k commented on Mar 15, 2019

    @RiFi2k

    Not sure what the limitations are here but is using the CLI an option?

    https://code.visualstudio.com/docs/editor/command-line

    I was able to mess around and figure out their public API for the extension gallery.

    curl -X POST \
      'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery?api-version=5.1-preview.1' \
      -H 'Content-Type: application/json' \
      -H 'api-version: 5.1-preview.1' \
      -H 'cache-control: no-cache' \
      -d '{
        "assetTypes": [
            "Microsoft.VisualStudio.Services.Icons.Default",
            "Microsoft.VisualStudio.Services.Icons.Branding",
            "Microsoft.VisualStudio.Services.Icons.Small"
        ],
        "filters": [
            {
                "criteria": [
                    {
                        "filterType": 8,
                        "value": "Microsoft.VisualStudio.Code"
                    },
                    {
                        "filterType": 10,
                        "value": "php"
                    },
                    {
                        "filterType": 12,
                        "value": "37888"
                    }
                ],
                "direction": 2,
                "pageSize": 54,
                "pageNumber": 1,
                "sortBy": 0,
                "sortOrder": 0,
                "pagingToken": null
            }
        ],
        "flags": 870
    }'
    
  4. foresthoffman commented on Mar 15, 2019

    @foresthoffman
    Contributor

    Howdy @RiFi2k, this isn't related to the current issue, but thank you for the suggestion. The reason we're not using the official VS Code Marketplace is because it is a restriction in their TOS. See the following comment from one of our CTO's: #30 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions