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
I searched around and couldn't find any existing issues that address what I'm seeing, so apologies if this is already known.
I have a simple regex pattern [ValidateScript({$_ -match '^([\d\w]+\.){2,3}[\d\w]+$'})]
that vscode seems to not be able to handle and I assume it's an issue with PSEditorServices.
First off; thanks for all the hard work!!
Wanted to let you know: i have this issue too: [Parameter(ParameterSetName = 'Network')] [ValidatePattern('^(([2]([0-4][0-9]|[5][0-5])|[0-1]?[0-9]?[0-9])[.]){3}(([2]([0-4][0-9]|[5][0-5])|[0-1]?[0-9]?[0-9]))(\/[1-3]?[1-9])?$')] [string]$IpAddress,
Wonderful project. I almost hate to bring it up, but having syntax coloring problem. Regex seems to break it, and it doesn't come back until there's a comment with a single quote in it.
Example:
function test
{
param(
# Using customer IDs filter
[Parameter(Mandatory=$false,
ParameterSetName='Search')]
[ValidatePattern('^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$')]
[string]
$UsingCustomerIDs
)
# Comment with ' in it
Get-ChildItem c:
}
Activity
daviwil commentedon Feb 28, 2017
From fromthewoods on February 28, 2017 22:25
Did I put this in the wrong repo? Should this be in PowerShell / vscode-powershell or Microsoft / vscode ?
daviwil commentedon Feb 28, 2017
From Keith Hill (@rkeithhill) on February 28, 2017 22:26
It should go in https://github.com/powershell/editorsyntax.
fromthewoods commentedon Mar 1, 2017
Thanks David Wilson (@daviwil) and Keith Hill (@rkeithhill).
fromthewoods commentedon Mar 1, 2017
Windows 7
VScode 1.9.1
PowerShell extension 0.9.0
PowerShell version 5.1.14409.1005
MattAllison commentedon Apr 13, 2017
I'm having the same problem. Patterns in question are:
Jawz84 commentedon Jun 5, 2017
First off; thanks for all the hard work!!

Wanted to let you know: i have this issue too:
[Parameter(ParameterSetName = 'Network')] [ValidatePattern('^(([2]([0-4][0-9]|[5][0-5])|[0-1]?[0-9]?[0-9])[.]){3}(([2]([0-4][0-9]|[5][0-5])|[0-1]?[0-9]?[0-9]))(\/[1-3]?[1-9])?$')] [string]$IpAddress,code -v:
1.12.2
19222cdc84ce72202478ba1cec5cb557b71163de
$pseditor.EditorServicesVersion:
1.2.1.0
$PSVersionTable:
Name Value
PSVersion 5.1.15063.296
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.296
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
keller4 commentedon Nov 18, 2017
Wonderful project. I almost hate to bring it up, but having syntax coloring problem. Regex seems to break it, and it doesn't come back until there's a comment with a single quote in it.
Extension|Author (truncated)|Version
PowerShell|ms-|1.5.1
Example:

function test
{
param(
# Using customer IDs filter
[Parameter(Mandatory=$false,
ParameterSetName='Search')]
[ValidatePattern('^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$')]
[string]
$UsingCustomerIDs
)
# Comment with ' in it
Get-ChildItem c:
}
omniomi commentedon May 21, 2018
Fixed by #94