Skip to content

BUG: Formatting replaces double colon :: with a single one : #1619

Closed
@rdhar

Description

@rdhar

Steps to reproduce

Input the following snippet and observe as the formatting replaces the double colon :: with a single one :.

Invoke-WebRequest-Body "eai:data=$([uri]::EscapeDataString($source.InnerXml))"

Expected behavior

There should be no change.

Actual behavior

After formatting, the double colon :: is replaced with a single one :, thereby breaking the code.

Environment data

Toggling each one, it appears to be down to "powershell.codeFormatting.whitespaceBetweenParameters": true, rule which causes the issue with VS Code's PowerShell 2020.6.0 extension.

Doesn't seem to be replicable in VS Code's PowerShell Preview 2020.9.0, even with the aforementioned rule enabled.

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      1      0

Thanks for your time.

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