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

Set session failure with reason when applicable #2018

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

andyleejordan
Copy link
Member

This updates our session failure logic (we were no longer ever sending a "failed" status back, hence the awful experience in the client). If PowerShell does start, but detects that it's not going to work due to unsupported PowerShell or .NET Framework versions (applicable only to Windows PowerShell), we set the session status to failed and actually report the PowerShell version for use by the client's error reporting.

Note that as far as we know, our minimum .NET Framework support for Windows PowerShell is now 4.8, per PowerShell/vscode-powershell#4483.

Resolves PowerShell/vscode-powershell#4509.

This is not updating our requirement, that apparently already changed to 4.8 as determined by testing.
Which is currently unused. It must have been in use previously because the client is expecting specific reasons.

Since we need to redo this, let's remove the excess.
@andyleejordan andyleejordan force-pushed the andschwa/write-session-failure branch from 609a874 to 9c0bea2 Compare April 24, 2023 20:52
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM!

@andyleejordan andyleejordan merged commit 8c9b903 into main Apr 25, 2023
@andyleejordan andyleejordan deleted the andschwa/write-session-failure branch April 25, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update version check and documentation for .NET 4.8 requirement
2 participants