ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
36 stars 4 forks source link

No widget displayed for [string[]] parameter on Run… dialog box. #3751

Closed iiome closed 1 month ago

iiome commented 1 month ago

Version

5.0.6

Severity

Critical

Environment

msi

Steps to Reproduce

I am experiencing a problem with script parameter when using the run dialog box.

Any parameter with the type [string[]] will not be shown when the run dialog box is displayed.

When running a script with

param(
    [string] $text,
    [string[]] $texts
)

The $text will be displayed with an input box and the $texts won't.

Expected behavior

When running a script with 

param(
    [string] $text,
    [string[]] $texts
)

Both $text and $texts parameter are displayed with an input widget.


### Actual behavior

```console
When running a script with 

param(
    [string] $text,
    [string[]] $texts
)

The $text widget is displayed with an input box and the $texts isn't.



### Additional Environment data

Version: 5.0.6 / 10773401563

Operating System: Windows Server 2022.

### Screenshots/Animations

![Screenshot 2024-09-12 at 22 45 39](https://github.com/user-attachments/assets/b1a867c7-cd79-4528-b485-2bac13f69fa0)
![Screenshot 2024-09-12 at 22 45 54](https://github.com/user-attachments/assets/8defdda3-b0a3-47b8-be33-5cf56acf35cb)