Skip to content

Indent in Pester It Statement with curly braces is confused #2728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fromthewoods opened this issue May 29, 2020 · 2 comments
Closed

Indent in Pester It Statement with curly braces is confused #2728

fromthewoods opened this issue May 29, 2020 · 2 comments
Labels
Resolution-Duplicate Will close automatically.

Comments

@fromthewoods
Copy link

Issue Type: Bug

Formatter doesn't treat script blocks inside It statements correctly in Pester:

  • I'm using 2 spaces for indentation
  • Periods '.' indicate spaces
..It 'should not format way' {
.{ & $runnerScript @badparams} | Should -Throw "an error"
..}

The above block of code should look like this:

..It 'should not format way' {
....{ & $runnerScript @badparams } | Should -Throw "an error"
..}

Extension version: 2020.5.0
VS Code version: Code - Insiders 1.46.0-insider (cd41dd1f6065db76c77c6e2f659bb50e6f558dec, 2020-05-29T05:51:32.662Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2592)
GPU Status 2d_canvas: enabled
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: enabled
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
Load (avg) undefined
Memory (System) 15.78GB (7.68GB free)
Process Argv
Screen Reader no
VM 0%
@ghost ghost added the Needs: Triage Maintainer attention needed! label May 29, 2020
@SydneyhSmith
Copy link
Collaborator

Thanks @fromthewoods this looks likes a duplicate of PowerShell/PSScriptAnalyzer#1496

@SydneyhSmith SydneyhSmith added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Jun 2, 2020
@ghost
Copy link

ghost commented Jun 3, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Jun 3, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants