Skip to content

Commit 5ec9f09

Browse files
committed
make workspaceRoots work
1 parent 323cce7 commit 5ec9f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/emmylua_code_analysis/src/db_index/module

crates/emmylua_code_analysis/src/db_index/module/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl LuaModuleIndex {
301301
matched_module_path = Some((module_path, workspace.id));
302302
} else {
303303
let (matched, _) = matched_module_path.as_ref().unwrap();
304-
if module_path.len() > matched.len() {
304+
if module_path.len() < matched.len() {
305305
matched_module_path = Some((module_path, workspace.id));
306306
}
307307
}

0 commit comments

Comments
 (0)