Page 1 of 1

Lost CMDLET and Function highlights

Posted: Thu Dec 12, 2019 6:00 pm
by owinsloe
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.170
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.18363.0

It looks like the switch command has caused the loss of highlighting on lines that follow that are not part of a sub-scriptblock. Anything in a sub-scriptblock after this appear to display fine.

If you place braces around the lines that have lost the highlighting then they display correctly.

This code snippet is part of a function. I have also tried, closing and restarting PSS and cutting & pasting the entire source back into the editor. Neither, corrected the behaviour.

pic1 (good)
pic2.jpg
pic2.jpg (131.1 KiB) Viewed 3285 times
pic2 (bad)
pic1.jpg
pic1.jpg (127.95 KiB) Viewed 3285 times

Re: Lost CMDLET and Function highlights

Posted: Fri Dec 13, 2019 6:58 am
by brittneyr
I have been able to reproduce this behavior and have informed the development team. When I have more information, I'll post here.

Re: Lost CMDLET and Function highlights

Posted: Sun Dec 15, 2019 11:02 am
by owinsloe
Thank you Mandalorian fan :D

Re: Lost CMDLET and Function highlights

Posted: Wed Jan 15, 2020 8:56 am
by brittneyr
This issue has been fixed and will be in the next service release.

Re: Lost CMDLET and Function highlights

Posted: Tue Jan 21, 2020 2:40 pm
by brittneyr
Please try build 5.7.172 and let me know if the issue still persists.