Don't disable proposed features for nightly

This commit is contained in:
Aleksey Kladov 2020-03-04 21:35:31 +01:00
parent af77ab4b9b
commit 4a48256f0e

View File

@ -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)?;