diff --git a/server/src/core/diagnostic_codes_list.rs b/server/src/core/diagnostic_codes_list.rs index c9cfec03..23739809 100644 --- a/server/src/core/diagnostic_codes_list.rs +++ b/server/src/core/diagnostic_codes_list.rs @@ -428,7 +428,7 @@ OLS05048, DiagnosticSetting::Error, "Invalid child node {0} in function node", OLS05049, DiagnosticSetting::Error, "Data file {0} not found in the module", /** */ -OLS05050, DiagnosticSetting::Error, "Data file {0} is not a valid XML or CSV file", +OLS05050, DiagnosticSetting::Error, "Data file {0} is not a valid XML, CSV, or SQL file", /** * An XML_ID should be in the format 'xml_id' or 'module.xml_id', but can't contains more dots */ diff --git a/server/src/core/symbols/module_symbol.rs b/server/src/core/symbols/module_symbol.rs index fc27e0d6..e5949211 100644 --- a/server/src/core/symbols/module_symbol.rs +++ b/server/src/core/symbols/module_symbol.rs @@ -353,7 +353,7 @@ impl ModuleSymbol { ..diagnostic.clone() }); } - } else if path.extension().map_or(true, |ext| !["xml", "csv"].contains(&ext.to_str().unwrap_or(""))) { + } else if path.extension().map_or(true, |ext| !["xml", "csv", "sql"].contains(&ext.to_str().unwrap_or(""))) { if let Some(diagnostic) = create_diagnostic(session, DiagnosticCode::OLS05050, &[&path.sanitize()]) { diagnostics.push(Diagnostic { range: Range::new(Position::new(data_range.start().to_u32(), 0), Position::new(data_range.end().to_u32(), 0)),