You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In either VSCode v1.45.1 or VSCode Insiders v1.46.0-insider, when powershell.codeFormatting.useCorrectCasing is set to true, any scripts that call another PowerShell script file like this:
& .\Test-Junk.ps1
will get automatically formatted like this:
&Test-Junk.ps1
which breaks the script. See attached gif showing the issue. It may be difficult to see, but I also have the format on save.
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 7.0.1
PSEdition Core
GitCommitId 7.0.1
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0> (Get-Module-ListAvailable PSScriptAnalyzer).Version |ForEach-Object { $_.ToString() }
1.18.01.18.3
The text was updated successfully, but these errors were encountered:
@dprice thanks for opening this issue...upon investigation it looks like this bug is fixed in the latest version of PSSA but VSCode is not pulling in this version thus you see the bug, therefore this looks like a duplicate of #2697
Steps to reproduce
In either VSCode v1.45.1 or VSCode Insiders v1.46.0-insider, when
powershell.codeFormatting.useCorrectCasing
is set totrue
, any scripts that call another PowerShell script file like this:will get automatically formatted like this:
which breaks the script. See attached gif showing the issue. It may be difficult to see, but I also have the format on save.
Environment data
The text was updated successfully, but these errors were encountered: