From c66d934f080ba1101cc888aabef0b893b7722481 Mon Sep 17 00:00:00 2001 From: April Date: Mon, 21 Oct 2024 10:04:25 +0200 Subject: [PATCH] Use latest available @vue/language-server package Copied from: https://github.com/zed-industries/zed/pull/18807#issue-2570271457 Authored by @rowanwins --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/vue.rs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 52aa90d..2bf4f31 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -323,7 +323,7 @@ dependencies = [ [[package]] name = "zed_vue" -version = "0.1.1" +version = "0.2.0" dependencies = [ "serde", "zed_extension_api", diff --git a/Cargo.toml b/Cargo.toml index 6cb5b04..2b2e151 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zed_vue" -version = "0.1.1" +version = "0.2.0" edition = "2021" publish = false license = "Apache-2.0" diff --git a/src/vue.rs b/src/vue.rs index f4b33cd..8415c08 100644 --- a/src/vue.rs +++ b/src/vue.rs @@ -48,8 +48,7 @@ impl VueExtension { language_server_id, &zed::LanguageServerInstallationStatus::CheckingForUpdate, ); - // We hardcode the version to 1.8 since we do not support @vue/language-server 2.0 yet. - let version = "1.8".to_string(); + let version = zed::npm_package_latest_version(PACKAGE_NAME)?; if !server_exists || zed::npm_package_installed_version(PACKAGE_NAME)?.as_ref() != Some(&version)