-
Notifications
You must be signed in to change notification settings - Fork 234
Calling Get-Help with the 'ShowWindow' parameter throws an error in the integrated console #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is error because PSES returns Note that it is not null checking BTW this is the error I see:
NOTE: this fix will NOT help with the help window attaching to the desktop and not popping to the top. That is unfortunately. But given that PSES runs in a process without a window, we'd need to pass the VSCode hwnd (on Windows only) to PSES and then we could return that hwnd when this command asks for |
This fix overrides the built-in PSHost.PrivateData property, which returns null. The override instead returns an empty PSObject. This fixes the Get-Help -ShowWindow scenario since Windows PowerShell will no longer get a NullRefEx on access the host PrivateData property without doing a null check. Since PrivateData["Window"] will still return null, PowerShell will show the dialog with the desktop as the parent window. IOW this PR does not fix the issue with the help window not appearing on top. It simply fixes the error you get in PSIC.
Fix PowerShell#532: DEVPATH env variable not being set for integrated console
System Details
Windows 10 Enterprise Version 1607 (OS Build 14393.1066)
Issue Description
Not sure if this is supposed to work, but ...
Calling Get-Help with the 'ShowWindow' parameter throws an error in the integrated console
Attached Logs
logs.zip
The text was updated successfully, but these errors were encountered: