Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close other pwsh's in the VSCode instance #2469

Merged
merged 1 commit into from Feb 18, 2020

Conversation

TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Feb 13, 2020

PR Summary

People having a hard time using the UpdatePowerShell feature and would often close VS Code which causes the MSI to close because it's a child process.

I tried using detached:true in the SpawnConfig parameter of spawn but it didn't work in vscode... (it did work in a raw js file so I suspect a vscode or electron bug...)

As a best effort, I have us closing all terminals named "pwsh" in hope that that will discourage folks from closing the VS Code instance that ran the MSI.

also I snuck in using pwsh for the Windows task because I'm tired of errors caused by Windows PowerShell...

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@@ -4,7 +4,7 @@
"windows": {
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"executable": "pwsh.exe",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@TylerLeonhardt TylerLeonhardt merged commit 5483758 into PowerShell:master Feb 18, 2020
@TylerLeonhardt TylerLeonhardt deleted the close-other-pwshs branch February 18, 2020 19:53
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.

None yet

3 participants