Skip to content

Commit 3f12bba

Browse files
authored
zed: Fix the name of the slint-lsp binary on windows (#10057)
The .zip file don't contain any subdirectories Fixes #9869
1 parent c5c482f commit 3f12bba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

editors/zed/src/slint.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ impl SlintExtension {
9090
String::new()
9191
}
9292
);
93-
// The directory in the tarball is usually named "slint-lsp", but it is different for the slint-lsp-*-linux-*
94-
let subdir = if target_name == "slint-lsp-aarch64-unknown-linux-gnu" {
93+
let subdir = if asset_file_type == DownloadedFileType::Zip {
94+
""
95+
} else if target_name == "slint-lsp-aarch64-unknown-linux-gnu" {
96+
// The directory in the tarball is usually named "slint-lsp", but it is different for the slint-lsp-*-linux-*
9597
target_name
9698
} else {
9799
"slint-lsp"

0 commit comments

Comments
 (0)