Add -ExcludeDontShow switch to New-MarkdownCommandHelp to suppress [Parameter(DontShow)] parameters#846
Open
Copilot wants to merge 4 commits into
Open
Add -ExcludeDontShow switch to New-MarkdownCommandHelp to suppress [Parameter(DontShow)] parameters#846Copilot wants to merge 4 commits into
-ExcludeDontShow switch to New-MarkdownCommandHelp to suppress [Parameter(DontShow)] parameters#846Copilot wants to merge 4 commits into
Conversation
3 tasks
Copilot
AI
changed the title
[WIP] Fix Microsoft.PowerShell.PlatyPS not honoring [Parameter(DontShow)]
Honor May 26, 2026
[Parameter(DontShow)] in New-MarkdownCommandHelp output
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
adityapatwardhan
approved these changes
May 28, 2026
Member
|
@copilot - change implementation to have a Switch parameter called |
Author
Done. Added |
Copilot
AI
changed the title
Honor
Add May 28, 2026
[Parameter(DontShow)] in New-MarkdownCommandHelp output-ExcludeDontShow switch to New-MarkdownCommandHelp to suppress [Parameter(DontShow)] parameters
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
adityapatwardhan
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Microsoft.PowerShell.PlatyPS1.0.1 was emitting hidden parameters in generated markdown even when parameters were annotated with[Parameter(DontShow)]. This change adds an opt-in-ExcludeDontShowswitch toNew-MarkdownCommandHelpthat aligns behavior with expected PowerShell metadata semantics by excluding hidden parameters from generated help when specified.What changed
NewMarkdownHelpCommandnow exposes an-ExcludeDontShowswitch parameter. When provided,TransformSettings.ExcludeDontShowis set totruefor that invocation.TransformBaseenforcesExcludeDontShowconsistently in:GetParameters)GetSyntaxItem, both positional and named parameter passes)Regression coverage
NewMarkdownHelp.Tests.ps1that defines a function with:[Parameter(DontShow)]parametersExample scenario covered
This change is
This change is