Don't disable proposed features for nightly
This commit is contained in:
parent
af77ab4b9b
commit
4a48256f0e
@ -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)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user