Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/src/core/diagnostic_codes_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion server/src/core/symbols/module_symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down