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 #17

Closed
pcgeek86 opened this issue Aug 30, 2016 · 2 comments
Closed
Assignees
Labels
Projects
Milestone

Comments

@pcgeek86
Copy link

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.

PowerShell/vscode-powershell#272

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

@daviwil
Copy link
Contributor

daviwil commented Aug 30, 2016

Thanks Trevor! This may have been one of the things @gravejester fixed in the new syntax definition so we'll double check that before we roll it out again.

@gravejester gravejester added this to the v2 milestone Sep 4, 2017
@gravejester gravejester added this to Bugs - Open in v2 Sep 4, 2017
@gravejester gravejester self-assigned this Sep 4, 2017
@omniomi omniomi mentioned this issue May 10, 2018
@omniomi
Copy link
Collaborator

omniomi commented May 21, 2018

Fixed by #94

@omniomi omniomi closed this as completed May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
v2
Bugs - Open
Development

No branches or pull requests

4 participants