mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user