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
I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
Powershell formatting properly aligns equal signs in hashtables but does not align equal signs in enums:
PowerShell Version
Name Value---- -----PSVersion 7.1.5PSEdition Core GitCommitId 7.1.5OS Microsoft Windows 10.0.19044Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0
Visual Studio Code Version
1.61.26cba118ac49a1b88332f312a8f67186f7f3c1643x64
Extension Version
ms-vscode.powershell@2021.10.2
Steps to Reproduce
Declare an enum and a hashtable with varying lengths of elements so that the equal signs do not align in a column and then format the document. Hash table equal signs will align but the enum equal signs will not.
Prerequisites
Summary
Powershell formatting properly aligns equal signs in hashtables but does not align equal signs in enums:
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2021.10.2Steps to Reproduce
Declare an enum and a hashtable with varying lengths of elements so that the equal signs do not align in a column and then format the document. Hash table equal signs will align but the enum equal signs will not.
Visuals
No response
Logs
No response