Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 21b6ce8

Browse files
author
Jonas Schievink
committed
Bump extension version
1 parent c5c442e commit 21b6ce8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Rust language support for Visual Studio Code",
55
"private": true,
66
"icon": "icon.png",
7-
"version": "0.4.0-dev",
7+
"version": "0.5.0-dev",
88
"releaseTag": null,
99
"publisher": "rust-lang",
1010
"repository": {

xtask/src/dist.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ use xshell::{cmd, Shell};
1010

1111
use crate::{date_iso, flags, project_root};
1212

13+
const VERSION_STABLE: &str = "0.3";
14+
const VERSION_NIGHTLY: &str = "0.4";
15+
const VERSION_DEV: &str = "0.5"; // keep this one in sync with `package.json`
16+
1317
impl flags::Dist {
1418
pub(crate) fn run(self, sh: &Shell) -> anyhow::Result<()> {
1519
let stable = sh.var("GITHUB_REF").unwrap_or_default().as_str() == "refs/heads/release";
@@ -25,10 +29,10 @@ impl flags::Dist {
2529

2630
if let Some(patch_version) = self.client_patch_version {
2731
let version = if stable {
28-
format!("0.2.{}", patch_version)
32+
format!("{}.{}", VERSION_STABLE, patch_version)
2933
} else {
3034
// A hack to make VS Code prefer nightly over stable.
31-
format!("0.3.{}", patch_version)
35+
format!("{}.{}", VERSION_NIGHTLY, patch_version)
3236
};
3337
let release_tag = if stable { date_iso(sh)? } else { "nightly".to_string() };
3438
dist_client(sh, &version, &release_tag, &target)?;
@@ -54,7 +58,10 @@ fn dist_client(
5458

5559
let mut patch = Patch::new(sh, "./package.json")?;
5660
patch
57-
.replace(r#""version": "0.4.0-dev""#, &format!(r#""version": "{}""#, version))
61+
.replace(
62+
&format!(r#""version": "{}.0-dev""#, VERSION_DEV),
63+
&format!(r#""version": "{}""#, version),
64+
)
5865
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{}""#, release_tag))
5966
.replace(r#""$generated-start": {},"#, "")
6067
.replace(",\n \"$generated-end\": {}", "")

0 commit comments

Comments
 (0)