You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2020.5.0 no indentation on 'A', 1 space before { 'A' } instead of 4 spaces:
if ($true) {
'A'
{ 'A' }
}
Edit: found the problem/solution for now, changing "powershell.codeFormatting.pipelineIndentationStyle" from the default "None" to anything else ("NoIndentation", "IncreaseIndentationAfterEveryPipeline", "IncreaseIndentationForFirstPipeline") and indentation works again as expected.
Looks like the new "None" setting that was added in the last update is broken.
Extension version: 2020.5.0
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 10.0.18363
System Info
Item
Value
CPUs
AMD Ryzen 7 1800X Eight-Core Processor (16 x 3593)
Yes, thank. We have PR #1497 for a fix already ready, can you review please Rob Holt (@rjmholt)
The short term fix for end users is to change the default back to NoIndentation in the next update to the preview extension, which has already been merged and is just pending a re-release: PowerShell/vscode-powershell#2698
Until PSSA 1.19.1 (or 2.0) releases, we suggest to hold off using the new None setting. Many thanks for the feedback :-)
Activity
SydneyhSmith commentedon May 21, 2020
Thanks ili101 looks like a dupe of #1496 should be fixed in the next VSCode PowerShell release
bergmeister commentedon May 21, 2020
Yes, thank. We have PR #1497 for a fix already ready, can you review please Rob Holt (@rjmholt)
The short term fix for end users is to change the default back to
NoIndentationin the next update to the preview extension, which has already been merged and is just pending a re-release: PowerShell/vscode-powershell#2698Until PSSA 1.19.1 (or 2.0) releases, we suggest to hold off using the new
Nonesetting. Many thanks for the feedback :-)