Skip to content

Use vs-pwsh icons if applicable.#19990

Open
teo-tsirpanis wants to merge 1 commit intomicrosoft:mainfrom
teo-tsirpanis:vs-pwsh-icon
Open

Use vs-pwsh icons if applicable.#19990
teo-tsirpanis wants to merge 1 commit intomicrosoft:mainfrom
teo-tsirpanis:vs-pwsh-icon

Conversation

@teo-tsirpanis
Copy link

Summary of the Pull Request

This PR updates VsDevShellGenerator to use the vs-pwsh icon in generated profiles, if modern PowerShell has been detected.

References and Relevant Issues

The icons were added in #17706, but are not used anywhere.

Detailed Description of the Pull Request / Additional comments

  • Updated VsDevShellGenerator::GetProfileCommandLine to accept a bool& isPwsh parameter, which is set to whether the generated profile command line is using modern PowerShell. This value gets passed to VsDevShellGenerator::GetProfileIconPath's new parameter, which determines whether to return the icon for powershell or pwsh.

Validation Steps Performed

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant