fix: force ForEach-Object to return array in pwsh completion (#1850)

Fixes #1847
This commit is contained in:
Norman Dankert 2022-11-25 21:47:20 +01:00 committed by GitHub
parent 430549841b
commit c6b9971923
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ filter __%[1]s_escapeStringWithSpecialChars {
}
$Longest = 0
$Values = $Out | ForEach-Object {
[Array]$Values = $Out | ForEach-Object {
#Split the output in name and description
`+" $Name, $Description = $_.Split(\"`t\",2)"+`
__%[1]s_debug "Name: $Name Description: $Description"