Open StevenBucher98 opened 2 years ago
Found this old post when this feature was introduced. The examples don't work in stable nor preview:
New-VSCodeHtmlContentView: C:\Users\stevenbucher\.vscode-insiders\extensions\ms-vscode.powershell-preview-2022.2.0\examples\ContentViewTest.ps1:7:9
Line |
7 | $view = New-VSCodeHtmlContentView -Title "Test View" -ShowInColumn Tw …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Object reference not set to an instance of an object.
Set-VSCodeHtmlContentView: C:\Users\stevenbucher\.vscode-insiders\extensions\ms-vscode.powershell-preview-2022.2.0\examples\ContentViewTest.ps1:8:33
Line |
8 | Set-VSCodeHtmlContentView -View $view @params
| ~~~~~
| Cannot validate argument on parameter 'HtmlContentView'. The argument is null. Provide a valid value for the argument, and then try running the command again.
I also get the same behavior of a blank window appearing, but I dont get any errors. @SteveL-MSFT Any ideas on this?
Prerequisites
Summary
The
ContentViewTest.ps1
does not work as expected when running on either the2022.2.0 preview
or2021.12.0
Stable extension. The expected output is a second column with somePowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Open examples folder via
PowerShell.OpenExamplesFolder
command pallet command.Run
./CommandViewTest.ps1
Second column opens but is blank. It is expected to have a simple page that says "Hello from JavaScript"
Visuals
Logs
No response