Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting problem with ValidateScript parameter attribute #272

Closed
pcgeek86 opened this issue Aug 30, 2016 · 2 comments
Closed

Comments

@pcgeek86
Copy link
Collaborator

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

@rkeithhill
Copy link
Collaborator

@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.

@pcgeek86
Copy link
Collaborator Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants