Skip to content

PowerShell formatting and indent bug when using the backtick character #994

Open
@daviwil

Description

@daviwil

From @woowil on August 14, 2017 17:6

  • VSCode Version: Code 1.15.0 (8b95971d8cccd3afd86b35d4a0e098c189294ff2, 2017-08-09T20:16:06.988Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions: the listing length exceeds browsers' URL characters limit

Steps to Reproduce:

  1. PowerShell
    Settings.json:
    "editor.formatOnSave": true,
    "editor.formatOnType": true,

Desired Formatting:

Get-Process |  ForEach-Object `
   -Begin {
      $Count = 0
   } `
   -Process {
      $Count++
   } `
   -End {
      $Count
   }

Bug Formatting

Get-Process |  ForEach-Object `
   -Begin {
    $Count = 0
} `
    -Process {
    $Count++
} `
    -End {
    $Count
}

Reproduces without extensions: Yes/No

Copied from original issue: microsoft/vscode#32494

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions