Skip to content

Commit 3c7a37f

Browse files
committed
Fix resources error
1 parent 61b277c commit 3c7a37f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/emmylua_code_analysis/src/resources/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn load_resource_std(
4040
.into_iter()
4141
.filter_map(|file| {
4242
if file.path.ends_with(".lua") {
43-
let path = std_dir.join(&file.path).to_str().unwrap().to_string();
43+
let path = resoucres_dir.join(&file.path).to_str().unwrap().to_string();
4444
Some(LuaFileInfo {
4545
path,
4646
content: file.content,

crates/emmylua_ls/src/cmd_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct CmdArgs {
2727
pub log_path: NoneableString,
2828

2929
/// Path to the resources and logs directory. Use 'none' to indicate that assets should not be output to the file system.
30-
#[cfg_attr(feature = "cli", structopt(long, default_value = "none"))]
30+
#[cfg_attr(feature = "cli", structopt(long, default_value = "\"\""))]
3131
pub resources_path: NoneableString,
3232

3333
/// Whether to load the standard library.

0 commit comments

Comments
 (0)