platyPS icon indicating copy to clipboard operation
platyPS copied to clipboard

Fix: wrong outputs of ParameterType and Syntax if the type is nested and generic

Open teramako opened this issue 3 months ago • 1 comments

PR Summary

  • Fix issue: #822
  • Unifed GetAbbreviatedType() method for generating abbreviations for syntax parameters and GetParameterTypeName() method for generating parameter types

PR Context

For:

  • https://github.com/PowerShell/platyPS/issues/822

teramako avatar Sep 14 '25 12:09 teramako

My current patch aligns with the current platyPS design by limiting parameter type abbreviations to namespaces only. When -AbbreviateParameterTypeName is specified, System.Int32 is rendered as Int32, not int.

If you prefer it to be int, please reply. In fact, PowerShell help displays System.Int32 as int.

teramako avatar Sep 14 '25 13:09 teramako