PSS lose text highlights follow switch
Posted: Mon Sep 21, 2020 5:16 pm
Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.181
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19041.0
Following a "switch -regex -file statement", text highlighting disappears until a specific command (eg. IF block ) is used. This does not appear to occur on a basic switch block (ie. not using -regex switch).
In the below expression, the remove-item is not blue.
switch -regex -file $DCMaster
{
""{ }
}
remove-item c:\blah.txt
Build: v5.7.181
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19041.0
Following a "switch -regex -file statement", text highlighting disappears until a specific command (eg. IF block ) is used. This does not appear to occur on a basic switch block (ie. not using -regex switch).
In the below expression, the remove-item is not blue.
switch -regex -file $DCMaster
{
""{ }
}
remove-item c:\blah.txt