fix: force ForEach-Object to return array in pwsh completion

Fixes #1847
This commit is contained in:
Norman Dankert 2022-11-13 20:45:51 +01:00
parent 6b0bd3076c
commit e508171275

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"