From 125fd89ceeec582f755801d1dff306b9e5a2258b Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Tue, 6 Dec 2022 10:56:38 -0800 Subject: [PATCH] testing: prefer to show description in test tooltip (#168203) Showing the label is redundant in the explorer view where the label is shown in the tree item. Prefer showing the description. Fixes #166374 --- src/vs/workbench/contrib/testing/browser/testingExplorerView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/testing/browser/testingExplorerView.ts b/src/vs/workbench/contrib/testing/browser/testingExplorerView.ts index d8b979e968e..b7a1afd59e6 100644 --- a/src/vs/workbench/contrib/testing/browser/testingExplorerView.ts +++ b/src/vs/workbench/contrib/testing/browser/testingExplorerView.ts @@ -1027,7 +1027,7 @@ class TestExplorerActionRunner extends ActionRunner { } const getLabelForTestTreeElement = (element: TestItemTreeElement) => { - let label = labelForTestInState(element.label, element.state); + let label = labelForTestInState(element.description || element.label, element.state); if (element instanceof TestItemTreeElement) { if (element.duration !== undefined) {