From b619736f9d322849a1c6ae51bebaf3cc456ca0a7 Mon Sep 17 00:00:00 2001 From: Rowan Winsemius Date: Mon, 7 Oct 2024 22:54:28 +1100 Subject: [PATCH] Use latest available @vue/language-server package --- extensions/vue/extension.toml | 2 +- extensions/vue/src/vue.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/vue/extension.toml b/extensions/vue/extension.toml index 2050d034689d3..628219d522131 100644 --- a/extensions/vue/extension.toml +++ b/extensions/vue/extension.toml @@ -1,7 +1,7 @@ id = "vue" name = "Vue" description = "Vue support." -version = "0.1.0" +version = "0.2.0" schema_version = 1 authors = ["Piotr Osiewicz "] repository = "https://github.com/zed-industries/zed" diff --git a/extensions/vue/src/vue.rs b/extensions/vue/src/vue.rs index f4b33cd04a278..8415c08dbabc0 100644 --- a/extensions/vue/src/vue.rs +++ b/extensions/vue/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)