@@ -3,7 +3,10 @@ import type { ModeledMethod } from "./modeled-method";
33import type { BaseLogger } from "../common/logging" ;
44
55interface Notifier {
6- missingMethod ( signature : string ) : void ;
6+ missingMethod (
7+ signature : string ,
8+ modeledMethods : readonly ModeledMethod [ ] ,
9+ ) : void ;
710 inconsistentSupported ( signature : string , expectedSupported : boolean ) : void ;
811}
912
@@ -21,14 +24,14 @@ export function checkConsistency(
2124 ) ;
2225
2326 for ( const signature in modeledMethods ) {
27+ const modeledMethodsForSignature = modeledMethods [ signature ] ;
28+
2429 const method = methodsBySignature [ signature ] ;
2530 if ( ! method ) {
26- notifier . missingMethod ( signature ) ;
31+ notifier . missingMethod ( signature , modeledMethodsForSignature ) ;
2732 continue ;
2833 }
2934
30- const modeledMethodsForSignature = modeledMethods [ signature ] ;
31-
3235 checkMethodConsistency ( method , modeledMethodsForSignature , notifier ) ;
3336 }
3437}
@@ -51,9 +54,14 @@ function checkMethodConsistency(
5154export class DefaultNotifier implements Notifier {
5255 constructor ( private readonly logger : BaseLogger ) { }
5356
54- missingMethod ( signature : string ) {
57+ missingMethod ( signature : string , modeledMethods : readonly ModeledMethod [ ] ) {
58+ const modelTypes = modeledMethods
59+ . map ( ( m ) => m . type )
60+ . filter ( ( t ) => t !== "none" )
61+ . join ( ", " ) ;
62+
5563 void this . logger . log (
56- `Model editor query consistency check: Missing method ${ signature } for method that is modeled. ` ,
64+ `Model editor query consistency check: Missing method ${ signature } for method that is modeled as ${ modelTypes } ` ,
5765 ) ;
5866 }
5967
0 commit comments