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.
2 parents c3257c3 + feab9e3 commit b9647c8Copy full SHA for b9647c8
crates/emmylua_check/src/init.rs
@@ -5,7 +5,7 @@ use emmylua_code_analysis::{
5
};
6
7
fn root_from_configs(config_paths: &Vec<PathBuf>, fallback: &PathBuf) -> PathBuf {
8
- if config_paths.len() > 1 {
+ if config_paths.len() != 1 {
9
fallback.clone()
10
} else {
11
let config_path = &config_paths[0];
@@ -50,7 +50,10 @@ pub fn load_workspace(
50
vec![
51
main_path.join(".luarc.json"),
52
main_path.join(".emmyrc.json"),
53
- ],
+ ]
54
+ .into_iter()
55
+ .filter(|path| path.exists())
56
+ .collect(),
57
main_path.clone(),
58
)
59
0 commit comments