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' ;
12import { functionMethod } from './functionMethod' ;
23// eslint-disable-next-line @typescript-eslint/no-explicit-any
34type Method = ( name : string , value : any ) => ( ) => any ;
@@ -45,6 +46,10 @@ export class Provider {
4546 return this . _method ( name , value ( ) ) ;
4647 }
4748
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 ) ;
4954 }
5055}
You can’t perform that action at this time.
0 commit comments