Zed extension: Readd the check for slint-lsp to use the binary in PATH

This commit is contained in:
Manuel Plavsic 2025-11-11 10:45:00 +01:00 committed by Simon Hausmann
parent 4e466df420
commit 3668eeca86

View file

@ -30,6 +30,10 @@ impl SlintExtension {
return Ok(SlintBinary { path, args: binary_args });
}
if let Some(path) = worktree.which("slint-lsp") {
return Ok(SlintBinary { path, args: binary_args });
}
if let Some(path) = &self.cached_binary_path {
if fs::metadata(path).is_ok_and(|stat| stat.is_file()) {
zed::set_language_server_installation_status(