Skip to content

Commit 9537ca8

Browse files
committed
Add pipeline input to Write-VSCodeHtmlContentView cmdlet
This change adds the ValueFromPipeline setting to the AppendedHtmlBodyContent parameter of the Write-VSCodeHtmlContentView cmdlet so that pipeline output can be written out to an HtmlContentView with ease. Resolves PowerShell/vscode-powershell#909.
1 parent 19a13d9 commit 9537ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/PowerShellEditorServices.VSCode/Public/HtmlContentView/Write-VSCodeHtmlContentView.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Write-VSCodeHtmlContentView {
3333
[Microsoft.PowerShell.EditorServices.VSCode.CustomViews.IHtmlContentView]
3434
$HtmlContentView,
3535

36-
[Parameter(Mandatory = $true)]
36+
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
3737
[Alias("Content")]
3838
[ValidateNotNull()]
3939
[string]

0 commit comments

Comments
 (0)