You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow extensions to publish beta releases and users to opt-in to them #15756
extensionsIssues concerning extensionsfeature-requestRequest for new features or functionalitymarketplaceMicrosoft VS Code Marketplace issueson-testplanupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstream
Apologies if this has come up before; I'm unable to find any related issues.
It would be cool to be able to publish extensions in a beta form (similar to Code Insiders) so that they can be run "in production" with real users that have opted-in. This would reduce the disk in publishing an extension because you can push it to a smaller number of users for testing (I probably don't need to sell this to you, I guess you have Insiders for very similar reasons).
I know we can package and distribute extensions ourselves for now, but it's not as easy (eg. updating is not automatic).
I originally thought the "Preview" flag might've provided this functionality but unless I've overlooked something, it does not seem to.
Reacted by Ramya Rao, CJ Bell, Dirk Bäumer, Martin Andreas Ullrich, CoenraadS, Eric Amodio, Steve Baker, dymo, Tim Lewis, Gabriele Petronella and 134 more
Reacted by Janosh Riebesell, Julien HENRY, Christopher Rackauckas, Valentin Churavy, Michael Pfaff, Théo Winterhalter, Gustavo Cassel, Arno Hovhannisyan, Jason Fields, Taras Novak and 17 more
Why not putting those experimental features behind a configuration setting and have the opt-in mechanism be toggling that setting to true? Once the feature is stable enough just remove the setting.
Reacted by Michael Pfaff, Marcelo Fornet, Craig Condon, Anbuselvan Annamalai and Andy Edwards
Why not putting those experimental features behind a configuration setting and have the opt-in mechanism be toggling that setting to true?
This is an option, but I think it has some drawbacks
If you want to do a beta release every day, your "stable" users will get the update notifications too
It doesn't eliminate all the risk (if you're shipping bugs in the new features, maybe your feature detection is buggy, or how you're dealing with two code paths)
For things that aren't just new features, it's more work to maintain/switch between the branches
Users have to keep opting-in to each feature, rather than choosing to be a beta tester once; this could really limit the testing you get
Having the feature toggles show up in the config auto-complete isn't ideal (this might not be an issue, but I didn't get a response to Allow extensions to set configuration options. #1396 (comment) so it's unclear if "hidden options" are supposed to be used)
None of these issues are huge, but since the Insiders builds work so well and it seems like a similar scenario it seemed like a good request to raise for discussion :)
Reacted by Ramya Rao, CJ Bell, dymo, Steve Baker, Almenon, Alexander, Michael Pfaff, Théo Winterhalter, Taras Novak, Gustavo Cassel and 5 more
I agree, this would be a really useful feature. Right now I'm distributing our beta releases via VSIX downloads, but that is cumbersome and I don't reach many folks that way.
Hiding things behind a feature flag wouldn't really help. For example, we are about to release a new version that changes a lot of code, the whole architecture of the extension. There is no way that we could have had that behind a feature flag.
Reacted by Ramya Rao, Steve Baker, Nehashri, Haoran Ni, Alexander, Valentin Churavy, Michael Pfaff, Taras Novak, Vincent Långström, fbs2016 and 1 more
I would love to see this as well -- while feature flags work in certain cases, it doesn't cover them all. It also provides a sanity check and limits the "damage" of a bad release. And installing via vsix is just too user unfriendly to really be viable imo -- as it is completely manual.
Reacted by David Wilson, Steve Baker, Michael Pfaff, Taras Novak and Vincent Långström
Just to kick this one again, because the issues surrounding the manual install and REQUIRED uninstall of vsix causes lots of pain for users and seemingly creates cases of corrupt installations -- I've definitely seen an up tick in GitLens issues caused by vsix/marketplace versions on top of one another.
I gave up on vsix testing because of the complications mentioned above. Yesterday I shipped a huge bug that only occurred if dart on your PATH was a symlink (I had to make a lot of changes for multi-root support, and putting it all behind flags was not feasible) :(
I'm starting to think about publishing a second version of my extension with Beta in the name to allow people to choose to test new releases earlier (seems like at least one other has done this).
Is there some way to find out from code whether the currently running extension was installed as a pre-release version or not? We want to send telemetry to different destinations, depending on whether a user is running a pre-release version or not.
A version cannot be both pre-release and not pre-release, so if you manage the extension, then you are in control of the process for launching pre-release versions and therefore know which versions are pre-release. If you follow the suggestions outlined in the documentation:
we recommend that extensions use major.EVEN_NUMBER.patch for release versions and major.ODD_NUMBER.patch for pre-release versions. For example: 0.2.* for release and 0.3.* for pre-release.
then you can easily check the current extension version and act accordingly based on whether is an even or odd minor release.
Uh oh...if VS Code Insiders users have to manually opt-in, we're likely to see our Insiders usage drop by a lot. Bob Brown (@bobbrow) Are you sure we should switch to the new mechanism if that's the case? And/or can we get VS Code to change the behavior first?
We support automatically migrating separate extensions to the pre-release version of the main extension - extension authors just have to inform us they want this.
However since C++ and Jupyter have a special case and you do not have separate extensions we currently do not support automatic migration done by VS Code. However you can do the migration on your own as discussed here microsoft/vscode-cpptools#8507 (comment)
For me just now, when I used Insiders and searched for the GHPRI extension (which I know published pre-releases), the Install button defaulted to Pre-Release:
Doing the same with Stable defaults to a regular install:
We support automatically migrating separate extensions to the pre-release version of the main extension - extension authors just have to inform us they want this. However since C++ and Jupyter have a special case and you do not have separate extensions we currently do not support automatic migration done by VS Code. However you can do the migration on your own as discussed here microsoft/vscode-cpptools#8507 (comment)
Isidor Nikolic (@isidorn) I'm not sure that's going to work? Won't it force all users to the latest? For me I didn't want the latest, but when I do, it should show me the latest is the prerelease version. That's the behavior we have right now. Users pick when they upgrade, but the recommended upgrade is the most recent insiders only build.
John Murray (@gjsjohnmurray) correct. Rich Chiodo (@rchiodo) yes, the insiders users will by default get the option to install Pre-Release. My previous answer was my misunderstanding of your question. For me this just works
Rich Chiodo (@rchiodo) you would just do that code for your insider version of the extension. So that way you would transition only your insider users to the new pre-release version.
Isidor Nikolic (@isidorn) that's the behavior with the jupyter extension not already installed. But if it was already installed, the update notification won't pick prerelease.
And I believe the command suggested would force an update? Maybe I'm wrong about that.
Also another way to ensure users don't automatically get switched to a non-insiders release (if that is what you want) -- you can have your insiders versions always be greater than stable version. For example in GitLens I am planning to keep my YYYY.MM.DDHH version format for insiders.
Also another way to ensure users don't automatically get switched to a non-insiders release (if that is what you want) -- you can have your insiders versions always be greater than stable version.
GitHub Pull Requests and issues does the same thing. Before releasing a new stable, we will always release a new insiders with the increased version.
extensionsIssues concerning extensionsfeature-requestRequest for new features or functionalitymarketplaceMicrosoft VS Code Marketplace issueson-testplanupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstream
Activity
ramya-rao-a commentedon Nov 20, 2016
I would very much like this myself.
joaomoreno commentedon Nov 21, 2016
Why not putting those experimental features behind a configuration setting and have the opt-in mechanism be toggling that setting to
true? Once the feature is stable enough just remove the setting.DanTup commentedon Nov 21, 2016
This is an option, but I think it has some drawbacks
None of these issues are huge, but since the Insiders builds work so well and it seems like a similar scenario it seemed like a good request to raise for discussion :)
davidanthoff commentedon Nov 23, 2016
I agree, this would be a really useful feature. Right now I'm distributing our beta releases via VSIX downloads, but that is cumbersome and I don't reach many folks that way.
Hiding things behind a feature flag wouldn't really help. For example, we are about to release a new version that changes a lot of code, the whole architecture of the extension. There is no way that we could have had that behind a feature flag.
eamodio commentedon Mar 27, 2017
I would love to see this as well -- while feature flags work in certain cases, it doesn't cover them all. It also provides a sanity check and limits the "damage" of a bad release. And installing via vsix is just too user unfriendly to really be viable imo -- as it is completely manual.
eamodio commentedon Sep 29, 2017
Just to kick this one again, because the issues surrounding the manual install and REQUIRED uninstall of vsix causes lots of pain for users and seemingly creates cases of corrupt installations -- I've definitely seen an up tick in GitLens issues caused by vsix/marketplace versions on top of one another.
DanTup commentedon Sep 29, 2017
Yeah, I meant to post back here - when I did a beta release a few months ago I had reports of issues installing/uninstalling the vsix:
DanTup commentedon Dec 10, 2017
I gave up on vsix testing because of the complications mentioned above. Yesterday I shipped a huge bug that only occurred if
darton yourPATHwas a symlink (I had to make a lot of changes for multi-root support, and putting it all behind flags was not feasible) :(I'm starting to think about publishing a second version of my extension with Beta in the name to allow people to choose to test new releases earlier (seems like at least one other has done this).
201 remaining items
TwitchBronBron commentedon Dec 27, 2021
A version cannot be both pre-release and not pre-release, so if you manage the extension, then you are in control of the process for launching pre-release versions and therefore know which versions are pre-release. If you follow the suggestions outlined in the documentation:
then you can easily check the current extension version and act accordingly based on whether is an even or odd minor release.
isidorn commentedon Jan 3, 2022
David Anthoff (@davidanthoff) exactly as Bronley Plumb (@TwitchBronBron) explained: you can look at your extension version and act accordingly.
rchiodo commentedon Jan 7, 2022
There's a lot to read through in this issue and I wasn't sure what the expected behavior is with regards to 'insiders'.
Should insiders users automatically be updated the prerelease of an extension?
This isn't currently happening for the Jupyter Extension.
I had to explicitly pick 'Switch to prerelease version'
sean-mcmanus commentedon Jan 7, 2022
Uh oh...if VS Code Insiders users have to manually opt-in, we're likely to see our Insiders usage drop by a lot. Bob Brown (@bobbrow) Are you sure we should switch to the new mechanism if that's the case? And/or can we get VS Code to change the behavior first?
isidorn commentedon Jan 7, 2022
We support automatically migrating separate extensions to the pre-release version of the main extension - extension authors just have to inform us they want this.
However since C++ and Jupyter have a special case and you do not have separate extensions we currently do not support automatic migration done by VS Code. However you can do the migration on your own as discussed here microsoft/vscode-cpptools#8507 (comment)
gjsjohnmurray commentedon Jan 7, 2022
For me just now, when I used Insiders and searched for the GHPRI extension (which I know published pre-releases), the Install button defaulted to Pre-Release:
Doing the same with Stable defaults to a regular install:
rchiodo commentedon Jan 7, 2022
Isidor Nikolic (@isidorn) I'm not sure that's going to work? Won't it force all users to the latest? For me I didn't want the latest, but when I do, it should show me the latest is the prerelease version. That's the behavior we have right now. Users pick when they upgrade, but the recommended upgrade is the most recent insiders only build.
isidorn commentedon Jan 7, 2022
John Murray (@gjsjohnmurray) correct.
Rich Chiodo (@rchiodo) yes, the insiders users will by default get the option to install Pre-Release. My previous answer was my misunderstanding of your question. For me this just works
isidorn commentedon Jan 7, 2022
Rich Chiodo (@rchiodo) you would just do that code for your insider version of the extension. So that way you would transition only your insider users to the new pre-release version.
rchiodo commentedon Jan 7, 2022
Isidor Nikolic (@isidorn) that's the behavior with the jupyter extension not already installed. But if it was already installed, the update notification won't pick prerelease.
And I believe the command suggested would force an update? Maybe I'm wrong about that.
rchiodo commentedon Jan 7, 2022
I guess it won't be terrible to force prerelease if the extension isn't already in insiders for a specific version (one time thing).
Maybe we can add code to ask the user on insiders.
isidorn commentedon Jan 7, 2022
Rich Chiodo (@rchiodo) there is just one minor thing missing to have this flow super nice #139528
We plan to tackle this in the next two weeks.
And yes. So my full suggestion is the following:
installPreReleaseVersionflag #139528 is done all should be goodHope I was more clear now. Thank you
eamodio commentedon Jan 7, 2022
Also another way to ensure users don't automatically get switched to a non-insiders release (if that is what you want) -- you can have your insiders versions always be greater than stable version. For example in GitLens I am planning to keep my
YYYY.MM.DDHHversion format for insiders.alexr00 commentedon Jan 10, 2022
GitHub Pull Requests and issues does the same thing. Before releasing a new stable, we will always release a new insiders with the increased version.