mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
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:
parent
fa0e000e1d
commit
125fd89cee
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue