Skip to content

VS-Code recommends PowerShell extension when 'PowerShell Preview' extension is installed #80178

Closed

Description

This is a follow up from the PR comment below of PR #77573 as changes need to be made outside this repository. cc Sandeep Somavarapu (@sandy081) TylerLeonhardt
#77573 (comment)

Activity

  1. vscodebot commented on Sep 1, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. sandy081 commented on Sep 2, 2019

    @sandy081
    Member

    Christoph Bergmeister (@bergmeister) As already asked before, have you guys thought about using same extension for preview/insiders instead of separate extension.

    We follow a similar approach for our remote container and remote wsl extensions. Christof Marti (@chrmarti) Martin Aeschlimann (@aeschli) Is there a wiki/documentation on how we do preview for these extensions?

  3. added
    under-discussion
    on Sep 2, 2019
  4. chrmarti commented on Sep 2, 2019

    @chrmarti
    Collaborator

    I don't think we have documented this:

    We have published extensions for VS Code Insiders only by requiring the VS Code Insiders version in the extension's package.json's engine property. That version of the extension then cannot be installed into VS Code Stable and VS Code Stable simply keeps (or installs) the last version of the extension that required a compatible VS Code engine. When the VS Code Insiders version number then is released as the new VS Code Stable, these extension versions immediately become available for VS Code Stable too.

    There is currently no way to hold back some versions of an extension as 'VS Code Insiders only' when the version number of the current Insiders becomes available as VS Code Stable.

  5. TylerLeonhardt commented on Sep 2, 2019

    @TylerLeonhardt
    Member

    As already asked before, have you guys thought about using same extension for preview/insiders instead of separate extension

    It's all a part of this issue on release channels

    The VS Code marketplace and/or VS Code itself do not offer a friendly way to release an "insiders" version of extensions and the best way of doing it is to ship another extension called "Preview" or "Nightly" or similar.

    We have published extensions for VS Code Insiders only by requiring the VS Code Insiders version in the extension's package.json's engine property. That version of the extension then cannot be installed into VS Code Stable

    I think Sandeep Somavarapu (@sandy081)'s question is more so "how does the VS Code team implement 'preview' or 'nightly' versions of extensions?" Rather than "how do we only ship for insiders?"

    Sandeep Somavarapu (@sandy081) not sure who it is but the VS Code team ships a js/ts nightly extension in the same fashion. This seems to be the best option today... But from experience, it's very painful to maintain, confuses customers, and isn't very discoverable.

  6. sandy081 commented on Sep 5, 2019

    @sandy081
    Member

    I think Sandeep Somavarapu (@sandy081)'s question is more so "how does the VS Code team implement 'preview' or 'nightly' versions of extensions?" Rather than "how do we only ship for insiders?"

    Yes, at present we ship some of our extension previews only for insiders. I agree that there needs to be a support for this feature in VS Code. Here is an open request for that - #15756

    w.r.to recommendations we will see if we can implement to check if one of the extensions is already installed.

  7. added
    feature-request
    and removed
    under-discussion
    on Sep 5, 2019
  8. TylerLeonhardt commented on Sep 5, 2019

    @TylerLeonhardt
    Member

    Here is an open request for that - #15756

    Yeah this the the big one that would save extension devs a lot of time. Our team was burned by that recently when we slipped and accidentally released a preview extension to the stable extension - I had to get ahold of the marketplace team and everything to mitigate the issue. Our extension was unlisted for like 3 days.

    That said, this issue is not about that. This issue is requesting something like this:

    "VS Code should not recommend anything if EITHER -this- extension or -that- extension"

    does that make sense? It's a generic problem. Might be worth changing the title.

  9. sandy081 commented on Sep 12, 2019

    @sandy081
    Member

    Agreed this is a different request and hence tagged it as feature request.

  10. bergmeister commented on Sep 12, 2019

    @bergmeister
    Author

    This is the current behaviour, therefore I think the title is still correct:.

    • With PowerShell extension installed and opening a .ps1 file, VS-Code does not offer recommendation -> correct
    • With PowerShell extension installed and opening a .ps1 file, VS-Code Insiders does not offer recommendation -> correct
    • With PowerShell Preview extension installed and opening a .ps1 file, VS-Code recommends the PowerShell extension -> incorrect (there should be no recommendation)
    • With PowerShell Preview extension installed and opening a .ps1 file, VS-Code Insiders recommends the PowerShell extension -> incorrect (there should be no recommendation)
  11. TylerLeonhardt commented on Oct 11, 2019

    @TylerLeonhardt
    Member

    Christoph Bergmeister (@bergmeister) I just meant that the title is specific to PowerShell but this issue is generic.

  12. bergmeister commented on Oct 11, 2019

    @bergmeister
    Author

    Yes, but since VS Code already has custom code hard coded to the PowerShell extension I'd like to get this fixed quickly by adding the preview extension as well.
    The higher level issue with preview extensions is already in another issue that will probably take a long time to get resolved....
    Can we please get traction on this issue.

    Generally speaking, I am very annoyed by a handful of notifications by VS-Code that I cannot turn of. When I open a repo, I get about 5 notifications, this being just one of them (I had to disable other extensions like the terraform extension that keeps asking me to install preview features, many other extensions have similar noisy behaviour as well).

  13. chrisdias commented on Oct 11, 2019

    @chrisdias
    Contributor

    There is no custom/hard coded support for the PowerShell extension, it uses the same recommendation system as every other extension we recommend. In this case, we recommend only 1 extension based on .ps1 files and that is the ms-vscode.PowerShell extension. It is an "important" recommendation so you get a prompt immediately.

    Now, I could prompt for the PowerShell "Insiders" extension instead of Stable in VS Code Insiders if you want, i just need the extension ID please. So in this case, VS Code Insiders users would be prompted for the PS Insiders extension and the VS Code Stable users would be prompted for the PS Stable extension.

  14. bergmeister commented on Oct 11, 2019

    @bergmeister
    Author

    yes, please. This would be a small but useful improvement to the situation

  15. chrisdias commented on Oct 11, 2019

    @chrisdias
    Contributor

    id is ms-vscode.PowerShell-Preview

  16. BoSorensen commented on Mar 23, 2020

    @BoSorensen

    When backing up settings from both VSCode and VSCode Insiders with the Settings Sync extension to the same Gist, that seems to be a bad idea in part due to VSCode that will suggest 'PowerShell' extension and VSCode Insiders that will suggest 'PowerShell Preview' extension.

    So i guess settings from VSCode and a VSCode Insiders can not be stored in the same Gist ?

  17. bergmeister commented on Mar 23, 2020

    @bergmeister
    Author

    Bo Sørensen (@BoSorensen) Can you expand please. It suggest to put the union of setting for normal and preview extension in your synced settings because if a setting does not exist in either version, it should not cause a problem. I am not aware of a setting that would need to be different depend on whether one uses the normal or the preview version of the PS extension

  18. BoSorensen commented on Mar 23, 2020

    @BoSorensen

    Christoph Bergmeister (@bergmeister) You are right, in VSCode insiders 1.44.0 it will suggest the PowerShell Preview extension when the PowerShell extension is already installed. While somewhat annoying, that message can be hidden, so its entirely possible to store settings for both Insider and non-Insider builds in same Gist.

  19. sandy081 commented on Nov 11, 2020

    @sandy081
    Member

    I would still think the right way here is to wait until Marketplace supports for beta extensions and they are thinking about it.

    Regarding recommendation notifications, we have changed them to be less aggressive. For eg., when you receive a recommendation after opening a file and checking for the extension is enough to not to show this notification again. So in this case, when you receive a recommendation for Powershell extension, click on show recommendations button in the notification and you do not see it again.

    Please revalidate the scenario with above flow and reopen the issue if you still see concerns.

  20. locked and limited conversation to collaborators on Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extensionsfeature-requestwont-fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions