Skip to content

Commit

Permalink
Fix Right Click Help lookup not always working. (PowerShell#1743)
Browse files Browse the repository at this point in the history
* Check that item has a Name property

* Update src/features/ShowHelp.ts

Do a truthy check instead.

Co-Authored-By: corbob <30301021+corbob@users.noreply.github.com>
  • Loading branch information
corbob authored and TylerLeonhardt committed Mar 13, 2019
1 parent e406d2c commit fb2a0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/ShowHelp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ShowHelpFeature implements IFeature {
"Unable to instantiate; language client undefined.");
return;
}
if (item === undefined) {
if (!item || !item.Name) {

const editor = vscode.window.activeTextEditor;

Expand Down

0 comments on commit fb2a0af

Please sign in to comment.