vscode-powershell
vscode-powershell copied to clipboard
Feature Request: Align Equal Sign on Enum Statement
Prerequisites
- [x] I have written a descriptive issue title.
- [x] I have searched all issues to ensure it has not already been reported.
Summary
The vscode-powershell extension appears to align the equal signs on hashtables, but it doesn't align the equal signs within the Enum statement.
Given the following...
Enum TestEnum {
one = 1
three = 3
four = 4
seven = 7
eleven = 11
}
$testHashTable = @{
one = 1
three = 3
four = 4
seven = 7
eleven = 11
}
...it reformats it to this...
Enum TestEnum {
one = 1
three = 3
four = 4
seven = 7
eleven = 11
}
$testHashTable = @{
one = 1
three = 3
four = 4
seven = 7
eleven = 11
}
Proposed Design
If the Enum statement contains equal signs then I would expect that the equal signs would be aligned like this...
Enum TestEnum {
one = 1
three = 3
four = 4
seven = 7
eleven = 11
}
Thanks for your submission! Formatting comes from scriptanalyzer, and this is a dupe of https://github.com/PowerShell/PSScriptAnalyzer/issues/1739. Once the issue is fixed there, it should work in the next version of the PowerShell extension once the module is incorporated. I'm going to leave this issue open for tracking but note that there is nothing we will do here to fix this.
@andyleejordan FYI I created a new Pending-External label to apply to issues such as this where the fix is downstream in PowerShell/PSScriptAnalyzer/etc.
Thanks Justin!