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)