Skip to content

Commit a96786b

Browse files
committed
completion: env 严格化
1 parent bbcc33b commit a96786b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/emmylua_ls/src/handlers/completion/providers/env_provider.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ pub fn add_completion(builder: &mut CompletionBuilder) -> Option<()> {
2222
match node {
2323
LuaAst::LuaNameExpr(_) => {}
2424
LuaAst::LuaBlock(_) => {}
25+
LuaAst::LuaClosureExpr(_) => {}
2526
LuaAst::LuaCallArgList(_) => {}
2627
// 字符串中触发的补全
2728
LuaAst::LuaLiteralExpr(_) => return None,
28-
_ => {}
29+
_ => return None,
2930
};
3031

3132
let mut duplicated_name = HashSet::new();

0 commit comments

Comments
 (0)