Skip to content

WIP: Make VS-Code not suggest to install the PowerShell extension when the PowerShell-preview extension is installed - #77573

Closed
Christoph Bergmeister (bergmeister) wants to merge 1 commit into
microsoft:masterfrom
bergmeister:patch-1
Closed

Christoph Bergmeister (bergmeister) wants to merge 1 commit into
microsoft:masterfrom
bergmeister:patch-1

Conversation

@bergmeister

@bergmeister Christoph Bergmeister (bergmeister) commented Jul 18, 2019 •

Copy link
Copy Markdown

When opening a PowerShell file or setting language mode to PowerShell, VS-Code recommends the PowerShell extension, even when one has the preview extension installed, which is annoying in this case
image

I am not sure if this change is the right change to make VS-Code still prompt for the PowerShell extension when no PowerShell extension is installed but to not prompt when the PowerShell-preview is installed.
I also corrected the casings to be lower-case to match their actual casing. I'd appreciate some help where and how you'd like the 'proper' change to be. Unfortunately, the build does not upload the built product as an artifact in the PR here, so I cannot even test it easily without having to setup a dev environment

cc TylerLeonhardt

@sandy081

Copy link
Copy Markdown
Member

Our recommendations come from product.json which is specific to the flavour of VS Code.

Chris Dias (@chrisdias) Assigning to you.

On a side not, we shall look into supporting preview/insiders for extensions and not to create a separate extension with different id.

@bergmeister

Christoph Bergmeister (bergmeister) commented Jul 19, 2019 •

Copy link
Copy Markdown
Author

Awesome, when TylerLeonhardt was looking into it, it seemed there were a couple of issues, one of them being that the marketplace does not support semver2 if I remember correctly, he can give more details and link to other issues as to why extensions have to publish a separate extension for their previews.
I am not sure what you mean with you reference to product.json, I thought my PR highlights the place of origin where the extension recommendation for PowerShell files originates from?

@sandy081

Copy link
Copy Markdown
Member

Christoph Bergmeister (@bergmeister) Referenced file is not the source of recommendations. It is just a test file.

While building VS Code (stable/insiders) we use product.json with necessary recommendations. This file is not part of this repo. So I would suggest to create an issue and we will update it accordingly. So I will close this PR given that an issue will be create instead.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants