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.
1 parent 7fa9963 commit 7d83bbdCopy full SHA for 7d83bbd
src/emmylua.rs
@@ -17,7 +17,9 @@ impl EmmyLuaExtension {
17
if let Ok(lsp_settings) = zed::settings::LspSettings::for_worktree("emmylua", worktree) {
18
if let Some(binary) = lsp_settings.binary {
19
if let Some(path) = binary.path {
20
- return Ok(path);
+ if fs::metadata(&path).map_or(false, |m| m.is_file()) {
21
+ return Ok(path);
22
+ }
23
}
24
25
0 commit comments