Skip to content

Improve extension engine compatibility #11573

Closed

Description

Currently, an extension is deemed outdated when there's a newer version published in the Marketplace. Installing an extension requires O(published_versions) request roundtrips: starting from the latest version, the engine field is checked for compatibility with the current Code, and it goes on backwards from there.

We should:

  • Publish extensions with the compatibility value as a property
  • Use that property to figure out which version to install
  • Use that property to correctly figure out whether the extension is outdated

VSIX manifest format:

<Properties>
      <Property Id="abc" Value="def" />
      <Property Id="ghi" Value="jkl" />
</Properties>

Response:

"version": "0.1.15",
              "flags": "validated",
              "lastUpdated": "2016-09-06T04:41:03.74Z",
              "properties": [
                {
                  "key": "abc",
                  "value": "def"
                },
                {
                  "key": "ghi",
                  "value": "jkl"
                }
]

Activity

  1. added
    feature-request
    on Sep 6, 2016
  2. changed the title [-]Marketplace: use version properties to store vscode engine compatibility[/-] [+]Improve extension engine compatibility[/+] on Sep 13, 2016
  3. joaomoreno commented on Sep 22, 2016

    @joaomoreno
    ContributorAuthor

    Peng Lyu (@rebornix) just hit the bug that this will fix: an extension which has a new version published, which isn't compatible with the user's version of Code, always appears out of date in the product.

  4. daviwil commented on Sep 22, 2016

    @daviwil
    Contributor

    I wonder if this explains what Brandon Padgett (@gerane) was seeing in issue #12281?

  5. joaomoreno commented on Sep 22, 2016

    @joaomoreno
    ContributorAuthor

    Probably not, since this is about update notifications.

  6. gerane commented on Sep 22, 2016

    @gerane

    Not sure. My issue is that code is not able to connect some of my installed extensions to to the ones in the marketplace any longer. I don't get update notifications for them, but not sure if those mechanisms are linked in anyway.

    Also, I'm pretty sure this issue was introduced a while ago, but it's not an easy one to catch.

  7. added 3 commits that reference this issue on Sep 23, 2016
  8. sandy081 commented on Sep 26, 2016

    @sandy081
    Member

    Outdated check for an extension is done as follows:

    If the extension has defined engine property in the VSIX manifest, it is used to check its compatibility. Otherwise falls back to old way.

  9. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extensionsfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions