File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
server/features/validation Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -310,13 +310,19 @@ def validate_structure(self):
310
310
severity = 1
311
311
))
312
312
elif not inherited_models :
313
+ model_syms = model .get_main_symbols ()
314
+ models = []
315
+ for model_sym in model_syms :
316
+ models .append (model_sym .get_module_sym ())
317
+ models = ", " .join ([model .name for model in models ])
318
+ models = " or " .join (models .rsplit (", " , 1 ))
313
319
self .diagnostics .append (Diagnostic (
314
320
range = Range (
315
321
start = Position (line = position [0 ][0 ]- 1 , character = position [0 ][1 ]),
316
322
end = Position (line = position [0 ][0 ]- 1 , character = 1 ) if sys .version_info < (3 , 8 ) else \
317
323
Position (line = position [0 ][0 ]- 1 , character = position [1 ][0 ])
318
324
),
319
- message = inherit + " does not exist " ,
325
+ message = inherit + " is not in your dependencies. Please review the dependencies of your module to add " + models + " in it " ,
320
326
source = EXTENSION_NAME ,
321
327
severity = 1
322
328
))
You can’t perform that action at this time.
0 commit comments