Skip to content

Commit

Permalink
Add pipeline input to Write-VSCodeHtmlContentView cmdlet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
daviwil committed Jul 11, 2017
1 parent 19a13d9 commit 1ac9640
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Write-VSCodeHtmlContentView {
[Microsoft.PowerShell.EditorServices.VSCode.CustomViews.IHtmlContentView]
$HtmlContentView,

[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[Alias("Content")]
[ValidateNotNull()]
[string]
Expand Down

0 comments on commit 1ac9640

Please sign in to comment.