Closed
Description
Issue Description
I am experiencing a problem with... coloring syntax.
I know Monokai is not yet working properly (I saw a PR fix for this) but it was showing more or less consistently. But now I noticed that something is weird
Describe 'Select-Properties' {
It 'Select-Properties - Testing Array of PSCustomObjects' {
$Object1 = [PSCustomobject] @{
Name1 = '1'
Name2 = '3'
Name3 = '5'
}
$Object2 = [PSCustomobject] @{
Name4 = '2'
Name5 = '6'
Name6 = '7'
}
Select-Properties -Objects $Object1, $Object2 -AllProperties | Should -Be Name1, Name2, Name3, Name4, Name5, Name6
$Object1, $Object2 | Select-Properties -AllProperties | Should -Be Name1, Name2, Name3, Name4, Name5, Name6
$Object1, $Object2 | Select-Properties -AllProperties -ExcludeProperty Name6 -Property Name3 | Should -Be Name3
}
It 'Select-Properties - Testing Array of OrderedDictionary' {
$Object3 = [Ordered] @{
Name1 = '1'
Name2 = '3'
Name3 = '5'
}
$Object4 = [Ordered] @{
Name4 = '2'
Name5 = '6'
Name6 = '7'
}
Select-Properties -Objects $Object3, $Object4 -AllProperties | Should -Be Name1, Name2, Name3, Name4, Name5, Name6
$Object3, $Object4 | Select-Properties -AllProperties | Should -Be Name1, Name2, Name3, Name4, Name5, Name6
}
}
I can continue adding new lines:
And it seems like it stopped working. Restarting PS session fixes this issue.
Attached Logs
1596304553-9b1c68c9-c15f-43c6-9739-e1b537cd361b1596304549455.zip
Environment Information
Visual Studio Code
Name | Version |
---|---|
Operating System | Windows_NT x64 10.0.19041 |
VSCode | 1.47.3 |
PowerShell Extension Version | 2020.7.0 |
PowerShell Information
Name | Value |
---|---|
PSVersion | 5.1.19041.1 |
PSEdition | Desktop |
PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.19041.1 |
BuildVersion | 10.0.19041.1 |
CLRVersion | 4.0.30319.42000 |
WSManStackVersion | 3.0 |
PSRemotingProtocolVersion | 2.3 |
SerializationVersion | 1.1.0.1 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
Extension | Author | Version |
---|---|---|
bracket-pair-colorizer-2 | CoenraadS | 0.2.0 |
code-settings-sync | Shan | 3.4.3 |
github-linker | gimenete | 0.2.3 |
gitlens | eamodio | 10.2.2 |
markdown-all-in-one | yzhang | 3.2.0 |
material-icon-theme | PKief | 4.2.0 |
powershell-preview | ms-vscode | 2020.7.0 |
project-manager | alefragnani | 11.1.0 |
run-in-powershell | tobysmith568 | 1.0.1 |
vscode-markdownlint | DavidAnson | 0.36.2 |
vscode-pull-request-github | GitHub | 0.18.0 |
vscode-toggle-quotes | BriteSnow | 0.3.3 |
vscode-wakatime | WakaTime | 4.0.0 |
vscode-yaml | redhat | 0.9.1 |
xml | DotJoshJohnson | 2.5.1 |