Allow Code Lenses to Provide only a Title

Fixes #24209

**Bug**
Currently, for the js/ts references code lens, even if there are zero references you can click on the lens. This display an empty peek view

**Fix**
Allow code lenses to only register a title for the lens with no actual backing command
This commit is contained in:
Matt Bierner
2017-04-10 14:56:37 -07:00
parent 8d3f2bf45b
commit a0cb432471
3 changed files with 3 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ export class CommandsConverter {
title: command.title
};
if (!isFalsyOrEmpty(command.arguments)) {
if (command.command && !isFalsyOrEmpty(command.arguments)) {
// we have a contributed command with arguments. that
// means we don't want to send the arguments around