Skip to content
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 ShowHelpHandler by running with RequiresForeground #1970

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

andyleejordan
Copy link
Member

This was broken after the rewrite because we'd forgotten to specify that it needs the foreground (which implies too that it must run immediately). Now the script actually executes, either showing the help in the Extension Terminal (or...I guess nowhere for clients without it) or opening the URL it found. This should still be rewritten properly to return the help over LSP and do something better with it, but at least it's no longer broken.

Fixes PowerShell/vscode-powershell#4212.

This was broken after the rewrite because we'd forgotten to specify that
it needs the foreground (which implies too that it must run
immediately). Now the script actually executes, either showing the help
in the Extension Terminal (or...I guess nowhere for clients without it)
or opening the URL it found. This should still be rewritten properly to
return the help over LSP and do something better with it, but at least
it's no longer broken.
@andyleejordan andyleejordan requested a review from a team as a code owner December 9, 2022 19:13
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andyleejordan andyleejordan merged commit e28d8df into main Dec 9, 2022
@andyleejordan andyleejordan deleted the andschwa/show-help branch December 9, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Engine Issue-Bug A bug to squash.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "Get Help for Command"
2 participants