diff --git a/src/features/ShowHelp.ts b/src/features/ShowHelp.ts index 756f2f71f7..3322a43f66 100644 --- a/src/features/ShowHelp.ts +++ b/src/features/ShowHelp.ts @@ -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;