Edit Script Parameters not working

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
CermakPOI
Posts: 38
Joined: Fri Nov 16, 2012 12:01 am
Location: Austria
Contact:

Edit Script Parameters not working

Post by CermakPOI »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.178
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0

*** Please add details and screenshots as needed below. ***
Hi,
There is something wrong with the functionality:
Edit Script Parameters

It doesn't read the existing Script Parameters!
I can reproduce this with all of my scripts.
if i edit and just enable CmdletBinding it creates this (will cascade if used multiple times.):
  1. [CmdletBinding()]
  2.  
  3. param ()[CmdletBinding(DefaultParameterSetName = 'List',
  4.  
  5.                SupportsShouldProcess = $true)]
  6.  
  7. param
  8.  
  9. (
So NO EDIT of EXISTING Parameters is possible.

Edit Function is still working as expected.

User avatar
brittneyr
Site Admin
Posts: 503
Joined: Thu Jun 01, 2017 7:20 am

Re: Edit Script Parameters not working

Post by brittneyr »

Please try build 5.7.179 and let me know if you are still having issues.
Brittney Ryn
SAPIEN Technologies, Inc.

Locked