From 4a48256f0ea4846d947bcbab6e7663ff02fc8ec5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 4 Mar 2020 21:35:31 +0100 Subject: Don't disable proposed features for nightly --- xtask/src/dist.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xtask') diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index cdd3db21c..737751ae8 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -30,12 +30,12 @@ fn dist_client(nightly: bool) -> Result<()> { let mut package_json = original_package_json.replace(r#""enableProposedApi": true,"#, r#""#); if nightly { - package_json = package_json - .replace(r#""name": "rust-analyzer""#, r#""name": "rust-analyzer-nightly""#) - .replace( - r#""displayName": "rust-analyzer""#, - r#""displayName": "rust-analyzer nightly""#, - ); + package_json = package_json.replace( + r#""displayName": "rust-analyzer""#, + r#""displayName": "rust-analyzer nightly""#, + ); + } else { + package_json = original_package_json.replace(r#""enableProposedApi": true,"#, r#""#); } fs2::write(package_json_path, package_json)?; -- cgit v1.2.3