Skip to content

Color coding problem when using [ValidateScript({Test-Path "${_}`:\" -PathType Container})] #225

Closed
@pmcelreavy

Description

@pmcelreavy

I use the following code to test the if the driver letter exists (sorry I can't figure out how to format it correctly due to the apostrophe):

[ValidateScript({Test-Path "${_}`:\" -PathType Container})]
[string]$DeploymentDriveLetter

And because of {} and ` color coding gets all out of whack in the IDE. You'll notice that most of the code afterwards is considered a string. This used to work at least 2-3 versions ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions