We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d669597 commit 95c287aCopy full SHA for 95c287a
crates/emmylua_code_analysis/src/diagnostic/lua_diagnostic.rs
@@ -40,6 +40,13 @@ impl LuaDiagnostic {
40
}
41
42
let db = compilation.get_db();
43
+ if let Some(module_info) = db.get_module_index().get_workspace_id(file_id) {
44
+ if !module_info.is_main() {
45
+ return None;
46
+ }
47
48
+
49
50
let mut semantic_model = compilation.get_semantic_model(file_id)?;
51
let mut context = DiagnosticContext::new(file_id, db, self.config.clone());
52
0 commit comments