@@ -3979,8 +3979,8 @@ export class TestState {
39793979 } ;
39803980 }
39813981
3982- public verifyRefactorAvailable ( negative : boolean , triggerReason : ts . RefactorTriggerReason , name : string , actionName ?: string , actionDescription ?: string ) {
3983- let refactors = this . getApplicableRefactorsAtSelection ( triggerReason ) ;
3982+ public verifyRefactorAvailable ( negative : boolean , triggerReason : ts . RefactorTriggerReason , name : string , actionName ?: string , actionDescription ?: string , kind ?: string , preferences = ts . emptyOptions , includeInteractiveActions ?: boolean ) {
3983+ let refactors = this . getApplicableRefactorsAtSelection ( triggerReason , kind , preferences , includeInteractiveActions ) ;
39843984 refactors = refactors . filter ( r => r . name === name ) ;
39853985
39863986 if ( actionName !== undefined ) {
@@ -4445,8 +4445,8 @@ export class TestState {
44454445 test ( renameKeys ( newFileContents , key => pathUpdater ( key ) || key ) , "with file moved" ) ;
44464446 }
44474447
4448- private getApplicableRefactorsAtSelection ( triggerReason : ts . RefactorTriggerReason = "implicit" , kind ?: string , preferences = ts . emptyOptions ) {
4449- return this . getApplicableRefactorsWorker ( this . getSelection ( ) , this . activeFile . fileName , preferences , triggerReason , kind ) ;
4448+ private getApplicableRefactorsAtSelection ( triggerReason : ts . RefactorTriggerReason = "implicit" , kind ?: string , preferences = ts . emptyOptions , includeInteractiveActions ?: boolean ) {
4449+ return this . getApplicableRefactorsWorker ( this . getSelection ( ) , this . activeFile . fileName , preferences , triggerReason , kind , includeInteractiveActions ) ;
44504450 }
44514451 private getApplicableRefactors ( rangeOrMarker : Range | Marker , preferences = ts . emptyOptions , triggerReason : ts . RefactorTriggerReason = "implicit" , kind ?: string , includeInteractiveActions ?: boolean ) : readonly ts . ApplicableRefactorInfo [ ] {
44524452 return this . getApplicableRefactorsWorker ( "position" in rangeOrMarker ? rangeOrMarker . position : rangeOrMarker , rangeOrMarker . fileName , preferences , triggerReason , kind , includeInteractiveActions ) ; // eslint-disable-line local/no-in-operator
0 commit comments