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 @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 :-)
Issue Type: Bug
Alt + Shift + F
On 2020.4.0 works as expected:
On 2020.5.0 no indentation on
'A'
, 1 space before{ 'A' }
instead of 4 spaces: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
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: