@@ -65,7 +65,7 @@ import { ITestProfileService, canUseProfileWithTest } from '../common/testProfil
65
65
import { LiveTestResult , TestResultItemChangeReason } from '../common/testResult.js' ;
66
66
import { ITestResultService } from '../common/testResultService.js' ;
67
67
import { IMainThreadTestCollection , ITestService , testCollectionIsEmpty } from '../common/testService.js' ;
68
- import { ITestRunProfile , InternalTestItem , TestControllerCapability , TestItemExpandState , TestResultState , TestRunProfileBitset } from '../common/testTypes.js' ;
68
+ import { ITestRunProfile , InternalTestItem , TestControllerCapability , TestItemExpandState , TestResultState , TestRunProfileBitset , testResultStateToContextValues } from '../common/testTypes.js' ;
69
69
import { TestingContextKeys } from '../common/testingContextKeys.js' ;
70
70
import { ITestingContinuousRunService } from '../common/testingContinuousRunService.js' ;
71
71
import { ITestingPeekOpener } from '../common/testingPeekOpener.js' ;
@@ -1500,14 +1500,14 @@ class TestItemRenderer extends Disposable
1500
1500
public renderElement ( node : ITreeNode < TestItemTreeElement , FuzzyScore > , _depth : number , data : ITestElementTemplateData ) : void {
1501
1501
data . elementDisposable . clear ( ) ;
1502
1502
data . current = node . element ;
1503
- this . fillActionBar ( node . element , data ) ;
1504
-
1505
1503
1506
1504
data . elementDisposable . add ( node . element . onChange ( ( ) => this . _renderElement ( node , data ) ) ) ;
1507
1505
this . _renderElement ( node , data ) ;
1508
1506
}
1509
1507
1510
1508
public _renderElement ( node : ITreeNode < TestItemTreeElement , FuzzyScore > , data : ITestElementTemplateData ) : void {
1509
+ this . fillActionBar ( node . element , data ) ;
1510
+
1511
1511
const testHidden = this . testService . excluded . contains ( node . element . test ) ;
1512
1512
data . wrapper . classList . toggle ( 'test-is-hidden' , testHidden ) ;
1513
1513
@@ -1583,6 +1583,12 @@ const getActionableElementActions = (
1583
1583
] , [
1584
1584
TestingContextKeys . supportsContinuousRun . key ,
1585
1585
supportsCr ,
1586
+ ] , [
1587
+ TestingContextKeys . testResultOutdated . key ,
1588
+ element . retired ,
1589
+ ] , [
1590
+ TestingContextKeys . testResultState . key ,
1591
+ testResultStateToContextValues [ element . state ] ,
1586
1592
] ) ;
1587
1593
}
1588
1594
0 commit comments