Skip to content

Formatting does not properly align equal signs in enums #1739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
5 tasks done
dstroupe opened this issue Nov 4, 2021 · 1 comment
Open
5 tasks done

Formatting does not properly align equal signs in enums #1739

dstroupe opened this issue Nov 4, 2021 · 1 comment

Comments

@dstroupe
Copy link

dstroupe commented Nov 4, 2021

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • 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.5
PSEdition                      Core 
GitCommitId                    7.1.5
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.61.2
6cba118ac49a1b88332f312a8f67186f7f3c1643
x64

Extension Version

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.

Visuals

No response

Logs

No response

@andyleejordan
Copy link
Member

Formatting happens via PSScriptAnalyzer, transferring...

@andyleejordan andyleejordan transferred this issue from PowerShell/vscode-powershell Nov 4, 2021
@ghost ghost added the Needs: Triage 🔍 label Nov 4, 2021
@andyleejordan andyleejordan changed the title VS Code formatting does not properly align equal signs in enums Formatting does not properly align equal signs in enums Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants