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 e4e73cb commit 6405a2bCopy full SHA for 6405a2b
vscode-powershell.build.ps1
@@ -46,7 +46,7 @@ task Prerequisites {
46
function Assert-Pwsh ([Version]$RequiredPowerShellVersion) {
47
$ErrorActionPreference = 'Continue'
48
try {
49
- [Version]$pwshVersion = (Get-Command -Name pwsh -CommandType Application)
+ [Version]$pwshVersion = (Get-Command -Name pwsh -CommandType Application -ErrorAction Stop)
50
| Sort-Object Version -Descending
51
| Select-Object -First 1
52
| ForEach-Object Version
0 commit comments