Skip to content

Commit 235030a

Browse files
committed
fix PowerShell#1393: Always use local help to return Full help
If the user has overridden the Get-Help -Online parameter to always be true, then the ShowHelpHandler will always launch a new browser window to the cmdlet help. Instead, we want it to return the full cmdlet text as intended.
1 parent 44ea602 commit 235030a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Handlers/ShowHelpHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public async Task<Unit> Handle(ShowHelpParams request, CancellationToken cancell
6262
[System.Net.ServicePointManager]::SecurityProtocol = $oldSslVersion
6363
}
6464
65-
return Microsoft.PowerShell.Core\Get-Help $CommandName -Full
65+
return Microsoft.PowerShell.Core\Get-Help $CommandName -Full -Online:$false
6666
";
6767

6868
string helpParams = request.Text;

0 commit comments

Comments
 (0)