PSS lose text highlights follow switch

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
owinsloe
Posts: 96
Joined: Tue Jul 10, 2012 10:37 am

PSS lose text highlights follow switch

Post by owinsloe »

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

User avatar
brittneyr
Site Admin
Posts: 611
Joined: Thu Jun 01, 2017 7:20 am
Answers: 6
Been upvoted: 5 times

Re: PSS lose text highlights follow switch

Post by brittneyr »

This issue has been reported to the development team and should be fixed in a future service build of PowerShell Studio.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 611
Joined: Thu Jun 01, 2017 7:20 am
Answers: 6
Been upvoted: 5 times

Re: PSS lose text highlights follow switch

Post by brittneyr »

Please try service build 5.7.182.
Brittney Ryn
SAPIEN Technologies, Inc.