Skip to content

Syntax highlighting problem with ValidateScript parameter attribute #272

Closed

Description

Issue

The [ValidateScript({ ... })] parameter attribute is commonly used to perform customized validation on parameter values that a caller passes into a PowerShell function. In Visual Studio Code 1.4.0, running on Windows 10 Anniversary Update, with version 0.7.1 of the PowerShell extension, the syntax highlighting inside this parameter attribute is incorrectly handled.

image

Expected Result

The syntax highlighting should work consistently both inside and outside of a [ValidateScript({ ... })] parameter attribute.

NOTE: This issue was previously reported, fixed, and then closed #262

Cheers,
Trevor Sullivan
Docker Captain
Microsoft MVP: Cloud & Data Center Management
https://trevorsullivan.net
https://twitter.com/pcgeek86

Activity

  1. rkeithhill commented on Aug 30, 2016

    @rkeithhill
    Contributor

    Trevor Sullivan (@pcgeek86) Can you submit this on the http://GitHub.com/powershell/editorsyntax project? That is the project that tracks the syntax highlighting for PowerShell in VSCode, as well as other editors.

  2. pcgeek86 commented on Aug 30, 2016

    @pcgeek86
    ContributorAuthor

    Closing this issue. Please use this one instead: PowerShell/EditorSyntax#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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