PowerShell-Beautifier icon indicating copy to clipboard operation
PowerShell-Beautifier copied to clipboard

Type names have incorrect case

Open JamesLear92 opened this issue 6 years ago • 1 comments

Hello there, I had a quick look into the script, and it appears that the accelorator/type names are found using:

[psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::get

However, if you look into the hashtable that this returns, the casing is correct: $Table = [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::get $Table.Keys | % {$Table[$_] | select Name, BaseType}

Maybe it would be better to use these values

JamesLear92 avatar Apr 06 '18 11:04 JamesLear92

Sure, I can check that out this weekend. Are there any particular types that are causing issues for you? I will add them to my test cases.

DTW-DanWard avatar Apr 06 '18 15:04 DTW-DanWard