We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677c7c5 commit 2ff4beaCopy full SHA for 2ff4bea
src/PowerShellEditorServices/Services/PowerShellContext/Session/PSReadLinePromptContext.cs
@@ -33,8 +33,7 @@ internal class PSReadLinePromptContext : IPromptContext
33
param()
34
end {
35
$module = Get-Module -ListAvailable PSReadLine |
36
- Where-Object Version -ge '2.0.0' |
37
- Where-Object { -not $_.PrivateData.PSData.Prerelease } |
+ Where-Object { $_.Version -gt '2.0.0' -or ($_.Version -eq '2.0.0' -and -not $_.PrivateData.PSData.Prerelease) } |
38
Sort-Object -Descending Version |
39
Select-Object -First 1
40
if (-not $module) {
0 commit comments