-
Notifications
You must be signed in to change notification settings - Fork 223
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
fix #1393: Always use local help to return Full help #1394
fix #1393: Always use local help to return Full help #1394
Conversation
I'm curious... does that actually fix your issue? I would have guessed that you needed to add it here: Line 141 in 7a828a0
|
What you've changed is what gets run by the Command Explorer added by @corbob which only gets fired if you hit this little question mark: |
Also just want to say, thank you so much for contributing. I love it when folks open issues and then submit PRs! You're always welcome here! |
Thanks for the quick response on this @TylerLeonhardt :) You may very well be right that I applied the fix in the wrong spot. I read the Development docs on the ReadMe and the Contribution Guidelines, but neither of them told me how to test the changes. I was able to build the project file as the guide suggested, but wasn't sure how to test the changes. Perhaps there are docs on how to do that and I just overlooked them? I was also hoping to add some unit tests around the new functionality, but could not get the test projects to build. This is what I tried:
I do have dotnet.exe on my Windows PATH though, and have v 5.0.100 of the .Net SDK installed. I figured somebody had broken the tests in the That said, I do believe you're right though that I fixed the wrong code. Although, I'm wondering if we actually want the fix applied to both places. I'll update the PR and let you comment on it. Thanks Tyler! |
b83e311
to
7925b3d
Compare
The easiest way to test your change manually is by using this guide: That will start a local build of the vscode extension with your local build of PSES. |
Awesome, that would have been useful. Once I followed the code from the vscode-powershell repo to this one, I never went back to it. I kind of assumed there'd be a stand-alone way to test this git repo; although since I was experiencing the problem in VS Code, in retrospect it seems logical to go back to that repo and see how to integrate my changes from this repo into it. Still, this would be useful info to have on the ReadMe 😉 |
Done: |
If the user has overridden the Get-Help -Online parameter to always be true, then calls to Get-Help will always launch a new browser window to the cmdlet help. Instead, we want it to return the full cmdlet text as intended, otherwise things like intellisense and tooltips may end up opening the cmdlet help in a new browser window.
7925b3d
to
680c6d4
Compare
Following that doc I was able to test my changes :)
I also tested clicking on the Help icon in the PowerShell Command Explorer that you mentioned, but it seems it always open using the Online help, even when the So this PR now has only the change that actually addresses the issue I reported, and I've confirmed it does indeed solve the problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Given the side effect of this change, I can't think of any test that could be written with a reasonable amount of work so we can skip that here.
Will merge tomorrow!
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.
fixes #1393
fixes PowerShell/vscode-powershell#3071