-
Notifications
You must be signed in to change notification settings - Fork 236
Use PSRL release and filter out previous betas #745
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
Changes from all commits
6a3cf95
1ade357
c9a8d2f
864c418
3a0b4e8
3866833
56c640a
7598faa
4839354
af7fa23
d631469
2777139
1d97cc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ internal class PSReadLinePromptContext : IPromptContext { | |
[System.Diagnostics.DebuggerHidden()] | ||
[System.Diagnostics.DebuggerStepThrough()] | ||
param() | ||
return [Microsoft.PowerShell.PSConsoleReadLine]::ReadLine( | ||
return [Microsoft.PowerShell.PSConsoleReadLine, Microsoft.PowerShell.PSReadLine2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]::ReadLine( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😢 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rkeithhill, @SeeminglyScience turns out:
But it works and we can take it out when PSCore 6.0 support is ended There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the bright side it's still a whole lot better than having to manually replace the DLL! |
||
$Host.Runspace, | ||
$ExecutionContext, | ||
$args[0])"; | ||
|
@@ -30,13 +30,17 @@ internal class PSReadLinePromptContext : IPromptContext { | |
[System.Diagnostics.DebuggerStepThrough()] | ||
param() | ||
end { | ||
$module = Get-Module -ListAvailable PSReadLine | Where-Object Version -ge '2.0.0' | Sort-Object -Descending Version | Select-Object -First 1 | ||
$module = Get-Module -ListAvailable PSReadLine | | ||
Where-Object Version -eq '2.0.0' | | ||
Where-Object { $_.PrivateData.PSData.Prerelease -notin 'beta1','beta2' } | | ||
Sort-Object -Descending Version | | ||
Select-Object -First 1 | ||
if (-not $module) { | ||
return | ||
} | ||
|
||
Import-Module -ModuleInfo $module | ||
return 'Microsoft.PowerShell.PSConsoleReadLine' -as [type] | ||
return [Microsoft.PowerShell.PSConsoleReadLine, Microsoft.PowerShell.PSReadLine2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null] | ||
}"; | ||
|
||
private readonly PowerShellContext _powerShellContext; | ||
|
Uh oh!
There was an error while loading. Please reload this page.