Skip to content

WithSpaceAroundPipe and WhitespaceInsideBrace enabled together with Pipelineindentation.NoIndentation do not always correct #1213

Open
@bergmeister

Description

@bergmeister

Transferred from PowerShell/vscode-powershell#1867

Steps to reproduce

format the following with the default vscode settings and Pipelineindentation set to NoIndentation

gmo|
    ? {$_.IsDuck}|
    git

Expected behavior

gmo |
    ? { $_.IsDuck } |
    git

Actual behavior

No change in formatting.

If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *

Environment data

PSSA 1.18.0 on Windows with PS 6.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions