mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Zed extension: Readd the check for slint-lsp to use the binary in PATH
This commit is contained in:
parent
4e466df420
commit
3668eeca86
1 changed files with 4 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue