You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I Format a document that contains a default value (that is actually a statement), formatting differs than if you do not have it (it is left aligned by an additional tab).
In this case, formatted for parameter "$Here" is incorrect, as is any code below it. Removing "$(throw ..)" fixes the issue.
function Do-Something {
param(
[Parameter(Position=0)]
$Over = $(throw "The parameter -Over is required."),
[Parameter(Position=1)]
$Here = $(throw "The parameter -Here is required.")
)
}
Attached Logs
Not sure logs are required, this is reproducible on multiple systems. Just paste above and format document with and without the "$(throw ...)" part.
The text was updated successfully, but these errors were encountered:
Probably wasn't easy to find while searching due to its title. I'll close this now, let us know if you still see the issue after the 0.10.0 update. Should be out in a few days. Thanks!
System Details
$PSVersionTable
:Issue Description
When I Format a document that contains a default value (that is actually a statement), formatting differs than if you do not have it (it is left aligned by an additional tab).
In this case, formatted for parameter "$Here" is incorrect, as is any code below it. Removing "$(throw ..)" fixes the issue.
Attached Logs
Not sure logs are required, this is reproducible on multiple systems. Just paste above and format document with and without the "$(throw ...)" part.
The text was updated successfully, but these errors were encountered: