File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/extension/method/provider Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { applyIdentityProperty } from '../../../utils/applyIdentityProperty' ;
1
2
import { functionMethod } from './functionMethod' ;
2
3
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3
4
type Method = ( name : string , value : any ) => ( ) => any ;
@@ -45,6 +46,10 @@ export class Provider {
45
46
return this . _method ( name , value ( ) ) ;
46
47
}
47
48
48
- return this . _method ( name , value ) ;
49
+ // FIXME: Do this smarter, it's a bit counter intuitive to return a new
50
+ // proxy every single time this function is called. It should probably mock
51
+ // based on name if that ends up being a string representing the type
52
+ // signature.
53
+ return applyIdentityProperty ( this . _method , name ) ( name , value ) ;
49
54
}
50
55
}
You can’t perform that action at this time.
0 commit comments