Visual Studio Code, rebuilt in Rust
Rust
feat(port): redraw the app icon as a block cursor with eyes (#75)
Artur Rok5b3924fec43d
diff --git a/native/crates/app/build.rs b/native/crates/app/build.rsindex 13a2778f095..12b04329ec1 100644--- a/native/crates/app/build.rs+++ b/native/crates/app/build.rs@@ -49,14 +49,14 @@ fn embed_info_plist() {println!("cargo::rustc-link-arg-bins=-Wl,-sectcreate,__TEXT,__info_plist,{}", path.display());}-/// port/AppIcon.icon and port/AppIconInverted.icon rendered by Icon Composer's ictool, light (`Default`) and `Dark`,+/// port/AppIcon.icon, port/AppIconBars.icon and port/AppIconBarsCream.icon rendered by Icon Composer's ictool, light (`Default`) and `Dark`,/// as `<icon>-<rendition>.png`: the Dock icons app_icon.rs sets. 412 px in a 512 px canvas, Apple's 824/1024 icon grid.fn render_app_icons() {let developer = std::process::Command::new("xcode-select").arg("-p").output().expect("xcode-select runs (Xcode installed)");let developer = String::from_utf8(developer.stdout).unwrap();let ictool = Path::new(developer.trim()).parent().unwrap().join("Applications/Icon Composer.app/Contents/Executables/ictool");let out = std::env::var("OUT_DIR").unwrap();- for name in ["AppIcon", "AppIconInverted"] {+ for name in ["AppIcon", "AppIconBars", "AppIconBarsCream"] {let icon = Path::new(env!("CARGO_MANIFEST_DIR")).join(format!("../../../port/{name}.icon"));println!("cargo::rerun-if-changed={}", icon.display());for rendition in ["Default", "Dark"] {diff --git a/native/crates/app/src/app_icon.rs b/native/crates/app/src/app_icon.rsindex 8b893033bc1..44aa8c76c4d 100644--- a/native/crates/app/src/app_icon.rs+++ b/native/crates/app/src/app_icon.rs@@ -6,17 +6,23 @@ const DEFAULT_LIGHT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIcon-D#[cfg(target_os = "macos")]const DEFAULT_DARK: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIcon-Dark.png"));#[cfg(target_os = "macos")]-pub const INVERTED_LIGHT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIconInverted-Default.png"));+pub const BARS_LIGHT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIconBars-Default.png"));#[cfg(target_os = "macos")]-pub const INVERTED_DARK: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIconInverted-Dark.png"));+pub const BARS_DARK: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIconBars-Dark.png"));+#[cfg(target_os = "macos")]+pub const BARS_CREAM_LIGHT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIconBarsCream-Default.png"));+#[cfg(target_os = "macos")]+pub const BARS_CREAM_DARK: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/AppIconBarsCream-Dark.png"));/// The PNG the Dock shows for the setting's `look`; `None` is the bundle's own icon (its Assets.car follows the/// appearance itself), which a run outside VSRustium.app does not have.#[cfg(target_os = "macos")]pub fn image(look: &str, dark: bool, bundled: bool) -> Option<&'static [u8]> {match (look, dark) {- ("inverted", false) => Some(INVERTED_LIGHT),- ("inverted", true) => Some(INVERTED_DARK),+ ("bars", false) => Some(BARS_LIGHT),+ ("bars", true) => Some(BARS_DARK),+ ("barsCream", false) => Some(BARS_CREAM_LIGHT),+ ("barsCream", true) => Some(BARS_CREAM_DARK),_ if bundled => None,(_, false) => Some(DEFAULT_LIGHT),(_, true) => Some(DEFAULT_DARK),diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rsindex ffe7a2807c1..89390adb479 100644--- a/native/crates/app/src/workbench.rs+++ b/native/crates/app/src/workbench.rs@@ -2264,7 +2264,7 @@ fn is_tahoe_or_newer() -> bool {false}-/// gpui draws svgs from paths: the letterpress (port/AppIcon.icon's two layers in one fill, cropped to the logo) is+/// gpui draws svgs from paths: the letterpress (port/AppIcon.icon's cursor in one fill, its eyes cut out, cropped to the logo) is/// written once to the temporary folder.fn letterpress_path() -> String {static PATH: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| {diff --git a/native/crates/app/src/workbench/configuration/tests.rs b/native/crates/app/src/workbench/configuration/tests.rsindex bfe2d0c5966..ca41a544b16 100644--- a/native/crates/app/src/workbench/configuration/tests.rs+++ b/native/crates/app/src/workbench/configuration/tests.rs@@ -108,18 +108,21 @@ fn the_app_icon_setting_swaps_the_dock_icon_and_follows_the_appearance(cx: &mut});let default_light = icon(cx).expect("a run outside the bundle shows the rendered default icon");- std::fs::write(&user_settings, r#"{ "window.appIcon": "inverted" }"#).unwrap();+ std::fs::write(&user_settings, r#"{ "window.appIcon": "barsCream" }"#).unwrap();workbench.update(cx, |workbench, cx| workbench.reload_changed_settings_files(cx));- assert_eq!(icon(cx), Some(crate::app_icon::INVERTED_LIGHT));+ assert_eq!(icon(cx), Some(crate::app_icon::BARS_CREAM_LIGHT));+ std::fs::write(&user_settings, r#"{ "window.appIcon": "bars" }"#).unwrap();+ workbench.update(cx, |workbench, cx| workbench.reload_changed_settings_files(cx));+ assert_eq!(icon(cx), Some(crate::app_icon::BARS_LIGHT));workbench.update(cx, |workbench, _| {workbench.host_colors.dark = true;workbench.sync_app_icon();});- assert_eq!(icon(cx), Some(crate::app_icon::INVERTED_DARK));+ assert_eq!(icon(cx), Some(crate::app_icon::BARS_DARK));std::fs::write(&user_settings, r#"{ "window.appIcon": "default" }"#).unwrap();workbench.update(cx, |workbench, cx| workbench.reload_changed_settings_files(cx));- assert!(icon(cx).is_some_and(|image| image != default_light && image != crate::app_icon::INVERTED_DARK), "the dark default");+ assert!(icon(cx).is_some_and(|image| image != default_light && image != crate::app_icon::BARS_DARK), "the dark default");assert_eq!(crate::app_icon::image("default", true, true), None, "the bundle's own icon in VSRustium.app");std::fs::remove_dir_all(dir).unwrap();}diff --git a/native/crates/app/src/workbench/letterpress.svg b/native/crates/app/src/workbench/letterpress.svgindex eece321213c..4baf5e65018 100644--- a/native/crates/app/src/workbench/letterpress.svg+++ b/native/crates/app/src/workbench/letterpress.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="174 198 628 628" width="628" height="628"><g fill="#000" stroke="#000" stroke-linejoin="round"><g stroke-width="12"><path d="M316 338H578L564 430H316A46 46 0 0 1 316 338Z"/><path d="M226 466H559L545 558H226A46 46 0 0 1 226 466Z"/><path d="M396 594H540L526 686H396A46 46 0 0 1 396 594Z"/></g><path stroke-width="36" d="M680 240H784L704 784H600Z"/></g></svg>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="172 172 680 680" width="680" height="680"><path fill="#000" fill-rule="evenodd" transform="skewX(-10) translate(90 0)" d="M442 172H582A120 120 0 0 1 702 292V732A120 120 0 0 1 582 852H442A120 120 0 0 1 322 732V292A120 120 0 0 1 442 172ZM450 350H490A14 14 0 0 1 504 364V424A14 14 0 0 1 490 438H450A14 14 0 0 1 436 424V364A14 14 0 0 1 450 350ZM574 350H614A14 14 0 0 1 628 364V424A14 14 0 0 1 614 438H574A14 14 0 0 1 560 424V364A14 14 0 0 1 574 350Z"/></svg>diff --git a/native/crates/config/port-settings.json b/native/crates/config/port-settings.jsonindex 383f84b216f..0b96da0be36 100644--- a/native/crates/config/port-settings.json+++ b/native/crates/config/port-settings.json@@ -1,8 +1,8 @@{"window.appIcon": {"type": "string",- "enum": ["default", "inverted"],- "enumDescriptions": ["The VSRustium icon: a gradient glyph on a black background.", "The VSRustium icon inverted: a light or dark glyph on an orange background."],+ "enum": ["default", "bars", "barsCream"],+ "enumDescriptions": ["The VSRustium icon: a slanted block cursor with two eyes on an orange background.", "Three slanted gradient bars, indented like lines of code, on a black background.", "The three bars on a cream background, black in dark mode."],"default": "default","scope": 1,"description": "VSRustium: the look of the Dock icon. It follows the system's light or dark appearance; Finder and Launchpad keep the default icon.",diff --git a/port/AppIcon.icon/Assets/back.svg b/port/AppIcon.icon/Assets/back.svgdeleted file mode 100644index 10a20b8bea8..00000000000--- a/port/AppIcon.icon/Assets/back.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024"><defs><linearGradient id="g" gradientUnits="userSpaceOnUse" x1="180" y1="512" x2="580" y2="512"><stop offset="0" stop-color="#6a4cff"/><stop offset="1" stop-color="#ffb37a"/></linearGradient></defs><g fill="url(#g)" stroke="url(#g)" stroke-width="12" stroke-linejoin="round"><path d="M316 338H578L564 430H316A46 46 0 0 1 316 338Z"/><path d="M226 466H559L545 558H226A46 46 0 0 1 226 466Z"/><path d="M396 594H540L526 686H396A46 46 0 0 1 396 594Z"/></g></svg>diff --git a/port/AppIcon.icon/Assets/body-light.svg b/port/AppIcon.icon/Assets/body-light.svgnew file mode 100644index 00000000000..acc4d0d222d--- /dev/null+++ b/port/AppIcon.icon/Assets/body-light.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><rect x="322" y="172" width="380" height="680" rx="120" fill="#ffffff" transform="skewX(-10) translate(90 0)"/></svg>diff --git a/port/AppIcon.icon/Assets/body.svg b/port/AppIcon.icon/Assets/body.svgnew file mode 100644index 00000000000..26f29b09029--- /dev/null+++ b/port/AppIcon.icon/Assets/body.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><rect x="322" y="172" width="380" height="680" rx="120" fill="#111111" transform="skewX(-10) translate(90 0)"/></svg>diff --git a/port/AppIcon.icon/Assets/eyes-dark.svg b/port/AppIcon.icon/Assets/eyes-dark.svgnew file mode 100644index 00000000000..afcfe91dbf6--- /dev/null+++ b/port/AppIcon.icon/Assets/eyes-dark.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><g fill="#111111" transform="skewX(-10) translate(90 0)"><rect x="436" y="350" width="68" height="88" rx="14"/><rect x="560" y="350" width="68" height="88" rx="14"/></g></svg>diff --git a/port/AppIcon.icon/Assets/eyes.svg b/port/AppIcon.icon/Assets/eyes.svgnew file mode 100644index 00000000000..8f5ad2515d2--- /dev/null+++ b/port/AppIcon.icon/Assets/eyes.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><g fill="#ffffff" transform="skewX(-10) translate(90 0)"><rect x="436" y="350" width="68" height="88" rx="14"/><rect x="560" y="350" width="68" height="88" rx="14"/></g></svg>diff --git a/port/AppIcon.icon/Assets/front.svg b/port/AppIcon.icon/Assets/front.svgdeleted file mode 100644index 8e10a1e1fed..00000000000--- a/port/AppIcon.icon/Assets/front.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024"><defs><linearGradient id="g" gradientUnits="userSpaceOnUse" x1="700" y1="222" x2="640" y2="802"><stop offset="0" stop-color="#ffe08a"/><stop offset="0.5" stop-color="#ff7a2a"/><stop offset="1" stop-color="#ff4f8b"/></linearGradient></defs><path fill="url(#g)" stroke="url(#g)" stroke-width="36" stroke-linejoin="round" d="M680 240H784L704 784H600Z"/></svg>diff --git a/port/AppIcon.icon/icon.json b/port/AppIcon.icon/icon.jsonindex 62b1a6b6862..6d124bdbace 100644--- a/port/AppIcon.icon/icon.json+++ b/port/AppIcon.icon/icon.json@@ -1,39 +1,6 @@-{- "fill": {- "solid": "srgb:0.07000,0.07000,0.08000,1.00000"- },- "groups": [- {- "layers": [- {- "glass": true,- "image-name": "front.svg",- "name": "front"- },- {- "glass": true,- "image-name": "back.svg",- "name": "back"- }- ],- "position": {- "scale": 1.1,- "translation-in-points": [- 0,- 0- ]- },- "shadow": {- "kind": "layer-color",- "opacity": 0.5- },- "translucency": {- "enabled": true,- "value": 0.4- }- }- ],- "supported-platforms": {- "squares": "shared"- }-}+{ "fill" : { "automatic-gradient" : "srgb:1.00000,0.36000,0.12000,1.00000" },+ "groups" : [ { "layers" : [+ { "glass" : true, "name" : "eyes", "image-name-specializations" : [ { "value" : "eyes.svg" }, { "appearance" : "dark", "value" : "eyes-dark.svg" }, { "appearance" : "tinted", "value" : "eyes-dark.svg" } ] },+ { "glass" : true, "name" : "body", "image-name-specializations" : [ { "value" : "body.svg" }, { "appearance" : "dark", "value" : "body-light.svg" }, { "appearance" : "tinted", "value" : "body-light.svg" } ] } ],+ "shadow" : { "kind" : "neutral", "opacity" : 0.5 }, "translucency" : { "enabled" : true, "value" : 0.4 } } ],+ "supported-platforms" : { "squares" : "shared" } }diff --git a/port/AppIcon.png b/port/AppIcon.pngindex 8e1de525c76..21e4ade769b 100644Binary files a/port/AppIcon.png and b/port/AppIcon.png differdiff --git a/port/AppIconBars.icon/Assets/low.svg b/port/AppIconBars.icon/Assets/low.svgnew file mode 100644index 00000000000..69e126b02ae--- /dev/null+++ b/port/AppIconBars.icon/Assets/low.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ff4d6d"/><stop offset="1" stop-color="#c13bff"/></linearGradient></defs><rect x="470" y="643" width="300" height="150" rx="46" fill="url(#g)" transform="skewX(-18) translate(135 0)"/></svg>diff --git a/port/AppIconBars.icon/Assets/mid.svg b/port/AppIconBars.icon/Assets/mid.svgnew file mode 100644index 00000000000..ed130f0cc6c--- /dev/null+++ b/port/AppIconBars.icon/Assets/mid.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ff8a3d"/><stop offset="1" stop-color="#ff4d6d"/></linearGradient></defs><rect x="310" y="437" width="560" height="150" rx="46" fill="url(#g)" transform="skewX(-18) translate(135 0)"/></svg>diff --git a/port/AppIconBars.icon/Assets/top.svg b/port/AppIconBars.icon/Assets/top.svgnew file mode 100644index 00000000000..cd7407e6cea--- /dev/null+++ b/port/AppIconBars.icon/Assets/top.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ffd166"/><stop offset="1" stop-color="#ff8a3d"/></linearGradient></defs><rect x="150" y="231" width="470" height="150" rx="46" fill="url(#g)" transform="skewX(-18) translate(135 0)"/></svg>diff --git a/port/AppIconBars.icon/icon.json b/port/AppIconBars.icon/icon.jsonnew file mode 100644index 00000000000..2875d8d6fb0--- /dev/null+++ b/port/AppIconBars.icon/icon.json@@ -0,0 +1,4 @@+{ "fill" : { "solid" : "srgb:0.07000,0.07000,0.09000,1.00000" },+ "groups" : [ { "layers" : [ { "glass" : true, "image-name" : "top.svg", "name" : "top" }, { "glass" : true, "image-name" : "mid.svg", "name" : "mid" }, { "glass" : true, "image-name" : "low.svg", "name" : "low" } ],+ "shadow" : { "kind" : "layer-color", "opacity" : 0.5 }, "translucency" : { "enabled" : true, "value" : 0.4 } } ],+ "supported-platforms" : { "squares" : "shared" } }diff --git a/port/AppIconBarsCream.icon/Assets/low.svg b/port/AppIconBarsCream.icon/Assets/low.svgnew file mode 100644index 00000000000..69e126b02ae--- /dev/null+++ b/port/AppIconBarsCream.icon/Assets/low.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ff4d6d"/><stop offset="1" stop-color="#c13bff"/></linearGradient></defs><rect x="470" y="643" width="300" height="150" rx="46" fill="url(#g)" transform="skewX(-18) translate(135 0)"/></svg>diff --git a/port/AppIconBarsCream.icon/Assets/mid.svg b/port/AppIconBarsCream.icon/Assets/mid.svgnew file mode 100644index 00000000000..ed130f0cc6c--- /dev/null+++ b/port/AppIconBarsCream.icon/Assets/mid.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ff8a3d"/><stop offset="1" stop-color="#ff4d6d"/></linearGradient></defs><rect x="310" y="437" width="560" height="150" rx="46" fill="url(#g)" transform="skewX(-18) translate(135 0)"/></svg>diff --git a/port/AppIconBarsCream.icon/Assets/top.svg b/port/AppIconBarsCream.icon/Assets/top.svgnew file mode 100644index 00000000000..cd7407e6cea--- /dev/null+++ b/port/AppIconBarsCream.icon/Assets/top.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ffd166"/><stop offset="1" stop-color="#ff8a3d"/></linearGradient></defs><rect x="150" y="231" width="470" height="150" rx="46" fill="url(#g)" transform="skewX(-18) translate(135 0)"/></svg>diff --git a/port/AppIconBarsCream.icon/icon.json b/port/AppIconBarsCream.icon/icon.jsonnew file mode 100644index 00000000000..af15efba44b--- /dev/null+++ b/port/AppIconBarsCream.icon/icon.json@@ -0,0 +1,4 @@+{ "fill" : { "solid" : "srgb:0.95700,0.93700,0.90200,1.00000" },+ "groups" : [ { "layers" : [ { "glass" : true, "image-name" : "top.svg", "name" : "top" }, { "glass" : true, "image-name" : "mid.svg", "name" : "mid" }, { "glass" : true, "image-name" : "low.svg", "name" : "low" } ],+ "shadow" : { "kind" : "layer-color", "opacity" : 0.5 }, "translucency" : { "enabled" : true, "value" : 0.4 } } ],+ "supported-platforms" : { "squares" : "shared" } }diff --git a/port/AppIconInverted.icon/Assets/back.svg b/port/AppIconInverted.icon/Assets/back.svgdeleted file mode 100644index 82f23685079..00000000000--- a/port/AppIconInverted.icon/Assets/back.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024"><g fill="#fff" stroke="#fff" stroke-width="12" stroke-linejoin="round"><path d="M316 338H578L564 430H316A46 46 0 0 1 316 338Z"/><path d="M226 466H559L545 558H226A46 46 0 0 1 226 466Z"/><path d="M396 594H540L526 686H396A46 46 0 0 1 396 594Z"/></g></svg>diff --git a/port/AppIconInverted.icon/Assets/front.svg b/port/AppIconInverted.icon/Assets/front.svgdeleted file mode 100644index f3656058e7e..00000000000--- a/port/AppIconInverted.icon/Assets/front.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024"><path fill="#fff" stroke="#fff" stroke-width="36" stroke-linejoin="round" d="M680 240H784L704 784H600Z"/></svg>diff --git a/port/AppIconInverted.icon/icon.json b/port/AppIconInverted.icon/icon.jsondeleted file mode 100644index 06ae0657cb2..00000000000--- a/port/AppIconInverted.icon/icon.json+++ /dev/null@@ -1,82 +0,0 @@-{- "fill-specializations": [- {- "value": {- "linear-gradient": [- "display-p3:1.00000,0.56000,0.22000,1.00000",- "display-p3:0.88000,0.30000,0.07000,1.00000"- ]- }- },- {- "appearance": "dark",- "value": {- "linear-gradient": [- "display-p3:1.00000,0.56000,0.22000,1.00000",- "display-p3:0.88000,0.30000,0.07000,1.00000"- ]- }- }- ],- "groups": [- {- "layers": [- {- "fill-specializations": [- {- "value": {- "solid": "srgb:1.00000,1.00000,1.00000,1.00000"- }- },- {- "appearance": "dark",- "value": {- "solid": "srgb:0.11000,0.11000,0.12000,1.00000"- }- }- ],- "glass": true,- "image-name": "front.svg",- "name": "front"- },- {- "fill-specializations": [- {- "value": {- "solid": "srgb:1.00000,1.00000,1.00000,1.00000"- }- },- {- "appearance": "dark",- "value": {- "solid": "srgb:0.11000,0.11000,0.12000,1.00000"- }- }- ],- "glass": true,- "image-name": "back.svg",- "name": "back",- "opacity": 0.5- }- ],- "position": {- "scale": 1.1,- "translation-in-points": [- 0,- 0- ]- },- "shadow": {- "kind": "layer-color",- "opacity": 0.5- },- "translucency": {- "enabled": true,- "value": 0.4- }- }- ],- "supported-platforms": {- "squares": "shared"- }-}diff --git a/port/assets/icon.png b/port/assets/icon.pngindex 212a055bfdf..fc179836d70 100644Binary files a/port/assets/icon.png and b/port/assets/icon.png differdiff --git a/port/notes.md b/port/notes.mdindex 9ac2e60cc74..ceee00049e8 100644--- a/port/notes.md+++ b/port/notes.md@@ -818,7 +818,7 @@ Scope as in the M19 Work row of port/ledger.md.ShipIt (`vsrustium --apply-update <pid> <staged> <installed> [--relaunch <args>]`, logging to `ShipIt_stderr.log` in the ShipIt folder): Restart to Update quits every window (a veto puts Ready back) and the helper starts on app quit; a plain Quit while Ready installs too, without relaunch (Squirrel installs a downloaded update on quit). The helper waits for the app's pid to exit, verifies the staged bundle again, renames the installed app to `.VSRustium.app.old`, moves the update in (a ditto copy across volumes) or on any failure puts the old one back, relaunches the executable with the app's arguments, then deletes the old copy.Workbench (`workbench/update.rs`, update.ts): the Manage menu's `7_update` items by `updateState` (Check for Updates..., Checking for Updates..., Download Update (1), Downloading Update..., Install Update... (1), Restart to Update (1)), the palette's Check for Updates... and Restart to Update, the Manage item's badge (1 with "New VSRustium update available.", a progress badge while checking or downloading, the description in its hover title, the profile badge hidden meanwhile), "There are currently no updates available." in the focused window after an explicit check. The title bar's update entry and its sticky tooltip (`workbench/update_title_bar.rs`, updateTitleBarEntry.ts and updateTooltip.ts, `update.titleBar`) sit before the right-side items of the main window's custom title bar; an explicit check's error shows in the tooltip, not as a notification. After an update to a new major or minor version (`releaseNotes/lastVersion` in application storage, `update.showReleaseNotes`), the release notes editor (`workbench/release_notes.rs`) shows the body of the GitHub release `v<version>` under `releaseNotesUrl` (the API's `/tags/v<version>`); when it cannot be fetched, the prompt "Welcome to VSRustium v{0}! Would you like to read the Release Notes?" opens `releaseNotesUrl`. Tests: `cargo test -p app update::`; end to end `port/tools/update-check` (port/tools/update-feed serves the packages laid out like GitHub releases; `?cut` cuts a download midway).- Packaging (`port/tools/package-app`, `port/tools/app-smoke`): VSRustium.app with the release binary and bun in Contents/MacOS, the app files in Contents/Resources/app (the binary takes them as its root when it runs from a bundle; bun next to the executable wins over PATH), pnpm entries copied with their links (a built-in's dependency only when its shipped code requires, `require.resolve`s or imports it: upstream bundles every built-in and ships none, the port runs the unbundled `out`; mermaid-markdown-features' mermaid stack only feeds its prebuilt webviews; ripgrep-universal keeps the target's `bin/darwin-<arch>` only, as build/lib/copilot.ts; the app went from 817 MB to 366 MB, the update zip from 268 MB to 128 MB, VS Code 1.148.0 arm64 is 1.0 GB unpacked), Info.plist with the reference's 65 document types and the `vsrustium` URL scheme, every Mach-O signed with the hardened runtime (bun with allow-jit, allow-unsigned-executable-memory, disable-library-validation). The Studio has Gatekeeper assessments disabled, so `spctl -a` accepts any bundle there; package-app refuses to report it as a pass. The app icon is `port/AppIcon.icon` (Icon Composer: one black background, tinted and clear looks from macOS), compiled by actool into Assets.car and AppIcon.icns. Intel Macs (ARCH=x64, built on the arm64 Studio): the `x86_64-apple-darwin` release binary, bun's `bun-darwin-x64-baseline` release of the host's bun version (pinned with its sha256 in package-app; the baseline build runs without AVX2, on Intel Macs before Haswell that macOS 12 supports and under Rosetta before macOS 15), ripgrep's `darwin-x64`, and the native modules the shipped packages load (kerberos, @vscode/spdlog, @vscode/fs-copyfile, all N-API) rebuilt with `node-gyp rebuild --arch=x64` (node-gyp from port/tools/node-gyp's lockfile, installed with `npm ci`) from a scratch copy of their source package. package-app refuses a bundle with a Mach-O of another arch (`lipo -archs` of every file `file` names Mach-O), and as build/.moduleignore drops node-gyp's `build/Release/obj.target` and `.deps` (their object files are Mach-O of the host's arch). Universal builds are not made.-- Branding, intended port differences (Artur): (1) Name: every name the user sees is port/product.json's `nameLong`/`nameShort` (VSRustium), read by `product.rs` (app; before `product::load` the overlay alone answers) and `exthost::product_name` (init data `appName`, gallery and install messages). Where upstream hardcodes "VS Code", "Code" or the dev build's "Code - OSS" (install and engine messages, the external website and protocol url prompts, the system-wide keybinding warning, the Editor Playground text, the update commands' `nameShort` category in the reference dump, the built-in walkthroughs' titles, steps and alt texts through `walkthroughs::branded`, the trusted domains and extensions.json templates) the port says VSRustium; links and texts naming Microsoft's docs keep "VS Code", and so does Settings Import, where it names the other app. An unbundled run (`cargo run`) embeds an Info.plist with CFBundleName in `__TEXT,__info_plist` (build.rs), so the app menu names VSRustium there too (the Dock's label keeps the executable name, `vsrustium`). `--version` prints upstream's version, commit and arch lines, without a name, as upstream's does. Kept: the Keychain service `Code - OSS Secret Storage` (renaming it loses stored extension secrets) and the gallery's `User-Agent`/`X-Market-Client-Id` (Open VSX compatibility); setting descriptions and built-in extension texts stay upstream's. (2) Icon: `port/AppIcon.icon`, a slash with three code lines trailing it, their right ends cut parallel to the slash; the slash is an amber, orange and pink gradient, the lines violet to peach, on a black background in light and dark mode (it replaced an orange slash and three bars on a light or dark background); the bundle gets actool's Assets.car and AppIcon.icns. build.rs renders it and `port/AppIconInverted.icon` (the same shapes on the orange background, glyph light in light mode and dark in dark mode) with Icon Composer's ictool, light and dark, into the binary. The port setting `window.appIcon` (`default` | `inverted`, config/port-settings.json) picks the Dock icon (`app_icon.rs`, `NSApplication.applicationIconImage`), the light or dark rendering after the system appearance, live; `default` in VSRustium.app restores the bundle's icon, and an unbundled run shows the rendered default. Finder and Launchpad keep the bundle icon. On macOS 27 the About sheet (NSAlert) shows no icon, as Code - OSS's does not (ui-pair, host lane). (3) Letterpress: the empty editor group draws `workbench/letterpress.svg` (the icon's bars and slash in one fill, cropped to the logo) in place of upstream's letterpress-*.svg, at the same size (256 px, 200 px in a part of several groups) and position, black at 0.3 (dark) and 0.1 (light), #3C3C3C (hc dark) and #D9D9D9 (hc light) as upstream's files paint it. Tests: `cargo test -p app product`, `menubar`, `command_palette`; `cargo test -p exthost session extension_validator extension_management`.+- Branding, intended port differences (Artur): (1) Name: every name the user sees is port/product.json's `nameLong`/`nameShort` (VSRustium), read by `product.rs` (app; before `product::load` the overlay alone answers) and `exthost::product_name` (init data `appName`, gallery and install messages). Where upstream hardcodes "VS Code", "Code" or the dev build's "Code - OSS" (install and engine messages, the external website and protocol url prompts, the system-wide keybinding warning, the Editor Playground text, the update commands' `nameShort` category in the reference dump, the built-in walkthroughs' titles, steps and alt texts through `walkthroughs::branded`, the trusted domains and extensions.json templates) the port says VSRustium; links and texts naming Microsoft's docs keep "VS Code", and so does Settings Import, where it names the other app. An unbundled run (`cargo run`) embeds an Info.plist with CFBundleName in `__TEXT,__info_plist` (build.rs), so the app menu names VSRustium there too (the Dock's label keeps the executable name, `vsrustium`). `--version` prints upstream's version, commit and arch lines, without a name, as upstream's does. Kept: the Keychain service `Code - OSS Secret Storage` (renaming it loses stored extension secrets) and the gallery's `User-Agent`/`X-Market-Client-Id` (Open VSX compatibility); setting descriptions and built-in extension texts stay upstream's. (2) Icon: `port/AppIcon.icon`, a block cursor slanted like italics with two square eyes, black on an orange background, orange on black in dark mode (it replaced a gradient slash with three code lines on a black background); the bundle gets actool's Assets.car and AppIcon.icns. build.rs renders it, `port/AppIconBars.icon` (three slanted bars indented like lines of code, an amber to violet gradient on a black background) and `port/AppIconBarsCream.icon` (the same bars on a cream background, black in dark mode) with Icon Composer's ictool, light and dark, into the binary. `port/AppIcon.png` (the Linux icon) and `port/assets/icon.png` (the README) are ictool's 512 px Default render of `port/AppIcon.icon` and its 256 px copy. The port setting `window.appIcon` (`default` | `bars` | `barsCream`, config/port-settings.json) picks the Dock icon (`app_icon.rs`, `NSApplication.applicationIconImage`), the light or dark rendering after the system appearance, live; `default` in VSRustium.app restores the bundle's icon, and an unbundled run shows the rendered default. Finder and Launchpad keep the bundle icon. On macOS 27 the About sheet (NSAlert) shows no icon, as Code - OSS's does not (ui-pair, host lane). (3) Letterpress: the empty editor group draws `workbench/letterpress.svg` (the icon's cursor in one fill, its eyes cut out, cropped to the logo) in place of upstream's letterpress-*.svg, at the same size (256 px, 200 px in a part of several groups) and position, black at 0.3 (dark) and 0.1 (light), #3C3C3C (hc dark) and #D9D9D9 (hc light) as upstream's files paint it. Tests: `cargo test -p app product`, `menubar`, `command_palette`; `cargo test -p exthost session extension_validator extension_management`.- File > New File... (`workbench/new_file.rs`, newFile.contribution.ts): `MenuId.NewFile` with the built-in Text File and `contributes.menus["file/newFile"]` (ipynb's New Jupyter Notebook), one entry runs directly, more show the picker by group with the source as description, a gear button to the Keyboard Shortcuts editor, and Create New File (name) for typed text.- Welcome page (`walkthroughs.rs` model, `workbench/welcome_page.rs` view; gettingStarted.ts, startupPage.ts, gettingStartedService.ts): the categories slide (Start, Recent, Walkthroughs with ranking, hidden categories, progress, the "Show welcome page on startup" checkbox), the details slide (steps, completion checkboxes, linked-text buttons and links, Mark Done, Next Section), media (svg, markdown with `setTheme:` and video in a webview, images per theme kind), step progress in `memento/gettingStartedService` with the completion events, and the startup page (`workbench.startupEditor`, the old `workbench.welcome.enabled`, `--skip-welcome`). Left out: the four Copilot setup steps, settings sync, SetupWeb, the remote and tunnel start entries (AI, sync, web, remote by decision). shortcut: `onView:` sees only the side bar's container, `onContext:` reads the `setContext` keys (each noted in the code). Every port GUI tool starts the port with `workbench.startupEditor: none` (as ref-user-data.ts does for the reference) and api-tests with `--skip-welcome` (as scripts/test-integration.sh).- View welcome content (`workbench/views_welcome.rs`, viewsWelcomeContribution.ts and viewPane.ts `ViewWelcomeController`): the Explorer's empty view and the Source Control view draw the workbench's registrations and every extension's `contributes.viewsWelcome` (git's 17 `scm` and 2 `explorer` entries) with `when`, `enablement`, `group@order` (with the contribViewsWelcome proposal) and the `default` entry, sorted as `compareViewContentDescriptors`. The key context gained `remoteName` (empty), `workspaceFolderCount`, `isWorkspaceTrustEnabled` and `isWorkspaceTrusted`. shortcut: the `wide` layout (pane over 640 px) is not drawn. `workbench.action.addRootFolder` is not ported (milestone 12), so "add a folder" runs a missing command.