Skip to content

Commit f3c9932

Browse files
committed
support get resources from env $EMMYLUA_LS_RESOURCES
1 parent 2984075 commit f3c9932

File tree

1 file changed

+7
-0
lines changed
  • crates/code_analysis/src

1 file changed

+7
-0
lines changed

crates/code_analysis/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ impl EmmyLuaAnalysis {
8989
}
9090
}
9191

92+
let env_emmylua_resources = env::var("EMMYLUA_LS_RESOURCES").ok()?;
93+
let path = PathBuf::from(env_emmylua_resources);
94+
95+
if path.is_dir() {
96+
return Some(path);
97+
}
98+
9299
None
93100
}
94101

0 commit comments

Comments
 (0)