Skip to content

Right-click Get Help for Command returns help for Get-Help cmdlet #1740

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

Closed
BernieWhite opened this issue Jan 31, 2019 · 3 comments
Closed

Right-click Get Help for Command returns help for Get-Help cmdlet #1740

BernieWhite opened this issue Jan 31, 2019 · 3 comments
Labels
Issue-Bug A bug to squash.

Comments

@BernieWhite
Copy link

Issue Description

Get Help for Command in right-click menu has different behaviour then command bar PowerShell: Get Help for Command.

The right-click menu gets online help for the Get-Help cmdlet. Where as the command bar actually returns the online help for the specified cmdlet under the cursor.

Attached Logs

logs.zip

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.30.2
PowerShell Extension Version 1.11.0

PowerShell Information

Name Value
PSVersion 5.1.17763.134
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17763.134
BuildVersion 10.0.17763.134
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azure-pipelines ms-azure-devops 1.147.1
code-spell-checker streetsidesoftware 1.6.10
DocFX ms-docfx 0.1.3
docs-article-templates docsmsft 0.1.4
docs-authoring-pack docsmsft 0.1.1
docs-markdown docsmsft 0.2.2
docs-preview docsmsft 0.3.16
github-issues-prs ms-vscode 0.9.1
gitlens eamodio 9.4.1
PowerShell ms-vscode 1.11.0
vscode-markdownlint DavidAnson 0.23.0
vscode-pull-request-github GitHub 0.3.2
vscode-yaml redhat 0.2.1
@swiatek25
Copy link

Confirmed. Experiencing the same issues.

@corbob
Copy link
Contributor

corbob commented Jan 31, 2019

This is also happening in the Preview extension. The only thing I can think is that VSCode doesn't have a cursor when you right click and so it doesn't know what to send (and the default is get-help).

Perhaps the default should be to return a message that we didn't run it because there was no command sent?

@SydneyhSmith SydneyhSmith added Issue-Discussion Let's talk about it. Triage Issue-Bug A bug to squash. and removed Issue-Discussion Let's talk about it. Triage labels Jan 31, 2019
@corbob
Copy link
Contributor

corbob commented Feb 5, 2019

It would seem that when we added the Command Explorer and added an optional parameter to the vscode command to show help that right click passes an object in. This object doesn't have a name which is what we use from Command Explorer. I've got a fix and will create a PR in the morning to get this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

4 participants