mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Merge #11096
11096: Code: Use the same `displayName` for pre-release versions r=lnicola a=lnicola Otherwise the Marketplace shows `(nightly)` for the stable version. bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
012ff79a0d
1 changed files with 2 additions and 10 deletions
|
@ -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(())
|
||||
|
|
Loading…
Reference in a new issue