Formatting option not respecting choice

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 SUBSCRIPTION NUMBERS, LICENSE 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.
D.Leaman
Posts: 18
Joined: Thu Jan 10, 2019 4:21 pm

Formatting option not respecting choice

Post by D.Leaman » Thu Jul 04, 2019 8:27 pm

Product, version and build: PowerShell Studio 2019 5.6.164
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1803
32 or 64 bit OS: 64-bit

The option for Place open brace on a new line in Options → Formatting → Formatting is not respecting the toggled selection for me. I currently have it unchecked so it should leave open braces on the same line. For example:
  1. if ($value)
  2.  
  3. {
  4.  
  5.     Out-Default 'True'
  6.  
  7. } else
  8.  
  9. {
  10.  
  11.     Out-Default 'False'
  12.  
  13. }
The above sample should turn in the following after formatting:
  1. if ($value) {
  2.  
  3.     Out-Default 'True'
  4.  
  5. } else {
  6.  
  7.     Out-Default 'False'
  8.  
  9. }
I know in the past this has worked fine but I haven't used SPS in a month or two so I'm unsure when this stopped working.

In case it helps, in the past when I would toggle the checkbox, the sample would update showing the change as well and this is no longer the case.
J.B. Hunt
Devin Leaman
Devin.Leaman@jbhunt.com

User avatar
mxtrinidad
Site Admin
Posts: 367
Joined: Sun Mar 03, 2013 12:42 pm

Re: Formatting option not respecting choice

Post by mxtrinidad » Fri Jul 05, 2019 7:06 am

Please upgrade to the next version v5.6.165. The next service release has resolved the issue you're experiencing.
Feel free to give use feedback.

Thanks

D.Leaman
Posts: 18
Joined: Thu Jan 10, 2019 4:21 pm

Re: Formatting option not respecting choice

Post by D.Leaman » Sat Jul 06, 2019 12:22 am

Whoops.. Thought I had already updated 😅

Thanks!
J.B. Hunt
Devin Leaman
Devin.Leaman@jbhunt.com