Skip to content

whitespaceBetweenParameters removing code with spaces #1560

Closed
@thedzy

Description

@thedzy

When enabling whitespaceBetweenParameters code is striped with the whitespace.

Example:
Write-Host $("-" * (Get-Host).UI.RawUI.MaxWindowSize.Width)
Becomes:
Write-Host $("-" (Get-Host)UI.RawUI.MaxWindowSize.Width)

The asterisk is removed

Example:
echo "Math $($x - $y)"
Becomes
Write-Output "Math $($x $y)"
The minus is removed

Example:
Write-Host "Argument $counter :" $arg
Becomes
Write-Host "Argument $counter $arg
One of the quotes and the colon

A post mentions this in another issue:

Originally posted by @PrzemyslawKlys in PowerShell/vscode-powershell#2696 (comment)

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