From e3f951848fd314f77aa1ee125499ac5fccc5794b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Wed, 22 Dec 2021 10:24:49 +0200 Subject: [PATCH] Use the same displayName for pre-release versions --- xtask/src/dist.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index c05b0de676..30909f53b2 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -48,22 +48,14 @@ fn dist_client(version: &str, release_tag: &str, target: &Target) -> Result<()> } let _d = pushd("./editors/code")?; - let nightly = release_tag == "nightly"; let mut patch = Patch::new("./package.json")?; patch .replace(r#""version": "0.4.0-dev""#, &format!(r#""version": "{}""#, version)) .replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{}""#, release_tag)) .replace(r#""$generated-start": {},"#, "") - .replace(",\n \"$generated-end\": {}", ""); - - if nightly { - patch.replace( - r#""displayName": "rust-analyzer""#, - r#""displayName": "rust-analyzer (nightly)""#, - ); - } - patch.replace(r#""enableProposedApi": true,"#, r#""#); + .replace(",\n \"$generated-end\": {}", "") + .replace(r#""enableProposedApi": true,"#, r#""#); patch.commit()?; Ok(())