From db7bc559c596de61c9fc4266d55847fa8adf4c04 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 11 Sep 2025 17:11:20 -0700 Subject: [PATCH] Bump extension api, remove windows path workaround --- Cargo.toml | 2 +- src/lib.rs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 17f2763..f2f304c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ crate-type = ["cdylib"] [dependencies] serde = { version = "1.0.219", features = ["derive"] } serde_json = "1.0.140" -zed_extension_api = "0.6.0" +zed_extension_api = "0.7.0" diff --git a/src/lib.rs b/src/lib.rs index 5cd98ba..0f6880a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -430,13 +430,6 @@ impl Extension for Java { let mut current_dir = current_dir().map_err(|err| format!("could not get current dir: {err}"))?; - if current_platform().0 == Os::Windows { - current_dir = current_dir - .strip_prefix("/") - .map_err(|err| err.to_string())? - .to_path_buf(); - } - let configuration = self.language_server_workspace_configuration(language_server_id, worktree)?; let java_home = configuration.as_ref().and_then(|configuration| {