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
This commit is contained in:
Connor Peet 2022-12-06 10:56:38 -08:00 committed by GitHub
parent fa0e000e1d
commit 125fd89cee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {