Open zhaohaoshu opened 3 years ago
Adding another case that necessary character is removed.
Before format:
param(
[string]$s = (Join-Path a ([datetime]::Now.ToString('yyyyMMddHHmmss')))
)
After format (note that ::
is changed to :
):
param(
[string]$s = (Join-Path a ([datetime]:Now.ToString('yyyyMMddHHmmss')))
)
And another case that removes the +
operator.
Before: Join-Path a ('a' + '.txt')
After: Join-Path a ('a' '.txt')
System Details
System Details Output
Issue Description
Create a PowerShell file, input following script, and hit
Alt+Shift+F
. The pipe operator in$a | ForEach-Object { $_ }
is removed.Related settings in
settings.json
:Expected Behaviour
The format result should look like:
Actual Behaviour
The format result is (note that the
|
is missing):