-
Notifications
You must be signed in to change notification settings - Fork 227
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
Need to handle the different Get-Content calls for different versions of pswh #597
Comments
Good catch! |
Ouch! |
But wait, there's more to this "psedit over ssh" bug... Check this out: Notice the use of On macOS and Linux, |
Try this:
But you have to check for ConnectionInfo eq $null. if it is, then use |
Where should I try that, exactly? That's where the ComputerName gets set and ComputerName seems to be used throughout PSES. I worry about situations like this: That use |
Yes, modify that to something like: "@{ 'computerName' = if ($ExecutionContext.Host.Runspace.ConnectionInfo) {$ExecutionContext.Host.Runspace.ConnectionInfo.ComputerName} else {'localhost'}; ... |
Enable saving remote files opened with psedit
PSCore removed
-Encoding Byte
for-AsByteStream
.This line:
PowerShellEditorServices/src/PowerShellEditorServices/Session/RemoteFileManager.cs
Line 50 in 0f63e5c
We should handle this like:
This will fix at least 1 bug with psedit over ssh. This might actually fix psedit for PSCore on Windows.
The text was updated successfully, but these errors were encountered: