From 56339d93818f82352fdf57833f1255e9e4ec5757 Mon Sep 17 00:00:00 2001 From: weartist Date: Sat, 17 Jun 2023 20:08:06 +0800 Subject: [PATCH] Fix #185051 --- extensions/references-view/src/calls/model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/references-view/src/calls/model.ts b/extensions/references-view/src/calls/model.ts index 30d320355aa..087e577b160 100644 --- a/extensions/references-view/src/calls/model.ts +++ b/extensions/references-view/src/calls/model.ts @@ -177,7 +177,7 @@ class CallItemDataProvider implements vscode.TreeDataProvider { const item = new vscode.TreeItem(element.item.name); item.description = element.item.detail; - item.tooltip = item.label ? `${item.label} - ${element.item.detail}` : element.item.detail; + item.tooltip = item.label && element.item.detail ? `${item.label} - ${element.item.detail}` : item.label ? `${item.label}` : element.item.detail; item.contextValue = 'call-item'; item.iconPath = getThemeIcon(element.item.kind);