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 (bad)
Lost CMDLET and Function highlights
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.
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.
Re: Lost CMDLET and Function highlights
I have been able to reproduce this behavior and have informed the development team. When I have more information, I'll post here.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Lost CMDLET and Function highlights
This issue has been fixed and will be in the next service release.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Lost CMDLET and Function highlights
Please try build 5.7.172 and let me know if the issue still persists.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.