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.
This topic is 3 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
owinsloe
Posts: 161
Last visit: Tue Mar 26, 2024 8:14 pm
Been upvoted: 1 time

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: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 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
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: PSS lose text highlights follow switch

Post by brittneyr »

Please try service build 5.7.182.
Brittney
SAPIEN Technologies, Inc.
This topic is 3 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.