Skip to content

Fix a handful of issues with PowerShell sessions #793

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

Merged
merged 4 commits into from
May 30, 2017
Merged

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented May 30, 2017

No description provided.

daviwil added 4 commits May 25, 2017 11:13
This change fixes some issues with switching and restarting the active
PowerShell session after our migration to the new vscode-languageclient
package.  They changed their error handling code in a way that caused
our shutdown process to get stuck in a loop.

Fixes #737
Fixes #782
@daviwil daviwil added this to the 1.2.0 milestone May 30, 2017
@daviwil daviwil merged commit 1a13c43 into master May 30, 2017
@daviwil daviwil deleted the fix-console-issues branch May 30, 2017 20:02
$errorString = ""

while ($e -ne $null) {
$errorString = $errorString + ($e.Message + "`r`n" + $e.StackTrace + "`r`n")
$e = $e.InnerException;
}

ExitWithError ("Caught error while waiting for EditorServicesHost to complete:`r`n" + $errorString)
ExitWithError ("A terminating error occurred in PowerShell Editor Services:`r`n`r`n" + $errorString)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call on eliminating the signature for this script. I've had several issues with folks using PSCX after we started signing the scripts.

Copy link
Contributor Author

@daviwil daviwil May 30, 2017

Choose a reason for hiding this comment

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

This was only temporary since the signature isn't valid after the script contents have changed. Why did signing the startup script cause issues for PSCX? Maybe it's an indication of some other issue that I haven't seen before

Copy link
Contributor

@rkeithhill rkeithhill May 31, 2017

Choose a reason for hiding this comment

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

Folks that were offline ran into an apparent hang as the CRL check takes several minutes to come back IIRC. It is somewhat rare I think because if the system has ever been on the internet it gets a CRL it can check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm... That could explain a complaint I've been seeing from some folks who report that the extension doesn't start up for them if they're offline due to internet not being accessible at the moment (like on a train). Was it a combination of PSCX and the signed script that caused it, or just the signed script itself?

glennsarti added a commit to glennsarti/vscode-powershell that referenced this pull request Nov 13, 2018
Now that the PowerShell Editor Services has a Folding Provider, this extension
based feature is no longer required.  This commit removes the feature and tests.

The PSES Issue PowerShell#793 [1] tracks the work to add it to PSES.

[1] PowerShell/PowerShellEditorServices#793
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.

3 participants