Skip to content

Allow engines.vscode to target Insiders versions more precisely #121749

Closed

Description

At the moment, the engines only targets a generic "insiders". This can cause issues when developing extensions that are in-use against evolving APIs in Insiders. I've hit this when dealing with testing APIs, and I know the Python people have hit this dealing with notebooks. In some cases it's possible to feature-detect on APIs, but this can be messy and is not always straightforward.

Optimizing for a case where updated extensions are released before the Insiders build is available, I propose adding an RFC3339 date tag that would -- in absence of other good markers -- specify the minimum build timestamp the extension is compatible with. For example, this would match any >=1.56.0 Insiders or Stable builds that happen after the current time:

"engines": {
  "vscode": "^1.56.0-20210428",
},

A nicer way would be to use git commits, but unless we embed commit history in builds we can't say "any build after a certain hash".

Activity

  1. added
    extensions
    on Apr 20, 2021
  2. connor4312 commented on Apr 28, 2021

    @connor4312
    MemberAuthor

    Actually, we can follow TypeScript's style. They have versions like 4.3.0-dev.20210428, so we could do ^1.56.0-insider.20210428

    Sandeep 👍 'd this in PM, so will implement next milestone.

    Edit: updated original comment to reflect that

  3. connor4312 commented on Apr 28, 2021

    @connor4312
    MemberAuthor

    fyi Don Jayamanne (@DonJayamanne) since your team may want to use this

  4. DonJayamanne commented on May 11, 2021

    @DonJayamanne
    Contributor

    Not sure what this buys extension users. If a user has the latest VS Code insiders installed, & the extension targets the previous days build, then the extension doesn't load.
    Isn't it the same as extension not loading due to errors? Or am i missing somethign in the suggestion.

  5. connor4312 commented on May 11, 2021

    @connor4312
    MemberAuthor

    This allows extension updates for new APIs to be released before the new Insiders -- not the other way around (which I don't see how we could do unless we blocked the Insiders update)

  6. DonJayamanne commented on May 11, 2021

    @DonJayamanne
    Contributor

    Yes got it, that makes sense

  7. added
    feature-request
    verification-needed
    on May 11, 2021
  8. added
    unreleased
    insiders-released
    and removed
    unreleased
    on May 11, 2021
  9. locked and limited conversation to collaborators on Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extensionsfeature-requestinsiders-releasedverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions