Skip to content

Commit fd14824

Browse files
mmahroussfda-odoo
authored andcommitted
[IMP] update disabled OLS05001
1 parent 785fed6 commit fd14824

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

server/src/core/python_arch_eval_hooks.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,15 +1247,12 @@ impl PythonArchEvalHooks {
12471247
let module_rc_bw = module_rc.borrow();
12481248
let Some(_symbol) = module_rc_bw.as_module_package().xml_id_locations.get(xml_id.as_str()) else {
12491249
if in_validation {
1250-
/*diagnostics.push(Diagnostic::new(
1251-
FileMgr::textRange_to_temporary_Range(&xml_id_expr.range()),
1252-
Some(DiagnosticSeverity::ERROR),
1253-
Some(NumberOrString::String(S!("OLS30329"))),
1254-
Some(EXTENSION_NAME.to_string()),
1255-
S!("Unknown XML ID"),
1256-
None,
1257-
None
1258-
));*/ //removed, because there is too many valid place where we can't evaluate it correctly (see stock tests)
1250+
/*if let Some(diagnostic) = create_diagnostic(session, DiagnosticCode::OLS05001, &[]) {
1251+
diagnostics.push(Diagnostic {
1252+
range: FileMgr::textRange_to_temporary_Range(&xml_id_expr.range()),
1253+
..diagnostic
1254+
});
1255+
}*/ //removed, because there is too many valid place where we can't evaluate it correctly (see stock tests)
12591256
}
12601257
return None;
12611258
};

0 commit comments

Comments
 (0)