Skip to content

Commit 19b7c09

Browse files
rename to use async (#946)
1 parent 60dcc2c commit 19b7c09

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function New-VSCodeHtmlContentView {
4343
process {
4444
if ($psEditor -is [Microsoft.PowerShell.EditorServices.Extensions.EditorObject]) {
4545
$viewFeature = $psEditor.Components.Get([Microsoft.PowerShell.EditorServices.VSCode.CustomViews.IHtmlContentViews])
46-
$view = $viewFeature.CreateHtmlContentView($Title).Result
46+
$view = $viewFeature.CreateHtmlContentViewAsync($Title).Result
4747

4848
if ($ShowInColumn) {
4949
$view.Show($ShowInColumn).Wait();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ function Set-VSCodeHtmlContentView {
6464
$htmlContent.JavaScriptPaths = $JavaScriptPaths
6565
$htmlContent.StyleSheetPaths = $StyleSheetPaths
6666

67-
$HtmlContentView.SetContent($htmlContent).Wait();
67+
$HtmlContentView.SetContentAsync($htmlContent).Wait();
6868
}
6969
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ function Write-VSCodeHtmlContentView {
4141
)
4242

4343
process {
44-
$HtmlContentView.AppendContent($AppendedHtmlBodyContent).Wait();
44+
$HtmlContentView.AppendContentAsync($AppendedHtmlBodyContent).Wait();
4545
}
4646
}

0 commit comments

Comments
 (0)