Skip to content

Commit 3c44983

Browse files
corbobTylerLeonhardt
authored andcommitted
Fix Right Click Help lookup not always working. (#1743)
* Check that item has a Name property * Update src/features/ShowHelp.ts Do a truthy check instead. Co-Authored-By: corbob <[email protected]>
1 parent 0750e34 commit 3c44983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/features/ShowHelp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ShowHelpFeature implements IFeature {
2222
"Unable to instantiate; language client undefined.");
2323
return;
2424
}
25-
if (item === undefined) {
25+
if (!item || !item.Name) {
2626

2727
const editor = vscode.window.activeTextEditor;
2828

0 commit comments

Comments
 (0)