Skip to content

Visual Studio Code, rebuilt in Rust

Rust

chore: rename the port back from Vscrs to VSRustium (#117)

Artur Roka823184ddaf3
diff --git a/.agents/skills/pr/SKILL.md b/.agents/skills/pr/SKILL.md
index 998d3e7eb8d..de0f8e56585 100644
--- a/.agents/skills/pr/SKILL.md
+++ b/.agents/skills/pr/SKILL.md
@@ -1,6 +1,6 @@
---
name: pr
-description: Open a pull request in Vscrs, or write its title and body. Wins over the global `pr` skill in this repo.
+description: Open a pull request in VSRustium, or write its title and body. Wins over the global `pr` skill in this repo.
---
# PR
@@ -14,7 +14,7 @@ The repo's own version of `~/.agents/skills/pr`: the same title and body rules,
3. Title: Conventional Commits, `type(scope): subject`. Copy the scopes of `gh pr list --state merged --limit 10` and `git log --oneline -10`. The subject names what the change does for the reader, not the mechanism, in at most 72 characters. The type also picks the PR's type label (see [Labels](#labels)).
4. Body from the [Body](#body) template. If asked only for the title or body: show them and stop.
5. Before pushing, read the body as a stranger would: the repo is public, so the body holds no credentials, personal data, local paths outside the repo, or internal links.
-6. `git push -u vscrs HEAD` (the remote is `vscrs`, not `origin`). Write the body into `f=$(mktemp)`, then run `gh pr create --base <base> --title '...' --body-file "$f"`, then `rm "$f"`. Open a real PR, not a draft: review bots skip drafts.
+6. `git push -u vsrustium HEAD` (the remote is `vsrustium`, not `origin`). Write the body into `f=$(mktemp)`, then run `gh pr create --base <base> --title '...' --body-file "$f"`, then `rm "$f"`. Open a real PR, not a draft: review bots skip drafts.
7. Judgement labels from [Labels](#labels), if any apply: `gh pr edit <n> --add-label 'a,b'`.
8. Reviewer: none by default. Only when the user asks for the bot's review: `gh pr edit <n> --add-reviewer rokartur-review`, then check it took: `gh pr view <n> --json reviewRequests --jq '[.reviewRequests[].login]'` must list `rokartur-review`. `gh pr edit` prints `ok` even when GitHub drops the request, for example when the account is not a collaborator. The bot reviews the owner's PRs only on this request, and takes itself off the list when its review is posted.
9. Report: the URL, the labels you set, and whether a requested review held.
diff --git a/.agents/skills/vscode-uplift/SKILL.md b/.agents/skills/vscode-uplift/SKILL.md
index 35b89a16f54..2503381cca5 100644
--- a/.agents/skills/vscode-uplift/SKILL.md
+++ b/.agents/skills/vscode-uplift/SKILL.md
@@ -1,18 +1,18 @@
---
name: vscode-uplift
-description: Plans the port's move to a newer VS Code release. Use when a new VS Code version is out, or when asked what an update of Vscrs to it takes.
+description: Plans the port's move to a newer VS Code release. Use when a new VS Code version is out, or when asked what an update of VSRustium to it takes.
---
# VS Code uplift plan
-Vscrs ports one VS Code release 1:1. This skill compares that release with a newer one and writes the plan for the uplift. It plans only: it changes no code, and the reference on the Studio stays on the current release until the plan's work starts.
+VSRustium ports one VS Code release 1:1. This skill compares that release with a newer one and writes the plan for the uplift. It plans only: it changes no code, and the reference on the Studio stays on the current release until the plan's work starts.
## 1. Versions
- Port release: `version` in `upstream/package.json`, the tag `upstream/` is checked out at (the same value is `VERSION` in `native/crates/app/src/main.rs`).
- Newest upstream release: `git -C upstream ls-remote --tags origin 'refs/tags/1.*' | grep -v '\^{}' | sed 's|.*refs/tags/||' | sort -V | tail -1`.
-Equal versions: report "Vscrs follows the newest release" and stop. Otherwise `git -C upstream fetch origin tag <to> --no-tags`.
+Equal versions: report "VSRustium follows the newest release" and stop. Otherwise `git -C upstream fetch origin tag <to> --no-tags`.
## 2. Map the diff
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d82ea4ecff0..8782ab0d0f2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -103,7 +103,7 @@ jobs:
working-directory: native
run: cargo build -p app --locked
- if: ${{ !cancelled() && steps.build.outcome == 'success' }}
- run: APP=native/target/debug/vscrs VSCODE_GPUI_EXTENSIONS=$PWD/upstream/extensions port/tools/linux/smoke
+ run: APP=native/target/debug/vsrustium VSCODE_GPUI_EXTENSIONS=$PWD/upstream/extensions port/tools/linux/smoke
# The app itself, which no test starts: a window, the extension host, git and emmet active, an edit saved to disk.
# The dev build, from the test job's Rust cache: a release cache does not fit the 10 GB limit. Not expected red.
@@ -130,7 +130,7 @@ jobs:
save-rust-cache: false
- working-directory: native
run: cargo build -p app --locked
- - run: APP=native/target/debug/vscrs VSCODE_GPUI_EXTENSIONS=$PWD/upstream/extensions port/tools/linux/smoke
+ - run: APP=native/target/debug/vsrustium VSCODE_GPUI_EXTENSIONS=$PWD/upstream/extensions port/tools/linux/smoke
test:
name: test (${{ matrix.os }} ${{ matrix.arch }})
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index ce64b527ce0..d9b34fb1157 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -65,7 +65,7 @@ jobs:
with:
name: linux-x64
path: |
- native/target/Vscrs-*-linux-x64.tar.gz
- native/target/Vscrs-*-linux-x64.AppImage
+ native/target/VSRustium-*-linux-x64.tar.gz
+ native/target/VSRustium-*-linux-x64.AppImage
native/target/linux-x64*.json
if-no-files-found: error
diff --git a/.github/workflows/update-flake.yml b/.github/workflows/update-flake.yml
index 6ece01d19c7..9d788ab94a3 100644
--- a/.github/workflows/update-flake.yml
+++ b/.github/workflows/update-flake.yml
@@ -33,7 +33,7 @@ jobs:
version=${tag#v}
gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets > "$RUNNER_TEMP/assets.json"
digest() {
- jq --raw-output --arg name "Vscrs-$version-linux-$1.tar.gz" \
+ jq --raw-output --arg name "VSRustium-$version-linux-$1.tar.gz" \
'.assets[] | select(.name == $name) | .digest // empty' "$RUNNER_TEMP/assets.json"
}
arm64=$(digest arm64)
@@ -79,9 +79,9 @@ jobs:
run: |
jq . <<<"$RELEASE" > nix/release.json
nix build --print-build-logs
- started=$(./result/bin/vscrs --version | sed --quiet 1p)
+ started=$(./result/bin/vsrustium --version | sed --quiet 1p)
if [ "$started" != "$VERSION" ]; then
- echo "::error::vscrs --version printed '$started', not $VERSION"
+ echo "::error::vsrustium --version printed '$started', not $VERSION"
exit 1
fi
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 1619a284a96..5f64d4f1367 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -38,5 +38,5 @@ jobs:
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: win32-${{ matrix.arch }}
- path: native/target/release/vscrs.exe
+ path: native/target/release/vsrustium.exe
if-no-files-found: error
diff --git a/AGENTS.md b/AGENTS.md
index 4c79c859a5b..6caa365632b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
-# Vscrs agent instructions
+# VSRustium agent instructions
-Vscrs is a Rust/GPUI port of VS Code 1.148.0 (README.md). Upstream VS Code is a checkout in `upstream/` (`VSCODE_SRC`), never edited: the upstream changes the port needs are `port/patches/*.patch` and `port/product.json`.
+VSRustium is a Rust/GPUI port of VS Code 1.148.0 (README.md). Upstream VS Code is a checkout in `upstream/` (`VSCODE_SRC`), never edited: the upstream changes the port needs are `port/patches/*.patch` and `port/product.json`.
The owner's message wins over this file. This file wins over a skill, a document and a comment in the code: where two of them disagree, follow the higher one and name the disagreement in the report.
@@ -12,7 +12,7 @@ Three ways to lose work or leak it:
The port's state, about 1 MB: search it with `rg`, never read it whole.
-- The ledger, the one source of truth. `port/ledger.md`, the open work: decisions, milestones with their "done when" checks and status; `port/ledger/done.md` the closed work. `port/ledger/units/<area>.md`, the Units table: one row per upstream unit with its milestone, status, open gaps and the narrowest check that proves it (`rg -n '^\| workbench/contrib/scm ' port/ledger/units`). A gap leaves its cell and an item turns `done` and moves to `done.md` in the commit that closes it; `bun port/tools/ledger-check.ts` checks the tables agree. A row that tracks a GitHub issue names it as `vscrs#N`; `bun port/tools/ledger-issues.ts` lists where the rows and the issues disagree.
+- The ledger, the one source of truth. `port/ledger.md`, the open work: decisions, milestones with their "done when" checks and status; `port/ledger/done.md` the closed work. `port/ledger/units/<area>.md`, the Units table: one row per upstream unit with its milestone, status, open gaps and the narrowest check that proves it (`rg -n '^\| workbench/contrib/scm ' port/ledger/units`). A gap leaves its cell and an item turns `done` and moves to `done.md` in the commit that closes it; `bun port/tools/ledger-check.ts` checks the tables agree. A row that tracks a GitHub issue names it as `vsrustium#N`; `bun port/tools/ledger-issues.ts` lists where the rows and the issues disagree.
- `port/notes.md`: decisions, traps and findings per milestone, reached from the ledger rows (`rg -n '^## ' port/notes.md` lists its sections).
How the code is built, read before the first edit in an area:
@@ -32,6 +32,7 @@ Rules:
- Markdown: one paragraph per source line, no hard wrapping.
- UI labels use title-style capitalization, as upstream's.
- Remove temporary files and scripts made while working.
+- Release channel by tag: a version or tag ending in `-insider` (`v1.148.0.1-insider`) is a pre-release, published as a GitHub pre-release; one without it (`v1.148.0.1`) is latest (stable), published as GitHub's latest release.
- `unsafe` only in `app` and `exthost`, each block under a `// SAFETY:` comment that names the fact it relies on, its file a row of the inventory in `docs/memory-safety.md`. The check: `cargo gc clippy -p app -p exthost --all-targets -- -A clippy::all`.
- Speed and memory are the product: the goal is the fastest editor there is, ahead of Zed on every benchmark and lowest in RAM, with every VS Code feature (`docs/performance.md`). Every change picks the design that costs the least time and memory; one that makes a measured number worse names it and why in the report.
- No I/O and no work in proportion to the whole document or tree on the main thread in a hot path. A change to a hot path reports the numbers of its gate (`docs/performance.md`) from before and after.
@@ -42,11 +43,11 @@ Rules:
### Issue tracker
-GitHub Issues in `rokartur/vscrs` via `gh`. See `docs/agents/issue-tracker.md`.
+GitHub Issues in `rokartur/vsrustium` via `gh`. See `docs/agents/issue-tracker.md`.
### Pull requests
-Open every pull request through `.agents/skills/pr/SKILL.md`, the repo's own `pr` skill. It replaces the global one here, because it adds the `vscrs` remote and the labels the review bot leaves to a person. It asks `rokartur-review` for review only when the user asks.
+Open every pull request through `.agents/skills/pr/SKILL.md`, the repo's own `pr` skill. It replaces the global one here, because it adds the `vsrustium` remote and the labels the review bot leaves to a person. It asks `rokartur-review` for review only when the user asks.
### Triage labels
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 7adbe41ba65..086c5107220 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -1,12 +1,12 @@
# Architecture
-This file is the map of Vscrs: what is where, why, and which rules hold everywhere. Read it before the first change. It does not explain how each module works: the module's own `//!` header does that, and [docs/](docs/README.md) has one file per large area.
+This file is the map of VSRustium: what is where, why, and which rules hold everywhere. Read it before the first change. It does not explain how each module works: the module's own `//!` header does that, and [docs/](docs/README.md) has one file per large area.
The file names code as a path plus a symbol, never a line number: `app/src/main.rs::open_window` is the word `open_window` in `native/crates/app/src/main.rs`. A path starts at the repo root or at a crate of `native/crates`. If a cited path or symbol is gone, `bun port/tools/docs-check.ts` fails.
## What the app is
-Vscrs is VS Code 1.148.0 with the Electron, DOM and TypeScript workbench replaced by one native Rust process that draws with GPUI. Extensions do not change: they run in VS Code's own extension host, a JavaScript process on Bun, and talk to the Rust side over upstream's RPC protocol.
+VSRustium is VS Code 1.148.0 with the Electron, DOM and TypeScript workbench replaced by one native Rust process that draws with GPUI. Extensions do not change: they run in VS Code's own extension host, a JavaScript process on Bun, and talk to the Rust side over upstream's RPC protocol.
The port is 1:1. Each Rust module follows a named upstream file and ports its behavior and its tests. The module header names that file, so the upstream source is the specification. A deliberate difference is a decision in `port/notes.md`.
@@ -14,7 +14,7 @@ Upstream VS Code is a checkout of the `1.148.0` tag in `upstream/`. The build re
## Process model
-One app process owns every window. `app/src/main.rs::main` is the entry point of the binary `vscrs`. The same binary also runs in three short-lived modes, chosen at the top of `main`:
+One app process owns every window. `app/src/main.rs::main` is the entry point of the binary `vsrustium`. The same binary also runs in three short-lived modes, chosen at the top of `main`:
- The CLI. `bin/<applicationName>` starts the binary with `ELECTRON_RUN_AS_NODE=1`, and `app/src/cli.rs::main` handles the command line as upstream's `cli.ts` does. Extension commands (`--install-extension`) run in that process (`app/src/cli_process.rs`). Other command lines start the app.
- The second instance. `app/src/launch.rs::send_to_running_instance` sends the arguments to the first instance over `<user data>/<version>-main.sock` and exits. The first instance listens with `app/src/launch.rs::listen` and opens the windows in `app/src/launch.rs::handle_launches`.
@@ -93,7 +93,7 @@ Code that calls an OS API sits in a file named after the OS, beside the portable
The sequence is in `app/src/main.rs`. `app/src/perf.rs::mark` records the same `code/...` marks as upstream. `Developer: Startup Performance` shows them.
-1. `main` finds the user data folder (`~/.vscrs`) and the app root. The app root is `Resources/app` in a packaged app, else the upstream checkout. `app/src/product.rs::load` reads `product.json` with the overlay `port/product.json`.
+1. `main` finds the user data folder (`~/.vsrustium`) and the app root. The app root is `Resources/app` in a packaged app, else the upstream checkout. `app/src/product.rs::load` reads `product.json` with the overlay `port/product.json`.
2. `main` handles the short-lived modes of "Process model". Then it resolves the shell environment (`app/src/shell_env.rs`), the display language (`exthost/src/language_packs.rs::resolve_nls`) and scans the built-in extensions (`app/src/main.rs::scan_system_extensions`).
3. GPUI starts. The callback of `run` opens the windows of the last session (`app/src/windows_state.rs`) or the window of the command line, each with `app/src/main.rs::open_window`.
4. `open_window` builds what one window owns: the profile, the user extensions, the storage (`exthost/src/main_thread_storage.rs::MainThreadStorage`), the settings (`config/src/service.rs::Settings`), the workspace trust and the theme. Then it opens the GPUI window and makes the `Workbench`.
@@ -132,7 +132,7 @@ The host is upstream's extension host code, bundled by `port/tools/build-exthost
## State and persistence
-All user data is under `~/.vscrs` (`--user-data-dir` changes it), in upstream's layout, so a VS Code user data folder has the same shape.
+All user data is under `~/.vsrustium` (`--user-data-dir` changes it), in upstream's layout, so a VS Code user data folder has the same shape.
- Settings. `config/src/registry.rs::Registry` holds every registered setting. `config/src/service.rs::Settings` holds the layers of one window (defaults, policy, user, workspace, folder) and merges them as upstream does (`config/src/configuration.rs::Configuration`). One `Arc<Mutex<Settings>>` per window is shared with the session thread. The workbench watches the settings files and reloads (`app/src/workbench/configuration.rs::watch_settings_files`).
- Storage. `storage/src/lib.rs::Storage` is upstream's SQLite `state.vscdb` with a cache in front. A window has three: application (one file for all windows, read by each window into its own cache), profile and workspace. UI state uses upstream's storage keys, so the keys in a state database match VS Code's.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7f1c37bcc4b..5b184968540 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,6 @@
-# Contributing to Vscrs
+# Contributing to VSRustium
-Vscrs is a 1:1 port of VS Code 1.148.0 to Rust and [GPUI](https://www.gpui.rs): the same look, keyboard, mouse, settings, extension API and tests. The port lives in `native/` (Rust) and `port/` (tools, ledger, notes, patches). Upstream VS Code is a plain checkout of its `1.148.0` tag in `upstream/` and is never edited: the few changes the extension host needs are `port/patches/*.patch`, applied to a build copy, and the port's product settings are `port/product.json`.
+VSRustium is a 1:1 port of VS Code 1.148.0 to Rust and [GPUI](https://www.gpui.rs): the same look, keyboard, mouse, settings, extension API and tests. The port lives in `native/` (Rust) and `port/` (tools, ledger, notes, patches). Upstream VS Code is a plain checkout of its `1.148.0` tag in `upstream/` and is never edited: the few changes the extension host needs are `port/patches/*.patch`, applied to a build copy, and the port's product settings are `port/product.json`.
## Setup
@@ -11,7 +11,7 @@ git clone --branch 1.148.0 --depth 1 https://github.com/microsoft/vscode upstrea
(cd upstream && npx -y [email protected] install && npx -y [email protected] run compile)
bun port/tools/build-exthost
(cd native && cargo gc build --release -p app)
-native/target/release/vscrs
+native/target/release/vsrustium
```
`port/tools/package-app` (macOS) and `port/tools/package-linux` make the release app; their headers list the options. Run `port/tools/build-exthost` again after a change to `port/patches/` or `port/product.json`.
diff --git a/GLOSSARY.md b/GLOSSARY.md
index ad074e31561..b2ef43b06ec 100644
--- a/GLOSSARY.md
+++ b/GLOSSARY.md
@@ -1,4 +1,4 @@
-# Vscrs
+# VSRustium
The words the port gave its own parts and its own way of working. A VS Code word (part, view, contribution, extension host, context key) means what it means upstream and is not repeated here.
diff --git a/NOTICE.txt b/NOTICE.txt
index bb85261742f..a9d3deb58c6 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,9 +1,9 @@
-Vscrs
+VSRustium
Copyright (c) 2026 - present Artur Rok
Licensed under the Apache License, Version 2.0 (LICENSE.txt).
-Vscrs is derived from Visual Studio Code, whose code it keeps under the MIT License below.
+VSRustium is derived from Visual Studio Code, whose code it keeps under the MIT License below.
Visual Studio Code
Copyright (c) 2015 - present Microsoft Corporation
diff --git a/README.md b/README.md
index 2ba39fae17d..cc758274329 100644
--- a/README.md
+++ b/README.md
@@ -2,14 +2,14 @@
<img src="port/assets/icon.png" alt="" width="128" height="128">
</p>
-<h1 align="center">Vscrs</h1>
+<h1 align="center">VSRustium</h1>
<p align="center">
VS Code, rebuilt in Rust.
</p>
<p align="center">
- <a href="https://github.com/rokartur/vscrs/releases/latest"><b>Download</b></a>
+ <a href="https://github.com/rokartur/vsrustium/releases/latest"><b>Download</b></a>
&nbsp;·&nbsp;
<a href="#benchmark">Benchmark</a>
&nbsp;·&nbsp;
@@ -18,7 +18,7 @@
<a href="#build">Build</a>
</p>
-![Vscrs with the VS Code source open, dark theme](port/assets/screenshot.png)
+![VSRustium with the VS Code source open, dark theme](port/assets/screenshot.png)
VS Code 1.148.0 rebuilt as a native app in Rust on [GPUI](https://www.gpui.rs). The workbench, editor and services are Rust; extensions run unchanged in VS Code's own extension host, on Bun. Same look, keyboard, mouse, settings and extension API, checked part by part against the upstream source. Not a fork: this repository holds the port only, and VS Code is a plain checkout of its release tag that the build reads and never edits.
@@ -28,7 +28,7 @@ Builds for macOS and Linux; Windows is in progress.
Opening the VS Code 1.148.0 source (21,627 files) with warm caches, median of 5 runs:
-| | Vscrs | VS Code 1.148.0 | Zed 1.30.2 |
+| | VSRustium | VS Code 1.148.0 | Zed 1.30.2 |
|---|---|---|---|
| Window with the folder | **0.66 s** | 0.67 s | - |
| Ready (CPU settled) | **2.9 s** | 5.1 s | - |
@@ -39,7 +39,7 @@ Opening the VS Code 1.148.0 source (21,627 files) with warm caches, median of 5
| Idle CPU, 60 to 90 s after launch | 0.5 % of a core | **0.2 %** of a core | - |
| Quit | **0.13 s** | 0.23 s | - |
-Release builds of both with default settings and the same built-in extensions, AI features off in VS Code (Vscrs leaves them out), on a Mac Studio (M1 Max, 32 GB, macOS 27). Both are measured from outside the same way: [`port/tools/bench`](port/tools/bench) runs it, and [port/results/benchmark.md](port/results/benchmark.md) has the method, the raw samples and the command. Zed's column comes from a later run of the same tool with all three apps, AI features, updates and telemetry off in Zed, where Vscrs measured 489, 752 and 222 MiB; its times wait for a run on a quiet machine (`port/notes.md`, "Benchmarks").
+Release builds of both with default settings and the same built-in extensions, AI features off in VS Code (VSRustium leaves them out), on a Mac Studio (M1 Max, 32 GB, macOS 27). Both are measured from outside the same way: [`port/tools/bench`](port/tools/bench) runs it, and [port/results/benchmark.md](port/results/benchmark.md) has the method, the raw samples and the command. Zed's column comes from a later run of the same tool with all three apps, AI features, updates and telemetry off in Zed, where VSRustium measured 489, 752 and 222 MiB; its times wait for a run on a quiet machine (`port/notes.md`, "Benchmarks").
## Coverage
@@ -103,11 +103,11 @@ Counted from the agent session logs, each call once; cost at OpenRouter list pri
## Download
-[Releases](https://github.com/rokartur/vscrs/releases):
+[Releases](https://github.com/rokartur/vsrustium/releases):
- macOS: `darwin-arm64` for Apple silicon, `darwin-x64` for Intel. Signed, notarized, updates itself.
- Linux: `linux-x64` and `linux-arm64` archives (`.tar.gz`) and AppImages (`.AppImage`), glibc 2.39 or newer: Ubuntu 24.04, Debian 13. A preview: webviews in X11 sessions only (WebKitGTK 4.1), no self-update, the rest in the "M23 Linux" rows of [port/ledger.md](port/ledger.md).
-- Nix: [flake.nix](flake.nix) packages the Linux archives and moves to each release once that release builds ([update-flake.yml](.github/workflows/update-flake.yml)). Run it with `nix run github:rokartur/vscrs`, or install `packages.<system>.default` from a NixOS or Home Manager configuration.
+- Nix: [flake.nix](flake.nix) packages the Linux archives and moves to each release once that release builds ([update-flake.yml](.github/workflows/update-flake.yml)). Run it with `nix run github:rokartur/vsrustium`, or install `packages.<system>.default` from a NixOS or Home Manager configuration.
## Build
@@ -119,7 +119,7 @@ git clone --branch 1.148.0 --depth 1 https://github.com/microsoft/vscode upstrea
cargo install cargo-gc --version 0.2.0 --locked
bun port/tools/build-exthost
(cd native && cargo gc build --release -p app)
-native/target/release/vscrs
+native/target/release/vsrustium
```
[CI](.github/workflows/ci.yml) runs the ledger, README coverage and license checks, and `cargo test --workspace` on macOS arm64 and Linux x64 and arm64, on every push to main and pull request. Windows runs by hand in [windows.yml](.github/workflows/windows.yml) while it is paused.
diff --git a/SECURITY.md b/SECURITY.md
index 7a8fb7f1769..c2ad5f78821 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -2,15 +2,15 @@
## Supported versions
-Only the latest release and the current pre-release get security fixes. Update before you report: the app updates itself on macOS, and the newest builds are on the [releases page](https://github.com/rokartur/vscrs/releases).
+Only the latest release and the current pre-release get security fixes. Update before you report: the app updates itself on macOS, and the newest builds are on the [releases page](https://github.com/rokartur/vsrustium/releases).
## Report a vulnerability
-Report it privately through GitHub: [Report a vulnerability](https://github.com/rokartur/vscrs/security/advisories/new). Do not open a public issue, pull request or discussion about it.
+Report it privately through GitHub: [Report a vulnerability](https://github.com/rokartur/vsrustium/security/advisories/new). Do not open a public issue, pull request or discussion about it.
Include:
-- the Vscrs version (Help > About) and the operating system;
+- the VSRustium version (Help > About) and the operating system;
- what an attacker can do, and what they need first (a file or folder the user opens, an extension, a network position);
- the steps to reproduce it, with a minimal file, folder or extension if one is needed;
- the logs or crash report, if there is one.
diff --git a/docs/agents/issue-tracker.md b/docs/agents/issue-tracker.md
index e5e30682ea9..fa47f7b67c8 100644
--- a/docs/agents/issue-tracker.md
+++ b/docs/agents/issue-tracker.md
@@ -14,7 +14,7 @@ Issues and specs for this repo live as GitHub issues. Use the `gh` CLI for all o
- **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
- **Close**: post the explanation with `gh issue comment <number> --body "..."`, then `gh issue close <number>`. On an already-closed issue, `gh issue close --comment` drops the comment and still exits 0.
-The repo is `rokartur/vscrs` (git remote `vscrs`, not `origin`); `gh` infers it inside this clone. GitHub Issues hold bug reports and requests from users; the port's own work plan stays in `port/ledger.md`. Triage of an issue that becomes work puts `vscrs#N` in the ledger row that tracks it (a new Work row or a gap of its unit); `bun port/tools/ledger-issues.ts` lists open triaged issues no row names and rows whose status contradicts their issue's state.
+The repo is `rokartur/vsrustium` (git remote `vsrustium`, not `origin`); `gh` infers it inside this clone. GitHub Issues hold bug reports and requests from users; the port's own work plan stays in `port/ledger.md`. Triage of an issue that becomes work puts `vsrustium#N` in the ledger row that tracks it (a new Work row or a gap of its unit); `bun port/tools/ledger-issues.ts` lists open triaged issues no row names and rows whose status contradicts their issue's state.
File issues only into the user's own repo. Never file into `mattpocock/skills` (the repo these skills come from) unless the user owns it. In a fork, `gh` can default to the upstream parent, so before the first `gh issue create` of a session, check the target with `gh repo view --json nameWithOwner` and confirm it with the user if it is not their repo.
diff --git a/docs/memory-safety.md b/docs/memory-safety.md
index 5d26cbcb5d1..f651c1de2ab 100644
--- a/docs/memory-safety.md
+++ b/docs/memory-safety.md
@@ -1,6 +1,6 @@
# Memory safety
-Vscrs is Rust, so memory safety is the default. It stops being the default in two places: `unsafe` blocks in the port's own code, and code the port links but does not own (GPUI, the OS frameworks, Oniguruma, SQLite, libghostty-vt through libghostty-rs). This file sets the rules for the first place, lists every file that has `unsafe` code, and names the checks that fail on a violation. [ARCHITECTURE.md](../ARCHITECTURE.md) has the map of the code.
+VSRustium is Rust, so memory safety is the default. It stops being the default in two places: `unsafe` blocks in the port's own code, and code the port links but does not own (GPUI, the OS frameworks, Oniguruma, SQLite, libghostty-vt through libghostty-rs). This file sets the rules for the first place, lists every file that has `unsafe` code, and names the checks that fail on a violation. [ARCHITECTURE.md](../ARCHITECTURE.md) has the map of the code.
## The rules
diff --git a/docs/packaging.md b/docs/packaging.md
index ab9a534349a..82b42f8fad7 100644
--- a/docs/packaging.md
+++ b/docs/packaging.md
@@ -21,7 +21,7 @@ A package is two layers. The inner one is the app folder, which `port/tools/app-
| Part | Comes from |
|---|---|
-| The `vscrs` binary | `cargo gc build --release -p app`, from `native/target/release` or the target triple's folder for another arch. |
+| The `vsrustium` binary | `cargo gc build --release -p app`, from `native/target/release` or the target triple's folder for another arch. |
| `bun` beside the binary | The host's own bun, or for another arch the pinned release that `port/tools/package-app` downloads and checks against a SHA-256 in the script. |
| `product.json` | `port/tools/app-files.ts::buildProduct`: upstream's `product.json`, then `port/product.json`, then `version`, `quality`, `commit` and `date`. |
| `out-exthost/bootstrap-exthost.js` | `port/tools/build-exthost`. |
@@ -48,7 +48,7 @@ All of it is in `port/tools/package-app`, in this order. The order is the contra
2. Sign `bun` with the entitlements `allow-jit`, `allow-unsigned-executable-memory` and `disable-library-validation`: JavaScriptCore needs the first two, and bun loads native modules signed by others.
3. Sign the bundle, with the same entitlements.
4. With `NOTARIZE=1`: zip, `notarytool submit --wait`, `stapler staple`.
-5. `codesign --verify --deep --strict`. Only when it passes: make the update zip and write the feed entries. The zip is made with `ditto --norsrc --noextattr`: without them it holds `._` files, other unzippers write them into the bundle, and the seal breaks ("Vscrs is damaged"). The script fails when the zip holds one.
+5. `codesign --verify --deep --strict`. Only when it passes: make the update zip and write the feed entries. The zip is made with `ditto --norsrc --noextattr`: without them it holds `._` files, other unzippers write them into the bundle, and the seal breaks ("VSRustium is damaged"). The script fails when the zip holds one.
6. `spctl -a`, as the exit code. Where Gatekeeper assessments are disabled it accepts any bundle, so the script reports "not assessed" and exits 3 instead of a pass.
What it needs, by name. No private key and no password is in the repository; `port/notes.md`, "Signing", names the identity and its Team ID:
@@ -56,7 +56,7 @@ What it needs, by name. No private key and no password is in the repository; `po
| Name | What it is |
|---|---|
| `IDENTITY` | Environment variable: the name of a Developer ID Application identity. Its private key is in the login keychain of the build machine. Unset means ad-hoc signing. |
-| `vscrs-notary` | A `notarytool` keychain profile on the build machine, stored once with `xcrun notarytool store-credentials`. It holds the Apple ID, the team and an app-specific password. |
+| `vsrustium-notary` | A `notarytool` keychain profile on the build machine, stored once with `xcrun notarytool store-credentials`. It holds the Apple ID, the team and an app-specific password. |
| `FOREIGN_IDENTITY` | Environment variable of `port/tools/update-check` only: a second signing identity, for the update that must be refused. |
No workflow in `.github/workflows` signs, notarizes or publishes, and none reads a repository secret: they use only the run's own `github.token`.
diff --git a/docs/performance.md b/docs/performance.md
index 2fb7c7701b0..68a156d02de 100644
--- a/docs/performance.md
+++ b/docs/performance.md
@@ -45,7 +45,7 @@ Terminal throughput, time to open a large file, search time and memory with many
Zed 1.30.2 is installed on the Studio (`/Applications/Zed.app`), and `port/tools/bench` runs it with its own arguments through `port/tools/bench-zed`. The first run, with the numbers, the definitions for Zed and the command, is in `port/notes.md` ("Benchmarks", Zed comparison). In that run the port is level with Zed on footprint at 90 s and idle CPU, ahead on CPU until ready and quit, and behind on peak footprint (489 against 378 MiB) and RSS (752 against 560 MiB peak, 363 against 270 MiB at 90 s).
-`bun port/tools/bench-check.ts <run.tsv> vscrs zed` fails where the port is behind Zed in one run. The `against` object of `port/budgets.json` holds a ratio per reference and metric for a difference that is a decision. Frame times need a second method, because the headless tests of the port do not run Zed: the same scroll input in both windows and a sample of the main thread of each.
+`bun port/tools/bench-check.ts <run.tsv> vsrustium zed` fails where the port is behind Zed in one run. The `against` object of `port/budgets.json` holds a ratio per reference and metric for a difference that is a decision. Frame times need a second method, because the headless tests of the port do not run Zed: the same scroll input in both windows and a sample of the main thread of each.
## Rules for hot paths
diff --git a/docs/recipes.md b/docs/recipes.md
index 7a1580142ce..548ef752649 100644
--- a/docs/recipes.md
+++ b/docs/recipes.md
@@ -59,7 +59,7 @@ A behavior has more than one way in. Before the report, go through the list and
1. The checks of [testing.md](testing.md), "Before a report or a commit".
2. The ledger row, the gap entries and the documents change in the same commit as the code. After a rename or a move: `bun port/tools/docs-check.ts`.
3. Commit messages follow Conventional Commits, `type(scope): subject`, with the scopes of `git log --oneline -10`.
-4. A pull request goes through `.agents/skills/pr/SKILL.md`. The remote is `vscrs`. A worker's branch lands through `.agents/skills/port-crew/SKILL.md`.
+4. A pull request goes through `.agents/skills/pr/SKILL.md`. The remote is `vsrustium`. A worker's branch lands through `.agents/skills/port-crew/SKILL.md`.
5. The report pairs each requirement with the command that proves it and its real result. A number in the report is measured after the last edit.
## Recipes in the area documents
diff --git a/docs/settings-and-storage.md b/docs/settings-and-storage.md
index fdcd15bdec4..a2ef20766e4 100644
--- a/docs/settings-and-storage.md
+++ b/docs/settings-and-storage.md
@@ -29,7 +29,7 @@ Settings are the `config` crate, storage and profiles are the `storage` crate, a
A key outside the accepted scopes is dropped at parse time, not at read time. An untrusted window also drops restricted and unregistered keys from the workspace and folder layers (`config/src/service.rs::update_workspace_trust`).
-Port decision, not upstream: a folder's configuration is read from `.vscode`, `.vsrustium` and `.vscrs`, the later winning per key (`config/src/service.rs::FOLDER_CONFIG_DIRS`), and written to the last one that exists (`config/src/service.rs::folder_config_dir`). Code that builds a `.vscode/...` path by hand misses the other two.
+Port decision, not upstream: a folder's configuration is read from `.vscode`, `.vsrustium` and `.vsrustium`, the later winning per key (`config/src/service.rs::FOLDER_CONFIG_DIRS`), and written to the last one that exists (`config/src/service.rs::folder_config_dir`). Code that builds a `.vscode/...` path by hand misses the other two.
**Invariant:** the merged models are cached per folder and language, and the `config.*` context keys as one map (`config/src/configuration.rs::context_keys`, read on every key through `app/src/workbench/keyboard.rs::key_context`). Code that assigns a layer field of `Configuration` calls `config/src/configuration.rs::layers_changed` after it. Without the call, reads return the old value.
diff --git a/flake.nix b/flake.nix
index 2c36818def7..a5636fce876 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,11 +21,11 @@
packages = forAllSystems (
pkgs: arch: hash: {
default = pkgs.stdenv.mkDerivation {
- pname = "vscrs";
+ pname = "vsrustium";
inherit (release) version;
src = pkgs.fetchurl {
- url = "https://github.com/rokartur/vscrs/releases/download/v${release.version}/Vscrs-${release.version}-linux-${arch}.tar.gz";
+ url = "https://github.com/rokartur/vsrustium/releases/download/v${release.version}/VSRustium-${release.version}-linux-${arch}.tar.gz";
inherit hash;
};
@@ -65,22 +65,22 @@
installPhase = ''
runHook preInstall
mkdir --parents $out/bin $out/lib
- cp --recursive . $out/lib/vscrs
- ln --symbolic $out/lib/vscrs/bin/vscrs $out/bin/vscrs
- install -D --mode=644 com.rokartur.vscrs.desktop --target-directory=$out/share/applications
- install -D --mode=644 vscrs.png --target-directory=$out/share/icons/hicolor/512x512/apps
+ cp --recursive . $out/lib/vsrustium
+ ln --symbolic $out/lib/vsrustium/bin/vsrustium $out/bin/vsrustium
+ install -D --mode=644 com.rokartur.vsrustium.desktop --target-directory=$out/share/applications
+ install -D --mode=644 vsrustium.png --target-directory=$out/share/icons/hicolor/512x512/apps
runHook postInstall
'';
postFixup = ''
- wrapGApp $out/lib/vscrs/vscrs --suffix PATH : ${pkgs.lib.makeBinPath [ pkgs.curl ]}
+ wrapGApp $out/lib/vsrustium/vsrustium --suffix PATH : ${pkgs.lib.makeBinPath [ pkgs.curl ]}
'';
meta = {
description = "VS Code, rebuilt in Rust";
- homepage = "https://github.com/rokartur/vscrs";
+ homepage = "https://github.com/rokartur/vsrustium";
license = pkgs.lib.licenses.asl20;
- mainProgram = "vscrs";
+ mainProgram = "vsrustium";
platforms = builtins.attrNames archs;
sourceProvenance = [ pkgs.lib.sourceTypes.binaryNativeCode ];
};
diff --git a/native/crates/app/Cargo.toml b/native/crates/app/Cargo.toml
index a0aad658e25..47d017b2aa9 100644
--- a/native/crates/app/Cargo.toml
+++ b/native/crates/app/Cargo.toml
@@ -5,7 +5,7 @@ edition.workspace = true
license.workspace = true
[[bin]]
-name = "vscrs"
+name = "vsrustium"
path = "src/main.rs"
[lints]
diff --git a/native/crates/app/build.rs b/native/crates/app/build.rs
index 4a6441f5d37..12b04329ec1 100644
--- a/native/crates/app/build.rs
+++ b/native/crates/app/build.rs
@@ -1,6 +1,6 @@
//! The NLS index: every `localize`/`localize2` call of src/vs with literal key and message, as
//! `module\tkey\tmessage` lines (the message's escapes kept), for the display language (src/nls.rs).
-//! The binary's own Info.plist, for a run outside Vscrs.app (`cargo run`), and the Dock icons.
+//! The binary's own Info.plist, for a run outside VSRustium.app (`cargo run`), and the Dock icons.
use std::path::Path;
diff --git a/native/crates/app/src/app_icon.rs b/native/crates/app/src/app_icon.rs
index 565e031ea91..72b5ad6c8bb 100644
--- a/native/crates/app/src/app_icon.rs
+++ b/native/crates/app/src/app_icon.rs
@@ -1,4 +1,4 @@
-//! `window.appIcon`, a Vscrs setting: the Dock icon look, its light or dark rendering following the system
+//! `window.appIcon`, a VSRustium setting: the Dock icon look, its light or dark rendering following the system
//! appearance. Finder and Launchpad keep the bundle's icon; only `NSApplication.applicationIconImage` changes.
#[cfg(target_os = "macos")]
@@ -15,7 +15,7 @@ pub const BARS_CREAM_LIGHT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/Ap
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 Vscrs.app does not have.
+/// 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) {
diff --git a/native/crates/app/src/argv/help-80.txt b/native/crates/app/src/argv/help-80.txt
index bfa16edba36..8b835e351de 100644
--- a/native/crates/app/src/argv/help-80.txt
+++ b/native/crates/app/src/argv/help-80.txt
@@ -1,8 +1,8 @@
-Vscrs 1.147.0
+VSRustium 1.147.0
-Usage: vscrs [options] [paths...]
+Usage: vsrustium [options] [paths...]
-To read from stdin, append '-' (e.g. 'ps aux | grep code | vscrs -')
+To read from stdin, append '-' (e.g. 'ps aux | grep code | vsrustium -')
Options
-d --diff <file> <file> Compare two files with each
diff --git a/native/crates/app/src/argv/help-chat-60.txt b/native/crates/app/src/argv/help-chat-60.txt
index 7d62c185baf..e5a7b26276e 100644
--- a/native/crates/app/src/argv/help-chat-60.txt
+++ b/native/crates/app/src/argv/help-chat-60.txt
@@ -1,8 +1,8 @@
-Vscrs 1.147.0
+VSRustium 1.147.0
-Usage: vscrs chat [options] [prompt]
+Usage: vsrustium chat [options] [prompt]
-To read from stdin, append '-' (e.g. 'ps aux | grep code | vscrs chat <prompt> -')
+To read from stdin, append '-' (e.g. 'ps aux | grep code | vsrustium chat <prompt> -')
Options
-m --mode <mode> The mode to use for the chat
diff --git a/native/crates/app/src/argv/tests.rs b/native/crates/app/src/argv/tests.rs
index 30641e062b6..abd0e1691a6 100644
--- a/native/crates/app/src/argv/tests.rs
+++ b/native/crates/app/src/argv/tests.rs
@@ -125,6 +125,6 @@ fn add_arg_goes_before_the_end_of_arguments_marker() {
#[test]
fn help_matches_upstream_text() {
// Upstream `buildHelpMessage` output for the same product, saved from bun.
- assert_eq!(build_help_message("Vscrs", "vscrs", "1.147.0", OPTIONS, false, 80), include_str!("help-80.txt"));
- assert_eq!(build_help_message("Vscrs", "vscrs", "1.147.0", CHAT_OPTIONS, true, 60), include_str!("help-chat-60.txt"));
+ assert_eq!(build_help_message("VSRustium", "vsrustium", "1.147.0", OPTIONS, false, 80), include_str!("help-80.txt"));
+ assert_eq!(build_help_message("VSRustium", "vsrustium", "1.147.0", CHAT_OPTIONS, true, 60), include_str!("help-chat-60.txt"));
}
diff --git a/native/crates/app/src/backups/tests.rs b/native/crates/app/src/backups/tests.rs
index 9f28d7feebb..08d4be44704 100644
--- a/native/crates/app/src/backups/tests.rs
+++ b/native/crates/app/src/backups/tests.rs
@@ -11,7 +11,7 @@ fn untitled(name: &str) -> Uri {
}
fn home(name: &str) -> PathBuf {
- let home = std::env::temp_dir().join(format!("vscrs-backups-{name}-{}", std::process::id()));
+ let home = std::env::temp_dir().join(format!("vsrustium-backups-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&home);
home
}
diff --git a/native/crates/app/src/cli.rs b/native/crates/app/src/cli.rs
index 50a7f29a999..570884ddbcb 100644
--- a/native/crates/app/src/cli.rs
+++ b/native/crates/app/src/cli.rs
@@ -391,7 +391,7 @@ mod tests {
#[test]
fn piped_input_is_written_as_text_of_the_terminal_encoding() {
- let path = std::env::temp_dir().join(format!("vscrs-cli-stdin-{}", std::process::id()));
+ let path = std::env::temp_dir().join(format!("vsrustium-cli-stdin-{}", std::process::id()));
let file = std::fs::File::create(&path).unwrap();
super::copy_stdin(&[b'G', 0xFC, b'n'][..], file, "iso88591");
assert_eq!(std::fs::read_to_string(&path).unwrap(), "Gün");
@@ -400,7 +400,7 @@ mod tests {
#[test]
fn uninstall_extension_runs_in_the_cli_without_the_app() {
- let root = std::env::temp_dir().join(format!("vscrs-cli-uninstall-{}", std::process::id()));
+ let root = std::env::temp_dir().join(format!("vsrustium-cli-uninstall-{}", std::process::id()));
let extensions = root.join("extensions");
std::fs::create_dir_all(extensions.join("port.sample-1.0.0")).unwrap();
let manifest = serde_json::json!({ "name": "sample", "publisher": "port", "version": "1.0.0", "engines": { "vscode": "^1.80.0" } });
@@ -408,7 +408,7 @@ mod tests {
let entries = serde_json::json!([{ "identifier": { "id": "port.sample" }, "version": "1.0.0", "relativeLocation": "port.sample-1.0.0" }]);
std::fs::write(extensions.join("extensions.json"), entries.to_string()).unwrap();
- let args = ["vscrs", "cli.js", "--uninstall-extension", "port.sample"].map(String::from).to_vec();
+ let args = ["vsrustium", "cli.js", "--uninstall-extension", "port.sample"].map(String::from).to_vec();
assert_eq!(super::main(args, &root, &root, Path::new(env!("VSCODE_SRC"))), 0);
let profile = std::fs::read_to_string(extensions.join("extensions.json")).unwrap();
diff --git a/native/crates/app/src/command_palette/tests.rs b/native/crates/app/src/command_palette/tests.rs
index a4c9cba6d0a..c303d1ed986 100644
--- a/native/crates/app/src/command_palette/tests.rs
+++ b/native/crates/app/src/command_palette/tests.rs
@@ -204,8 +204,8 @@ fn editor_actions_show_when_their_precondition_holds() {
#[test]
fn update_commands_take_the_product_name_as_category() {
let check = menu(&[]).into_iter().find(|item| item.id == "update.checkForUpdate").expect("in the reference");
- assert_eq!(check.label(), "Vscrs: Check for Updates...");
- assert_eq!(reference_label("update.checkForUpdate"), Some("Vscrs: Check for Updates..."));
+ assert_eq!(check.label(), "VSRustium: Check for Updates...");
+ assert_eq!(reference_label("update.checkForUpdate"), Some("VSRustium: Check for Updates..."));
}
/// menusExtensionPoint.ts `isValidCommand` and `handleCommand`: an invalid command is skipped with an error, an id
diff --git a/native/crates/app/src/diagnostics/tests.rs b/native/crates/app/src/diagnostics/tests.rs
index 94531b459e9..a9b24e884a8 100644
--- a/native/crates/app/src/diagnostics/tests.rs
+++ b/native/crates/app/src/diagnostics/tests.rs
@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
use super::*;
fn temp_folder(name: &str) -> PathBuf {
- let dir = std::env::temp_dir().join(format!("vscrs-diagnostics-{}-{name}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-diagnostics-{}-{name}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
dir
@@ -78,7 +78,7 @@ fn the_report_names_the_app_the_windows_and_the_hosts() {
crate::product::load(Path::new(env!("VSCODE_SRC")), false);
let host = ProcessItem { name: "bun".into(), cmd: "bun bootstrap-exthost.js".into(), pid: 20, ppid: 10, load: 1.4, mem: 50. * 1024. * 1024., children: Vec::new() };
let shell = ProcessItem { name: "/bin/zsh -l".into(), cmd: "/bin/zsh -l".into(), pid: 21, ppid: 10, load: 0., mem: 0., children: Vec::new() };
- let root = ProcessItem { name: "vscrs".into(), cmd: "vscrs".into(), pid: 10, ppid: 1, load: 2.5, mem: 300. * 1024. * 1024., children: vec![host, shell] };
+ let root = ProcessItem { name: "vsrustium".into(), cmd: "vsrustium".into(), pid: 10, ppid: 1, load: 2.5, mem: 300. * 1024. * 1024., children: vec![host, shell] };
let info = MainDiagnostics {
main_pid: 10,
main_arguments: vec!["/tmp/w".into()],
@@ -90,7 +90,7 @@ fn the_report_names_the_app_the_windows_and_the_hosts() {
let stats = |_: &Path| WorkspaceStats { file_types: vec![("ts".into(), 2)], file_count: 2, ..WorkspaceStats::default() };
let report = format_diagnostics(&info, &machine, Some(&root), &stats);
let lines: Vec<&str> = report.lines().collect();
- assert!(lines[1].starts_with("Version: Vscrs 1.148"), "{}", lines[1]);
+ assert!(lines[1].starts_with("Version: VSRustium 1.148"), "{}", lines[1]);
assert_eq!(&lines[2..10], [
"OS Version: Darwin arm64 25.0.0",
"CPUs: Apple M2 (8 x 0)",
@@ -101,6 +101,6 @@ fn the_report_names_the_app_the_windows_and_the_hosts() {
"Process Argv: /tmp/w",
"GPU Status: ",
]);
- assert_eq!(&lines[11..15], ["CPU %\tMem MB\t PID\tProcess", " 3\t 300\t 10\tvscrs", " 1\t 50\t 20\textension-host [1]", " 0\t 0\t 21\t /bin/zsh -l"]);
+ assert_eq!(&lines[11..15], ["CPU %\tMem MB\t PID\tProcess", " 3\t 300\t 10\tvsrustium", " 1\t 50\t 20\textension-host [1]", " 0\t 0\t 21\t /bin/zsh -l"]);
assert_eq!(&lines[16..21], ["Workspace Stats: ", "| Window (a.ts \u{2014} w)", "| Folder (w): 2 files", "| File types: ts(2)", "| Conf files:"]);
}
diff --git a/native/crates/app/src/editor/model_service/tests.rs b/native/crates/app/src/editor/model_service/tests.rs
index c8d6dd34d91..53989f83a31 100644
--- a/native/crates/app/src/editor/model_service/tests.rs
+++ b/native/crates/app/src/editor/model_service/tests.rs
@@ -38,7 +38,7 @@ fn insert_one_and_save(group: &mut EditorGroup) {
#[test]
fn the_eol_setting_of_a_models_folder_applies_to_it() {
- let dir = std::env::temp_dir().join(format!("vscrs-eol-root-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-eol-root-{}", std::process::id()));
let root = dir.join("myroot");
std::fs::create_dir_all(dir.join("User")).unwrap();
std::fs::create_dir_all(root.join(".vscode")).unwrap();
@@ -184,7 +184,7 @@ fn a_reopened_file_with_other_text_starts_a_new_undo_stack() {
#[test]
fn restore_undo_stack_off_keeps_nothing() {
let mut group = EditorGroup::default();
- let user = std::env::temp_dir().join(format!("vscrs-restore-undo-{}", std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-restore-undo-{}", std::process::id()));
std::fs::create_dir_all(&user).unwrap();
std::fs::write(user.join("settings.json"), r#"{ "files.restoreUndoStack": false }"#).unwrap();
let settings = Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None);
diff --git a/native/crates/app/src/editor/view_state/tests.rs b/native/crates/app/src/editor/view_state/tests.rs
index 5ae30805a6f..0d601359d2e 100644
--- a/native/crates/app/src/editor/view_state/tests.rs
+++ b/native/crates/app/src/editor/view_state/tests.rs
@@ -57,7 +57,7 @@ fn view_states_round_trip_through_the_memento_oldest_first() {
#[test]
fn restore_view_state_off_does_not_restore_a_new_editor() {
- let user = std::env::temp_dir().join(format!("vscrs-restore-view-state-{}", std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-restore-view-state-{}", std::process::id()));
std::fs::create_dir_all(&user).unwrap();
std::fs::write(user.join("settings.json"), r#"{ "workbench.editor.restoreViewState": false }"#).unwrap();
let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None);
diff --git a/native/crates/app/src/extension_host_start.rs b/native/crates/app/src/extension_host_start.rs
index 612ceeb3ab1..a4fdb3434cc 100644
--- a/native/crates/app/src/extension_host_start.rs
+++ b/native/crates/app/src/extension_host_start.rs
@@ -157,7 +157,7 @@ struct WindowState {
host_debug: ExtensionHostDebug,
}
-/// The extension host bundle: in the app files of Vscrs.app, else port/tools/build-exthost's output in the checkout.
+/// The extension host bundle: in the app files of VSRustium.app, else port/tools/build-exthost's output in the checkout.
fn exthost_entry(app_root: &Path) -> PathBuf {
let bundled = app_root.join("out-exthost/bootstrap-exthost.js");
if bundled.is_file() {
diff --git a/native/crates/app/src/extension_recommendations.rs b/native/crates/app/src/extension_recommendations.rs
index 0e261e9be4d..fbd20ec10bd 100644
--- a/native/crates/app/src/extension_recommendations.rs
+++ b/native/crates/app/src/extension_recommendations.rs
@@ -1,7 +1,7 @@
//! Workspace extension recommendations: workspaceExtensionsConfig.ts reads `extensions.json` of each folder and the
//! workspace file's `extensions` key, workspaceRecommendations.ts validates the ids, and
//! extensionIgnoredRecommendationsService.ts drops the unwanted and globally ignored ones.
-//! Port decision: a folder's `extensions.json` is read from `.vscode/` and `.vscrs/`, `.vscrs/` winning per key.
+//! Port decision: a folder's `extensions.json` is read from `.vscode/` and `.vsrustium/`, `.vsrustium/` winning per key.
use std::path::Path;
@@ -21,7 +21,7 @@ pub struct ExtensionsConfig {
pub unwanted_recommendations: Option<Vec<String>>,
}
-/// `resolveWorkspaceFolderExtensionConfig`: `<folder>/.vscode/extensions.json`, then `.vscrs/extensions.json` per key.
+/// `resolveWorkspaceFolderExtensionConfig`: `<folder>/.vscode/extensions.json`, then `.vsrustium/extensions.json` per key.
pub fn read_folder_config(folder: &Path) -> ExtensionsConfig {
let mut config = ExtensionsConfig::default();
for dir in FOLDER_CONFIG_DIRS {
diff --git a/native/crates/app/src/extension_recommendations/tests.rs b/native/crates/app/src/extension_recommendations/tests.rs
index 0b1b4b51666..ce99b449201 100644
--- a/native/crates/app/src/extension_recommendations/tests.rs
+++ b/native/crates/app/src/extension_recommendations/tests.rs
@@ -1,7 +1,7 @@
use super::*;
fn temp_folder(name: &str) -> std::path::PathBuf {
- let folder = std::env::temp_dir().join(format!("vscrs-recommendations-{name}-{}", std::process::id()));
+ let folder = std::env::temp_dir().join(format!("vsrustium-recommendations-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&folder);
std::fs::create_dir_all(&folder).unwrap();
folder
@@ -13,13 +13,13 @@ fn write(folder: &Path, dir: &str, text: &str) {
}
#[test]
-fn vscrs_wins_per_key_over_vscode() {
+fn vsrustium_wins_per_key_over_vscode() {
let folder = temp_folder("per-key");
write(&folder, ".vscode", r#"{ // comment
"recommendations": ["a.vscode"], "unwantedRecommendations": ["b.vscode"], }"#);
- write(&folder, ".vscrs", r#"{ "recommendations": ["a.vscrs"] }"#);
+ write(&folder, ".vsrustium", r#"{ "recommendations": ["a.vsrustium"] }"#);
let config = read_folder_config(&folder);
- assert_eq!(config.recommendations, Some(vec!["a.vscrs".into()]));
+ assert_eq!(config.recommendations, Some(vec!["a.vsrustium".into()]));
assert_eq!(config.unwanted_recommendations, Some(vec!["b.vscode".into()]), "a key only .vscode has stays");
std::fs::remove_dir_all(&folder).unwrap();
}
diff --git a/native/crates/app/src/file_dialog/macos.rs b/native/crates/app/src/file_dialog/macos.rs
index 6cb09f2decf..3b7c15a27b0 100644
--- a/native/crates/app/src/file_dialog/macos.rs
+++ b/native/crates/app/src/file_dialog/macos.rs
@@ -172,7 +172,7 @@ struct FormatState {
define_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
- #[name = "VscrsFileDialogFormatHandler"]
+ #[name = "VSRustiumFileDialogFormatHandler"]
#[ivars = FormatState]
struct FormatHandler;
diff --git a/native/crates/app/src/launch.rs b/native/crates/app/src/launch.rs
index 9a104676f06..940ddb341c2 100644
--- a/native/crates/app/src/launch.rs
+++ b/native/crates/app/src/launch.rs
@@ -150,14 +150,14 @@ mod tests {
#[test]
fn the_windows_pipe_is_named_from_the_user_data_hash_as_create_static_ipc_handle() {
- // Node: createHash('sha256').update('C:\\Users\\Ann\\AppData\\Roaming\\Vscrs').digest('hex').substr(0, 8)
- let name = windows_pipe_name(Path::new(r"C:\Users\Ann\AppData\Roaming\Vscrs"), "1.147.0");
- assert_eq!(name, PathBuf::from(r"\\.\pipe\d225f69f-1.147.0-main-sock"));
+ // Node: createHash('sha256').update('C:\\Users\\Ann\\AppData\\Roaming\\VSRustium').digest('hex').substr(0, 8)
+ let name = windows_pipe_name(Path::new(r"C:\Users\Ann\AppData\Roaming\VSRustium"), "1.147.0");
+ assert_eq!(name, PathBuf::from(r"\\.\pipe\8c531f1c-1.147.0-main-sock"));
}
#[test]
fn a_second_instance_hands_its_arguments_to_the_first() {
- let dir = std::env::temp_dir().join(format!("vscrs-launch-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-launch-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let socket = socket_path(&dir);
assert!(!send_to_running_instance(&socket, &[], &dir), "nothing listens yet");
@@ -168,7 +168,7 @@ mod tests {
assert!(!socket.exists(), "a stale socket file is removed");
}
let mut launches = listen(&socket).unwrap();
- let args = vec!["vscrs".to_owned(), "folder".to_owned()];
+ let args = vec!["vsrustium".to_owned(), "folder".to_owned()];
assert!(send_to_running_instance(&socket, &args, Path::new("/tmp")));
let Some(Launch::Open { args: sent, cwd, .. }) = futures::executor::block_on(launches.next()) else { panic!("an open launch") };
assert_eq!((sent, cwd), (args, PathBuf::from("/tmp")));
diff --git a/native/crates/app/src/main.rs b/native/crates/app/src/main.rs
index 672d729a39f..8836533bcb7 100644
--- a/native/crates/app/src/main.rs
+++ b/native/crates/app/src/main.rs
@@ -1,5 +1,5 @@
//! The native app: the workbench, themed from the built-in theme files, over the running extension host.
-//! Usage: vscrs [folder or .code-workspace file [file]] [--theme <settings id>] [--user-data-dir <dir>] [--screenshot <png>]
+//! Usage: vsrustium [folder or .code-workspace file [file]] [--theme <settings id>] [--user-data-dir <dir>] [--screenshot <png>]
//! [--screenshot-keys "<keystroke> ..."] [--screenshot-input <steps>] [--node] [--export-default-keybindings [<folder>]]
//! [--extensionDevelopmentPath=<dir> [--extensionTestsPath=<path>]]: the app exits with the test runner's code.
// A GUI binary as Electron's, so a start from Explorer opens no console; cli::route_stdio_to_console finds the terminal's.
@@ -253,7 +253,7 @@ fn main() -> anyhow::Result<()> {
perf::mark("code/willLoadExtensions");
let builtins = scan_system_extensions(&app_root)?;
perf::mark("code/didScanExtensions");
- // Artur: user extensions live in ~/.vscrs/extensions, the default user data dir's extensions folder.
+ // Artur: user extensions live in ~/.vsrustium/extensions, the default user data dir's extensions folder.
let extensions_folder = flag_value("--extensions-dir").map_or_else(|| user_data.join("extensions"), PathBuf::from);
configure_unc_access(&user_data, &extensions_folder);
// code/electron-main/main.ts `initServices` makes the extensions folder; the extensions watcher watches it.
@@ -806,7 +806,7 @@ fn last_session_windows(user_data: &Path, cli_paths: bool, opens_documents: bool
#[test]
fn a_finder_launch_restores_the_last_session_only_with_preserve() {
- let user_data = std::env::temp_dir().join(format!("vscrs-finder-launch-{}", std::process::id()));
+ let user_data = std::env::temp_dir().join(format!("vsrustium-finder-launch-{}", std::process::id()));
// The `fsPath` the stored folder URI reads back as: a lower-case drive letter on Windows.
let user_data = PathBuf::from(uri::Uri::file(&user_data.to_string_lossy()).fs_path());
let _ = std::fs::remove_dir_all(&user_data);
@@ -911,7 +911,7 @@ pub(crate) fn scan_system_extensions(app_root: &Path) -> anyhow::Result<Vec<Scan
#[test]
fn a_checkout_run_scans_the_port_extensions() {
let ids: Vec<String> = scan_system_extensions(Path::new(env!("VSCODE_SRC"))).unwrap().into_iter().map(|extension| extension.id).collect();
- assert!(ids.iter().any(|id| id == "vscrs.apache") && ids.iter().any(|id| id == "vscrs.dotenv-intellisense"), "{ids:?}");
+ assert!(ids.iter().any(|id| id == "vsrustium.apache") && ids.iter().any(|id| id == "vsrustium.dotenv-intellisense"), "{ids:?}");
}
/// `os.homedir()`: a Windows session started from Explorer has `USERPROFILE` but no `HOME`.
@@ -921,31 +921,8 @@ pub(crate) fn home_dir() -> Option<PathBuf> {
fn default_user_data() -> anyhow::Result<PathBuf> {
let home = home_dir().ok_or_else(|| anyhow::anyhow!("HOME or USERPROFILE is not set"))?;
- user_data_in(&home)
-}
-
-/// Artur: all user data lives in ~/.vscrs, product.json `dataFolderName`. A ~/.vsrustium from before the rename
-/// to Vscrs moves there once, while ~/.vscrs does not exist.
-fn user_data_in(home: &Path) -> anyhow::Result<PathBuf> {
- let dir = home.join(".vscrs");
- let old = home.join(".vsrustium");
- if !dir.exists() && old.is_dir() {
- std::fs::rename(&old, &dir).with_context(|| format!("Moving {} to {}", old.display(), dir.display()))?;
- }
+ // Artur: all user data lives in ~/.vsrustium, product.json `dataFolderName`.
+ let dir = home.join(".vsrustium");
std::fs::create_dir_all(&dir)?;
Ok(dir)
}
-
-#[test]
-fn user_data_moves_from_vsrustium_once() {
- let home = std::env::temp_dir().join(format!("vscrs-{}-{}", test_name(), std::process::id()));
- let _ = std::fs::remove_dir_all(&home);
- std::fs::create_dir_all(home.join(".vsrustium/extensions")).unwrap();
- assert_eq!(user_data_in(&home).unwrap(), home.join(".vscrs"));
- assert!(home.join(".vscrs/extensions").is_dir() && !home.join(".vsrustium").exists());
-
- std::fs::create_dir_all(home.join(".vsrustium/User")).unwrap();
- user_data_in(&home).unwrap();
- assert!(home.join(".vsrustium/User").is_dir() && !home.join(".vscrs/User").exists(), "an existing ~/.vscrs wins");
- std::fs::remove_dir_all(&home).unwrap();
-}
diff --git a/native/crates/app/src/main_thread_commands/tests.rs b/native/crates/app/src/main_thread_commands/tests.rs
index c449b751828..93bc6e5623e 100644
--- a/native/crates/app/src/main_thread_commands/tests.rs
+++ b/native/crates/app/src/main_thread_commands/tests.rs
@@ -32,7 +32,7 @@ fn jsdoc_configuration() -> Value {
fn an_extension_language_configuration_applies_until_unregistered(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-language-configuration-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-language-configuration-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.txt");
std::fs::write(&file, "/**").unwrap();
diff --git a/native/crates/app/src/nls/tests.rs b/native/crates/app/src/nls/tests.rs
index 5646e7c9a5f..75a0fe643de 100644
--- a/native/crates/app/src/nls/tests.rs
+++ b/native/crates/app/src/nls/tests.rs
@@ -63,7 +63,7 @@ fn chinese_locales() {
#[test]
fn argv_locale_is_written_and_cleared() {
- let file = std::env::temp_dir().join(format!("vscrs-argv-locale-{}/argv.json", std::process::id()));
+ let file = std::env::temp_dir().join(format!("vsrustium-argv-locale-{}/argv.json", std::process::id()));
let _ = std::fs::remove_dir_all(file.parent().unwrap());
let options = |_: &str| FormattingOptions { tab_size: 4, insert_spaces: false, eol: "\n".into() };
write_argv_locale(&file, Some("fr"), options).unwrap();
diff --git a/native/crates/app/src/output/log_levels.rs b/native/crates/app/src/output/log_levels.rs
index e66cd80b9ca..6555cc79d61 100644
--- a/native/crates/app/src/output/log_levels.rs
+++ b/native/crates/app/src/output/log_levels.rs
@@ -26,7 +26,7 @@ impl DefaultLogLevels {
/// environmentService.argvResource: `<home>/<product dataFolderName>/argv.json`.
pub fn argv_file(home: &Path) -> PathBuf {
- home.join(".vscrs/argv.json")
+ home.join(".vsrustium/argv.json")
}
/// log.ts `parseLogLevel`.
diff --git a/native/crates/app/src/policy.rs b/native/crates/app/src/policy.rs
index 58da21e7ba0..2e1c3dd5540 100644
--- a/native/crates/app/src/policy.rs
+++ b/native/crates/app/src/policy.rs
@@ -20,7 +20,7 @@ mod windows;
pub use windows::{WATCHED_PATH, watch_policy_changes};
/// product.json `darwinBundleIdentifier`.
-pub const BUNDLE_IDENTIFIER: &str = "com.rokartur.vscrs";
+pub const BUNDLE_IDENTIFIER: &str = "com.rokartur.vsrustium";
/// `createWatcher(productName, policyDefinitions)`'s first update: the value of every policy the registry
/// defines, read as the type `PolicyConfiguration.toPolicyDefinitionType` gives its setting.
diff --git a/native/crates/app/src/policy/linux.rs b/native/crates/app/src/policy/linux.rs
index a3b53318272..5b61d949ff9 100644
--- a/native/crates/app/src/policy/linux.rs
+++ b/native/crates/app/src/policy/linux.rs
@@ -58,7 +58,7 @@ mod tests {
#[test]
fn the_policy_file_is_read_as_an_object_and_missing_or_malformed_reads_empty() {
- let file = std::env::temp_dir().join(format!("vscrs-policy-{}.json", std::process::id()));
+ let file = std::env::temp_dir().join(format!("vsrustium-policy-{}.json", std::process::id()));
assert!(read_policy_file(&file).is_empty());
std::fs::write(&file, "[1]").unwrap();
assert!(read_policy_file(&file).is_empty());
diff --git a/native/crates/app/src/policy/tests.rs b/native/crates/app/src/policy/tests.rs
index 1e9121fcd48..9462c97bcce 100644
--- a/native/crates/app/src/policy/tests.rs
+++ b/native/crates/app/src/policy/tests.rs
@@ -5,7 +5,7 @@ use serde_json::json;
use super::{read_native_policies, watch_policy_changes};
-const DOMAIN: &str = "com.rokartur.vscrs.policy-tests";
+const DOMAIN: &str = "com.rokartur.vsrustium.policy-tests";
fn defaults(args: &[&str]) {
assert!(Command::new("defaults").args(args).status().unwrap().success(), "defaults {args:?}");
@@ -54,7 +54,7 @@ fn a_file_written_under_the_watched_folder_reports_a_change_even_when_the_folder
});
std::thread::sleep(std::time::Duration::from_millis(500));
std::fs::create_dir_all(folder.join("artur")).unwrap();
- std::fs::write(folder.join("artur/com.rokartur.vscrs.plist"), "<plist/>").unwrap();
+ std::fs::write(folder.join("artur/com.rokartur.vsrustium.plist"), "<plist/>").unwrap();
let reported = receiver.recv_timeout(std::time::Duration::from_secs(10));
std::fs::remove_dir_all(&root).unwrap();
assert!(reported.is_ok(), "no FSEvents batch within 10s");
diff --git a/native/crates/app/src/product.rs b/native/crates/app/src/product.rs
index 29920d079b3..4dbc13131f9 100644
--- a/native/crates/app/src/product.rs
+++ b/native/crates/app/src/product.rs
@@ -7,7 +7,7 @@ use std::sync::{LazyLock, OnceLock};
use serde_json::Value;
-/// Where a packaged app keeps its files: Vscrs.app/Contents/Resources/app (package-app), or
+/// Where a packaged app keeps its files: VSRustium.app/Contents/Resources/app (package-app), or
/// resources/app beside the binary in the Linux and Windows folders (package-linux, package-windows), as VS Code's builds.
#[cfg(target_os = "macos")]
pub const BUNDLED_APP: &str = "Contents/Resources/app";
@@ -119,10 +119,10 @@ mod tests {
#[test]
fn reads_the_checkout_product() {
super::load(std::path::Path::new(env!("VSCODE_SRC")), false);
- assert_eq!(super::name_long(), "Vscrs");
- assert_eq!(super::name_short(), "Vscrs");
- assert_eq!(super::get("urlProtocol"), "vscrs");
- assert_eq!(super::get("darwinBundleIdentifier"), "com.rokartur.vscrs");
+ assert_eq!(super::name_long(), "VSRustium");
+ assert_eq!(super::name_short(), "VSRustium");
+ assert_eq!(super::get("urlProtocol"), "vsrustium");
+ assert_eq!(super::get("darwinBundleIdentifier"), "com.rokartur.vsrustium");
assert!(super::get("version").as_str().is_some_and(|version| version.starts_with("1.148")));
}
diff --git a/native/crates/app/src/ps.rs b/native/crates/app/src/ps.rs
index 32e37d51874..e107ba8fb01 100644
--- a/native/crates/app/src/ps.rs
+++ b/native/crates/app/src/ps.rs
@@ -161,7 +161,7 @@ mod tests {
#[test]
fn the_tree_keeps_the_descendants_of_the_root_sorted_by_pid() {
- let stdout = " 1 0 0.0 0.1 /sbin/launchd\n 100 1 12.5 1.0 /Applications/Vscrs.app/Contents/MacOS/vscrs\n 300 100 3.0 0.5 bun out-exthost/bootstrap-exthost.js --type=extensionHost\n 200 100 0.0 0.2 /bin/zsh -l\n 400 300 0.0 0.1 node /x/server.js\n 500 1 0.0 0.1 /usr/bin/other\n";
+ let stdout = " 1 0 0.0 0.1 /sbin/launchd\n 100 1 12.5 1.0 /Applications/VSRustium.app/Contents/MacOS/vsrustium\n 300 100 3.0 0.5 bun out-exthost/bootstrap-exthost.js --type=extensionHost\n 200 100 0.0 0.2 /bin/zsh -l\n 400 300 0.0 0.1 node /x/server.js\n 500 1 0.0 0.1 /usr/bin/other\n";
let root = process_tree(stdout, 100, 1000.).unwrap();
assert_eq!((root.pid, root.load, root.mem), (100, 12.5, 10.));
let children: Vec<(u32, &str)> = root.children.iter().map(|child| (child.pid, child.name.as_str())).collect();
@@ -173,7 +173,7 @@ mod tests {
#[test]
fn ps_finds_this_process() {
let root = list_processes(std::process::id(), 1000.).unwrap();
- assert!(root.cmd.contains("vscrs"), "{}", root.cmd);
+ assert!(root.cmd.contains("vsrustium"), "{}", root.cmd);
}
#[test]
diff --git a/native/crates/app/src/theme.rs b/native/crates/app/src/theme.rs
index 5c4231a34a6..317d27ad20d 100644
--- a/native/crates/app/src/theme.rs
+++ b/native/crates/app/src/theme.rs
@@ -1632,7 +1632,7 @@ mod tests {
/// colorThemeData.ts `_loadSyntaxTokens`: a JSON theme's `tokenColors` path and a theme that is a .tmTheme file.
#[test]
fn tm_theme_settings_give_token_rules_and_editor_colors() {
- let folder = std::env::temp_dir().join(format!("vscrs-tm-theme-{}", std::process::id()));
+ let folder = std::env::temp_dir().join(format!("vsrustium-tm-theme-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&folder);
std::fs::create_dir_all(folder.join("themes")).unwrap();
let themes = r#"[{ "id": "Json", "label": "Json", "uiTheme": "vs-dark", "path": "./themes/json.json" }, { "id": "Tm", "label": "Tm", "uiTheme": "vs-dark", "path": "./themes/plain.tmTheme" }]"#;
diff --git a/native/crates/app/src/update/install.rs b/native/crates/app/src/update/install.rs
index 0f89b86a0b3..6fb84e3be45 100644
--- a/native/crates/app/src/update/install.rs
+++ b/native/crates/app/src/update/install.rs
@@ -114,7 +114,7 @@ fn designated_requirement(bundle: &Path) -> anyhow::Result<String> {
output.lines().find_map(|line| line.trim_start_matches("# ").strip_prefix("designated => ")).map(str::to_owned).context("codesign printed no designated requirement")
}
-/// The helper's first argument: `vscrs --apply-update <pid> <staged .app> <installed .app> [--relaunch <args>...]`.
+/// The helper's first argument: `vsrustium --apply-update <pid> <staged .app> <installed .app> [--relaunch <args>...]`.
pub const APPLY_UPDATE: &str = "--apply-update";
/// Starts the helper (ShipIt) from this executable, in its own process group so it outlives the app, logging to
diff --git a/native/crates/app/src/update/install/tests.rs b/native/crates/app/src/update/install/tests.rs
index a9350ac5789..21711a654c8 100644
--- a/native/crates/app/src/update/install/tests.rs
+++ b/native/crates/app/src/update/install/tests.rs
@@ -3,7 +3,7 @@ use std::process::Command;
use super::*;
fn scratch(name: &str) -> PathBuf {
- let dir = std::env::temp_dir().join(format!("vscrs-update-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-update-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
dir
@@ -13,11 +13,11 @@ fn scratch(name: &str) -> PathBuf {
/// the Linux install is the M23 Linux row of update/install.rs.
#[cfg(target_os = "macos")]
fn bundle(dir: &Path, id: &str) -> PathBuf {
- let app = dir.join("Vscrs.app");
+ let app = dir.join("VSRustium.app");
std::fs::create_dir_all(app.join("Contents/MacOS")).unwrap();
- std::fs::copy("/usr/bin/true", app.join("Contents/MacOS/vscrs")).unwrap();
+ std::fs::copy("/usr/bin/true", app.join("Contents/MacOS/vsrustium")).unwrap();
let plist = format!(
- r#"<?xml version="1.0" encoding="UTF-8"?><plist version="1.0"><dict><key>CFBundleIdentifier</key><string>{id}</string><key>CFBundleExecutable</key><string>vscrs</string></dict></plist>"#
+ r#"<?xml version="1.0" encoding="UTF-8"?><plist version="1.0"><dict><key>CFBundleIdentifier</key><string>{id}</string><key>CFBundleExecutable</key><string>vsrustium</string></dict></plist>"#
);
std::fs::write(app.join("Contents/Info.plist"), plist).unwrap();
assert!(Command::new("codesign").args(["--force", "-s", "-"]).arg(&app).status().unwrap().success());
@@ -33,7 +33,7 @@ fn zip(source: &Path, zip: &Path) {
#[test]
fn a_zip_with_another_hash_is_refused_before_it_is_extracted() {
let dir = scratch("hash");
- let app = bundle(&dir.join("new"), "com.rokartur.vscrs");
+ let app = bundle(&dir.join("new"), "com.rokartur.vsrustium");
zip(&app, &dir.join("update.zip"));
let error = verify_download(&dir.join("update.zip"), &"0".repeat(64), &dir, &app).unwrap_err();
assert!(error.to_string().contains("is not the feed's"), "{error:#}");
@@ -60,8 +60,8 @@ fn a_zip_without_exactly_one_app_is_refused() {
#[test]
fn an_ad_hoc_signed_app_verifies_no_update() {
let dir = scratch("adhoc");
- let installed = bundle(&dir.join("installed"), "com.rokartur.vscrs");
- let candidate = bundle(&dir.join("candidate"), "com.rokartur.vscrs");
+ let installed = bundle(&dir.join("installed"), "com.rokartur.vsrustium");
+ let candidate = bundle(&dir.join("candidate"), "com.rokartur.vsrustium");
let error = verify_signature(&candidate, &installed).unwrap_err();
assert!(error.to_string().contains("not signed with a Developer ID"), "{error:#}");
}
@@ -77,11 +77,11 @@ fn the_sha256_matches_shasum() {
#[test]
fn a_read_only_or_translocated_bundle_cannot_update() {
let dir = scratch("writable");
- std::fs::create_dir_all(dir.join("Vscrs.app")).unwrap();
- check_writable(&dir.join("Vscrs.app")).unwrap();
+ std::fs::create_dir_all(dir.join("VSRustium.app")).unwrap();
+ check_writable(&dir.join("VSRustium.app")).unwrap();
let error = check_writable(Path::new("/System/Applications/Calculator.app")).unwrap_err();
assert!(error.to_string().starts_with("Cannot update while running on a read-only volume."));
- let translocated = dir.join("AppTranslocation/ABCD/d/Vscrs.app");
+ let translocated = dir.join("AppTranslocation/ABCD/d/VSRustium.app");
std::fs::create_dir_all(&translocated).unwrap();
assert!(check_writable(&translocated).is_err());
}
@@ -100,11 +100,11 @@ fn marker(app: &Path) -> String {
#[test]
fn replace_moves_the_update_in_and_the_old_app_aside() {
let dir = scratch("replace");
- let installed = app_with(&dir, "Vscrs.app", "N");
- let new = app_with(&dir.join("staging"), "Vscrs.app", "N+1");
- replace(&new, &installed, &dir.join(".Vscrs.app.old")).unwrap();
+ let installed = app_with(&dir, "VSRustium.app", "N");
+ let new = app_with(&dir.join("staging"), "VSRustium.app", "N+1");
+ replace(&new, &installed, &dir.join(".VSRustium.app.old")).unwrap();
assert_eq!(marker(&installed), "N+1");
- assert_eq!(marker(&dir.join(".Vscrs.app.old")), "N");
+ assert_eq!(marker(&dir.join(".VSRustium.app.old")), "N");
assert!(!new.exists());
}
@@ -112,14 +112,14 @@ fn replace_moves_the_update_in_and_the_old_app_aside() {
#[test]
fn a_failed_move_in_puts_the_installed_app_back() {
let dir = scratch("rollback");
- let installed = app_with(&dir, "Vscrs.app", "N");
- let aside = dir.join(".Vscrs.app.old");
+ let installed = app_with(&dir, "VSRustium.app", "N");
+ let aside = dir.join(".VSRustium.app.old");
let error = replace(&dir.join("missing.app"), &installed, &aside).unwrap_err();
assert!(format!("{error:#}").contains("the installed app was put back"), "{error:#}");
assert_eq!(marker(&installed), "N");
assert!(!aside.exists());
// An immutable update cannot be renamed, the failure port/tools/update-check uses for the end-to-end rollback.
- let new = app_with(&dir.join("staging"), "Vscrs.app", "N+1");
+ let new = app_with(&dir.join("staging"), "VSRustium.app", "N+1");
assert!(Command::new("chflags").arg("uchg").arg(&new).status().unwrap().success());
let result = replace(&new, &installed, &aside);
assert!(Command::new("chflags").arg("nouchg").arg(&new).status().unwrap().success());
@@ -133,7 +133,7 @@ fn a_failed_move_in_puts_the_installed_app_back() {
#[ignore = "needs the packages of port/tools/update-check"]
fn the_packaged_builds_verify_as_the_update_check_expects() {
let packages = PathBuf::from(std::env::var("UPDATE_CHECK_PACKAGES").expect("UPDATE_CHECK_PACKAGES"));
- let installed_n = packages.join("N/Vscrs.app");
+ let installed_n = packages.join("N/VSRustium.app");
let dir = scratch("packages");
// package-app names the zip by version and platform: the one zip in the package's folder.
let zip = |name: &str| std::fs::read_dir(packages.join(name)).unwrap().map(|entry| entry.unwrap().path()).find(|path| path.extension().is_some_and(|ext| ext == "zip")).unwrap();
@@ -152,7 +152,7 @@ fn the_packaged_builds_verify_as_the_update_check_expects() {
// The helper on an installed N whose update cannot move in: N is put back, still valid.
std::fs::create_dir_all(dir.join("Applications")).unwrap();
- let installed = dir.join("Applications/Vscrs.app");
+ let installed = dir.join("Applications/VSRustium.app");
assert!(Command::new("ditto").arg(&installed_n).arg(&installed).status().unwrap().success());
let mut exited = Command::new("true").spawn().unwrap();
exited.wait().unwrap();
@@ -169,7 +169,7 @@ fn the_packaged_builds_verify_as_the_update_check_expects() {
verify_signature(&installed, &installed_n).unwrap();
let version = Command::new("plutil").args(["-extract", "CFBundleShortVersionString", "raw"]).arg(installed.join("Contents/Info.plist")).output().unwrap();
assert_eq!(String::from_utf8_lossy(&version.stdout).trim(), "1.148.0");
- assert!(!dir.join("Applications/.Vscrs.app.old").exists());
+ assert!(!dir.join("Applications/.VSRustium.app.old").exists());
}
#[test]
diff --git a/native/crates/app/src/update/tests.rs b/native/crates/app/src/update/tests.rs
index e4a6997945a..f081ee0eb2b 100644
--- a/native/crates/app/src/update/tests.rs
+++ b/native/crates/app/src/update/tests.rs
@@ -14,18 +14,18 @@ fn entry(version: &str, timestamp: i64) -> Vec<u8> {
}
fn release(version: &str, product_version: &str, timestamp: i64) -> Vec<u8> {
- json!({ "version": version, "productVersion": product_version, "timestamp": timestamp, "url": "Vscrs-darwin-arm64.zip", "sha256hash": "AB".repeat(32) }).to_string().into_bytes()
+ json!({ "version": version, "productVersion": product_version, "timestamp": timestamp, "url": "VSRustium-darwin-arm64.zip", "sha256hash": "AB".repeat(32) }).to_string().into_bytes()
}
-const FEED: &str = "https://github.com/rokartur/vscrs/releases/latest/download/darwin-arm64.json";
+const FEED: &str = "https://github.com/rokartur/vsrustium/releases/latest/download/darwin-arm64.json";
#[test]
fn each_channel_has_its_feed_under_the_releases_url() {
- let releases = "https://github.com/rokartur/vscrs/releases";
+ let releases = "https://github.com/rokartur/vsrustium/releases";
assert_eq!(feed_url(releases, "darwin-arm64", "latest"), FEED);
- assert_eq!(feed_url(&format!("{releases}/"), "darwin-arm64", "pre-release"), "https://github.com/rokartur/vscrs/releases/download/pre-release/darwin-arm64-prerelease.json");
- assert_eq!(feed_url(releases, "darwin-x64", "latest"), "https://github.com/rokartur/vscrs/releases/latest/download/darwin-x64.json");
- assert_eq!(feed_url(releases, "darwin-x64", "pre-release"), "https://github.com/rokartur/vscrs/releases/download/pre-release/darwin-x64-prerelease.json");
+ assert_eq!(feed_url(&format!("{releases}/"), "darwin-arm64", "pre-release"), "https://github.com/rokartur/vsrustium/releases/download/pre-release/darwin-arm64-prerelease.json");
+ assert_eq!(feed_url(releases, "darwin-x64", "latest"), "https://github.com/rokartur/vsrustium/releases/latest/download/darwin-x64.json");
+ assert_eq!(feed_url(releases, "darwin-x64", "pre-release"), "https://github.com/rokartur/vsrustium/releases/download/pre-release/darwin-x64-prerelease.json");
}
#[test]
@@ -50,7 +50,7 @@ fn a_higher_version_is_an_update_and_a_lower_one_never() {
fn the_vscode_version_then_the_release_then_the_timestamp_decide() {
let on = |version: &str, release: u64, timestamp: i64| Build { version: semver::Version::parse(version).unwrap(), release, commit: "aaaa".into(), timestamp };
let offered = |release: Option<u64>, product_version: &str, timestamp: i64, build: &Build| {
- let mut feed = json!({ "version": "bbbb", "productVersion": product_version, "timestamp": timestamp, "url": "Vscrs-darwin-arm64.zip", "sha256hash": "ab".repeat(32) });
+ let mut feed = json!({ "version": "bbbb", "productVersion": product_version, "timestamp": timestamp, "url": "VSRustium-darwin-arm64.zip", "sha256hash": "ab".repeat(32) });
if let Some(release) = release {
feed["release"] = json!(release);
}
@@ -84,7 +84,7 @@ fn a_release_that_is_not_a_non_negative_integer_is_refused() {
#[test]
fn a_later_build_is_an_update_with_its_zip_beside_the_feed() {
let update = parse_feed(FEED, 200, &entry("bbbb", 2_000), &build()).unwrap().unwrap();
- assert_eq!(update.url, "https://github.com/rokartur/vscrs/releases/latest/download/Vscrs-darwin-arm64.zip");
+ assert_eq!(update.url, "https://github.com/rokartur/vsrustium/releases/latest/download/VSRustium-darwin-arm64.zip");
assert_eq!(update.sha256hash, "ab".repeat(32));
assert_eq!((update.version.as_str(), update.product_version.as_str(), update.timestamp), ("bbbb", "1.148.0", 2_000));
}
@@ -119,12 +119,12 @@ fn a_feed_without_a_sha256_or_with_a_plain_http_zip_is_refused() {
feed["sha256hash"] = json!("abc");
assert!(parse_feed(FEED, 200, feed.to_string().as_bytes(), &build()).is_err());
feed["sha256hash"] = json!("ab".repeat(32));
- feed["url"] = json!("http://example.com/Vscrs.zip");
+ feed["url"] = json!("http://example.com/VSRustium.zip");
assert!(parse_feed(FEED, 200, feed.to_string().as_bytes(), &build()).is_err());
- feed["url"] = json!("file:///tmp/Vscrs.zip");
+ feed["url"] = json!("file:///tmp/VSRustium.zip");
assert!(parse_feed(FEED, 200, feed.to_string().as_bytes(), &build()).is_err());
let local = parse_feed("http://127.0.0.1:8080/darwin-arm64.json", 200, &entry("bbbb", 2_000), &build()).unwrap().unwrap();
- assert_eq!(local.url, "http://127.0.0.1:8080/Vscrs-darwin-arm64.zip");
+ assert_eq!(local.url, "http://127.0.0.1:8080/VSRustium-darwin-arm64.zip");
}
/// Answers each request with the next reply, on 127.0.0.1: the releases URL and the requested paths.
@@ -157,7 +157,7 @@ fn config(update_url: String, bundle: &std::path::Path) -> Config {
}
fn writable_bundle(name: &str) -> PathBuf {
- let bundle = std::env::temp_dir().join(format!("vscrs-service-{name}-{}/Vscrs.app", std::process::id()));
+ let bundle = std::env::temp_dir().join(format!("vsrustium-service-{name}-{}/VSRustium.app", std::process::id()));
std::fs::create_dir_all(&bundle).unwrap();
bundle
}
@@ -208,7 +208,7 @@ fn an_explicit_check_without_an_update_says_so_once(cx: &mut gpui::TestAppContex
#[cfg(target_os = "macos")]
fn a_read_only_bundle_fails_the_check_with_squirrels_message_when_explicit(cx: &mut gpui::TestAppContext) {
let bundle = PathBuf::from("/System/Applications/Calculator.app");
- let (service, events) = service_with(Ok(Config { update_url: "http://127.0.0.1:9".into(), build: build(), bundle, staging: std::env::temp_dir().join("vscrs-service-unused") }), cx);
+ let (service, events) = service_with(Ok(Config { update_url: "http://127.0.0.1:9".into(), build: build(), bundle, staging: std::env::temp_dir().join("vsrustium-service-unused") }), cx);
service.update(cx, |service, cx| {
service.reconfigure("manual", "latest", cx);
service.check_for_updates(false, cx);
diff --git a/native/crates/app/src/walkthroughs.rs b/native/crates/app/src/walkthroughs.rs
index 866aa131c09..a4f54094927 100644
--- a/native/crates/app/src/walkthroughs.rs
+++ b/native/crates/app/src/walkthroughs.rs
@@ -756,8 +756,8 @@ mod tests {
#[test]
fn built_in_walkthroughs_name_the_product() {
let built_in = built_in(Path::new("/app"));
- assert_eq!(built_in[0].title, "Get started with Vscrs");
- assert_eq!(built_in[0].page_title, "Setup Vscrs");
+ assert_eq!(built_in[0].title, "Get started with VSRustium");
+ assert_eq!(built_in[0].page_title, "Setup VSRustium");
let all = format!("{built_in:?}");
assert!(!all.contains("VS Code"), "{all}");
}
diff --git a/native/crates/app/src/webview.rs b/native/crates/app/src/webview.rs
index e75fd76114d..23b19069709 100644
--- a/native/crates/app/src/webview.rs
+++ b/native/crates/app/src/webview.rs
@@ -816,7 +816,7 @@ mod tests {
#[test]
fn serves_only_files_inside_pre_dir_and_the_roots() {
- let dir = std::env::temp_dir().join(format!("vscrs-webview-serve-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-webview-serve-{}", std::process::id()));
let (pre_dir, root, outside) = (dir.join("pre"), dir.join("root"), dir.join("outside"));
for folder in [&pre_dir, &root, &outside] {
std::fs::create_dir_all(folder).unwrap();
diff --git a/native/crates/app/src/webview/linux.rs b/native/crates/app/src/webview/linux.rs
index 815efcac06d..0dde8404fde 100644
--- a/native/crates/app/src/webview/linux.rs
+++ b/native/crates/app/src/webview/linux.rs
@@ -191,7 +191,7 @@ fn load_with_http_rules(view: &webkit2gtk::WebView, content: &UserContentManager
}
view.load_uri(&url);
}
- let path = glib::user_cache_dir().join("vscrs").join("webview-content-filters");
+ let path = glib::user_cache_dir().join("vsrustium").join("webview-content-filters");
let rules = glib::Bytes::from_static(HTTP_LOOPBACK_ONLY_RULES.as_bytes());
let data = Box::into_raw(Box::new((view.clone(), content.clone(), url)));
// SAFETY: webkit_user_content_filter_store_save (WebKitGTK 2.24+) holds the store until `saved` runs.
diff --git a/native/crates/app/src/webview/windows.rs b/native/crates/app/src/webview/windows.rs
index 601473b3b08..4bf1d20b34a 100644
--- a/native/crates/app/src/webview/windows.rs
+++ b/native/crates/app/src/webview/windows.rs
@@ -435,7 +435,7 @@ fn physical(window: &Window, bounds: Bounds<Pixels>) -> RECT {
/// A hidden child window of `parent`.
fn child_window(parent: HWND) -> HWND {
static REGISTER: Once = Once::new();
- let class = w!("VscrsWebviewHost");
+ let class = w!("VSRustiumWebviewHost");
// SAFETY: this module's window class with DefWindowProcW; GPUI's window is alive.
unsafe {
let instance = GetModuleHandleW(None).expect("the executable's module").into();
diff --git a/native/crates/app/src/windows_state.rs b/native/crates/app/src/windows_state.rs
index de862838f62..8916208196a 100644
--- a/native/crates/app/src/windows_state.rs
+++ b/native/crates/app/src/windows_state.rs
@@ -236,7 +236,7 @@ mod tests {
use super::*;
fn scratch(name: &str) -> PathBuf {
- let dir = std::env::temp_dir().join(format!("vscrs-windows-state-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-windows-state-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("folder")).unwrap();
std::fs::create_dir_all(dir.join("User/globalStorage")).unwrap();
diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rs
index 1dfa1a86229..c92f210b251 100644
--- a/native/crates/app/src/workbench.rs
+++ b/native/crates/app/src/workbench.rs
@@ -2143,7 +2143,7 @@ impl Workbench {
header_case(text, self.setting("workbench.experimental.modernUIUppercaseViewHeaders") == true, preserve_case)
}
- /// The letterpress of an empty group, `size` wide (256px, 200px in a part of several groups): the Vscrs logo
+ /// The letterpress of an empty group, `size` wide (256px, 200px in a part of several groups): the VSRustium logo
/// in place of upstream's, in the fill and opacity of upstream's letterpress-*.svg for the theme kind.
fn watermark(&self, size: f32) -> Div {
let color = match self.theme.kind {
@@ -2272,7 +2272,7 @@ fn is_tahoe_or_newer() -> bool {
/// written once to the temporary folder.
fn letterpress_path() -> String {
static PATH: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| {
- let path = std::env::temp_dir().join(format!("vscrs-letterpress-{}.svg", std::process::id()));
+ let path = std::env::temp_dir().join(format!("vsrustium-letterpress-{}.svg", std::process::id()));
std::fs::write(&path, include_str!("workbench/letterpress.svg")).expect("the temporary folder is writable");
path.to_string_lossy().into_owned()
});
diff --git a/native/crates/app/src/workbench/accessible_view.rs b/native/crates/app/src/workbench/accessible_view.rs
index 6f4dd43d92e..2aef6bb2325 100644
--- a/native/crates/app/src/workbench/accessible_view.rs
+++ b/native/crates/app/src/workbench/accessible_view.rs
@@ -1169,7 +1169,7 @@ mod tests {
let extension = |proposals: Value| exthost::scan::ScannedExtension { id: "test.views".into(), location: "/x".into(), description: json!({ "enabledApiProposals": proposals, "contributes": { "views": { "explorer": [view] } } }) };
let (workbench, cx) = cx.add_window_view(|_, cx| {
let mut workbench = Workbench::new(theme, app_root.clone(), None, crate::languages::Languages::new(&[]), crate::default_settings(), crate::host_sync::HostSync::new(std::sync::mpsc::channel().0), cx);
- workbench.load_keybindings(crate::keybindings::default_keybindings(&[]), std::env::temp_dir().join("vscrs-no-keybindings.json"));
+ workbench.load_keybindings(crate::keybindings::default_keybindings(&[]), std::env::temp_dir().join("vsrustium-no-keybindings.json"));
workbench.set_tree_views(&[extension(json!(["contribAccessibilityHelpContent"]))]);
workbench
});
diff --git a/native/crates/app/src/workbench/activity.rs b/native/crates/app/src/workbench/activity.rs
index 778778bd665..9a33fb8c983 100644
--- a/native/crates/app/src/workbench/activity.rs
+++ b/native/crates/app/src/workbench/activity.rs
@@ -26,7 +26,7 @@ pub(super) fn progress_badge_icon(color: gpui::Rgba) -> AnyElement {
fn progress_icon_path() -> &'static str {
static PATH: OnceLock<String> = OnceLock::new();
PATH.get_or_init(|| {
- let path = std::env::temp_dir().join(format!("vscrs-progress-badge-{}.svg", std::process::id()));
+ let path = std::env::temp_dir().join(format!("vsrustium-progress-badge-{}.svg", std::process::id()));
std::fs::write(&path, PROGRESS_ICON).expect("the temporary folder is writable");
path.to_string_lossy().into_owned()
})
diff --git a/native/crates/app/src/workbench/backup_tracker/tests.rs b/native/crates/app/src/workbench/backup_tracker/tests.rs
index 2bd817a21c4..b9485b03996 100644
--- a/native/crates/app/src/workbench/backup_tracker/tests.rs
+++ b/native/crates/app/src/workbench/backup_tracker/tests.rs
@@ -24,7 +24,7 @@ fn etag_is_mtime_base_29_and_size_base_31() {
fn scratch() -> PathBuf {
static MADE: AtomicUsize = AtomicUsize::new(0);
- let dir = std::env::temp_dir().join(format!("vscrs-backup-tracker-{}-{}", std::process::id(), MADE.fetch_add(1, Ordering::Relaxed)));
+ let dir = std::env::temp_dir().join(format!("vsrustium-backup-tracker-{}-{}", std::process::id(), MADE.fetch_add(1, Ordering::Relaxed)));
std::fs::create_dir_all(dir.join("folder/.vscode")).unwrap();
std::fs::write(dir.join("folder/a.txt"), "a").unwrap();
dir
diff --git a/native/crates/app/src/workbench/banner.rs b/native/crates/app/src/workbench/banner.rs
index cd2cb973a45..5145c236452 100644
--- a/native/crates/app/src/workbench/banner.rs
+++ b/native/crates/app/src/workbench/banner.rs
@@ -77,7 +77,7 @@ impl Workbench {
/// window.ts: a folder inside the installation folder of the packaged app may be overwritten by an update.
fn app_root_banner(&self) -> Option<BannerItem> {
- // The folder holding BUNDLED_APP (Vscrs.app on macOS); run from the checkout the app is not built.
+ // The folder holding BUNDLED_APP (VSRustium.app on macOS); run from the checkout the app is not built.
let depth = std::path::Path::new(crate::product::BUNDLED_APP).components().count();
let install_location = self.app_root.ancestors().nth(depth).filter(|_| crate::product::is_bundled(&self.app_root))?;
if self.extension_development || !self.workspace()?.folders.iter().any(|folder| folder.path.starts_with(install_location)) {
diff --git a/native/crates/app/src/workbench/banner/tests.rs b/native/crates/app/src/workbench/banner/tests.rs
index 87b88e3d061..2e1bd90afed 100644
--- a/native/crates/app/src/workbench/banner/tests.rs
+++ b/native/crates/app/src/workbench/banner/tests.rs
@@ -14,8 +14,8 @@ use crate::theme::load_theme;
/// window.ts: a folder inside the packaged app's installation folder shows the warning; the close button hides it.
#[gpui::test]
fn a_folder_in_the_installation_folder_shows_the_warning_until_closed(cx: &mut TestAppContext) {
- let dir = std::env::temp_dir().join(format!("vscrs-banner-{}", std::process::id()));
- let folder = dir.join("Vscrs.app/folder");
+ let dir = std::env::temp_dir().join(format!("vsrustium-banner-{}", std::process::id()));
+ let folder = dir.join("VSRustium.app/folder");
std::fs::create_dir_all(&folder).unwrap();
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
@@ -24,8 +24,8 @@ fn a_folder_in_the_installation_folder_shows_the_warning_until_closed(cx: &mut T
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), Some(workspace), Languages::new(&[]), settings, HostSync::new(std::sync::mpsc::channel().0), cx));
let item = |workbench: &gpui::Entity<Workbench>, cx: &mut gpui::VisualTestContext| workbench.read_with(cx, |workbench, _| workbench.banner_item().map(|item| (item.id, item.message)));
assert_eq!(item(&workbench, cx), None, "run from the checkout the app is not installed");
- workbench.update(cx, |workbench, _| workbench.app_root = dir.join("Vscrs.app").join(crate::product::BUNDLED_APP));
- let install = crate::quick_input::path_label(&dir.join("Vscrs.app"), None);
+ workbench.update(cx, |workbench, _| workbench.app_root = dir.join("VSRustium.app").join(crate::product::BUNDLED_APP));
+ let install = crate::quick_input::path_label(&dir.join("VSRustium.app"), None);
let message = format!("Files you store within the installation folder ('{install}') may be OVERWRITTEN or DELETED IRREVERSIBLY without warning at update time.");
assert_eq!(item(&workbench, cx), Some(("appRootWarning.banner", message)));
workbench.update_in(cx, |workbench, window, cx| {
diff --git a/native/crates/app/src/workbench/breakpoint_widget.rs b/native/crates/app/src/workbench/breakpoint_widget.rs
index eeffc2b58b7..c4e6164a771 100644
--- a/native/crates/app/src/workbench/breakpoint_widget.rs
+++ b/native/crates/app/src/workbench/breakpoint_widget.rs
@@ -733,7 +733,7 @@ mod tests {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-{}", crate::test_name()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-{}", crate::test_name()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, "x\n".repeat(10)).unwrap();
@@ -763,7 +763,7 @@ mod tests {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-{}", crate::test_name()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-{}", crate::test_name()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, "let a = f();\n g();\n").unwrap();
diff --git a/native/crates/app/src/workbench/configuration/tests.rs b/native/crates/app/src/workbench/configuration/tests.rs
index af1e9a1daf3..d13f96225aa 100644
--- a/native/crates/app/src/workbench/configuration/tests.rs
+++ b/native/crates/app/src/workbench/configuration/tests.rs
@@ -125,7 +125,7 @@ fn the_app_icon_setting_swaps_the_dock_icon_and_follows_the_appearance(cx: &mut
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::BARS_DARK), "the dark default");
- assert_eq!(crate::app_icon::image("default", true, true), None, "the bundle's own icon in Vscrs.app");
+ assert_eq!(crate::app_icon::image("default", true, true), None, "the bundle's own icon in VSRustium.app");
assert_eq!(Some(logo(cx).as_slice()), icon(cx), "the update tooltip shows the default icon, not VS Code's code-icon.svg");
std::fs::remove_dir_all(dir).unwrap();
}
@@ -136,7 +136,7 @@ fn the_app_icon_setting_swaps_the_dock_icon_and_follows_the_appearance(cx: &mut
fn settings_files_edited_outside_the_app_reach_the_watcher(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark 2026").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-settings-watch-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-settings-watch-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
let folder = dir.join("folder");
std::fs::create_dir_all(dir.join("User")).unwrap();
diff --git a/native/crates/app/src/workbench/content_hover/tests.rs b/native/crates/app/src/workbench/content_hover/tests.rs
index 73d732cbda4..c09be404b22 100644
--- a/native/crates/app/src/workbench/content_hover/tests.rs
+++ b/native/crates/app/src/workbench/content_hover/tests.rs
@@ -35,7 +35,7 @@ fn the_mouse_over_another_groups_editor_shows_its_hover(cx: &mut TestAppContext)
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-hover-group-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-hover-group-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
// `nonBasicASCII` highlights the `é`: the unicode highlighter's hover part explains it.
@@ -85,7 +85,7 @@ fn open<'a>(cx: &'a mut TestAppContext, name: &str) -> (gpui::Entity<Workbench>,
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-hover-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-hover-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("a.txt");
diff --git a/native/crates/app/src/workbench/custom_documents/tests.rs b/native/crates/app/src/workbench/custom_documents/tests.rs
index 99a28525666..08980d3edbd 100644
--- a/native/crates/app/src/workbench/custom_documents/tests.rs
+++ b/native/crates/app/src/workbench/custom_documents/tests.rs
@@ -18,7 +18,7 @@ const VIEW_TYPE: &str = "test.edit";
fn scratch() -> PathBuf {
static MADE: AtomicUsize = AtomicUsize::new(0);
- let dir = std::env::temp_dir().join(format!("vscrs-custom-documents-{}-{}", std::process::id(), MADE.fetch_add(1, Ordering::Relaxed)));
+ let dir = std::env::temp_dir().join(format!("vsrustium-custom-documents-{}-{}", std::process::id(), MADE.fetch_add(1, Ordering::Relaxed)));
std::fs::create_dir_all(dir.join("folder")).unwrap();
std::fs::create_dir_all(dir.join("user/User")).unwrap();
std::fs::write(dir.join("folder/a.bin"), "a").unwrap();
diff --git a/native/crates/app/src/workbench/debug_commands.rs b/native/crates/app/src/workbench/debug_commands.rs
index b15daafb5cf..aa4b0e78ce2 100644
--- a/native/crates/app/src/workbench/debug_commands.rs
+++ b/native/crates/app/src/workbench/debug_commands.rs
@@ -481,7 +481,7 @@ impl Workbench {
(start < end).then(|| line[start..end].iter().collect())
}
- /// debugCommands.ts CONFIGURE: the launch.json of the selected folder (`.vscrs/` when the folder has one),
+ /// debugCommands.ts CONFIGURE: the launch.json of the selected folder (`.vsrustium/` when the folder has one),
/// created with the empty configuration list upstream writes without initial configurations.
fn open_launch_json(&mut self, window: &mut Window, cx: &mut Context<Self>) -> Outcome {
let (folder, _) = self.selected_launch();
diff --git a/native/crates/app/src/workbench/debug_hover/tests.rs b/native/crates/app/src/workbench/debug_hover/tests.rs
index 07bb939adc7..9e5bf5a7f3c 100644
--- a/native/crates/app/src/workbench/debug_hover/tests.rs
+++ b/native/crates/app/src/workbench/debug_hover/tests.rs
@@ -90,7 +90,7 @@ fn shown(workbench: &gpui::Entity<Workbench>, cx: &mut VisualTestContext) -> Opt
}
fn temp_file(name: &str, text: &str) -> std::path::PathBuf {
- let dir = std::env::temp_dir().join(format!("vscrs-debug-hover-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-debug-hover-{name}-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, text).unwrap();
diff --git a/native/crates/app/src/workbench/debug_inline_values/tests.rs b/native/crates/app/src/workbench/debug_inline_values/tests.rs
index 89b882b79bc..b4c62b538d7 100644
--- a/native/crates/app/src/workbench/debug_inline_values/tests.rs
+++ b/native/crates/app/src/workbench/debug_inline_values/tests.rs
@@ -85,7 +85,7 @@ fn shown(workbench: &gpui::Entity<Workbench>, cx: &mut VisualTestContext) -> Vec
/// variables it names, in the order it names them; a continue takes them away 100ms later.
#[gpui::test]
fn the_focused_frame_shows_its_variables_after_the_lines_naming_them(cx: &mut TestAppContext) {
- let dir = std::env::temp_dir().join(format!("vscrs-inline-values-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-inline-values-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, "function f(a) {\n let b = a + 1;\n return b;\n}\n").unwrap();
@@ -119,7 +119,7 @@ fn the_focused_frame_shows_its_variables_after_the_lines_naming_them(cx: &mut Te
/// instead of staying stale in the other group's editor.
#[gpui::test]
fn the_values_of_a_file_moved_to_another_group_are_removed(cx: &mut TestAppContext) {
- let dir = std::env::temp_dir().join(format!("vscrs-inline-values-other-group-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-inline-values-other-group-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, "function f(a) {\n let b = a + 1;\n return b;\n}\n").unwrap();
@@ -147,7 +147,7 @@ fn the_values_of_a_file_moved_to_another_group_are_removed(cx: &mut TestAppConte
/// `debug.inlineValues: auto` asks the providers only; a variable lookup takes the value from the scopes.
#[gpui::test]
fn auto_shows_the_providers_values_in_column_order(cx: &mut TestAppContext) {
- let dir = std::env::temp_dir().join(format!("vscrs-inline-providers-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-inline-providers-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, "function f(a) {\n let b = a + 1;\n return b;\n}\n").unwrap();
@@ -188,7 +188,7 @@ fn auto_shows_the_providers_values_in_column_order(cx: &mut TestAppContext) {
/// input it finds; once the view exists, a focus change expands the first cheap scope.
#[gpui::test]
fn the_first_scope_expands_only_once_the_variables_view_exists(cx: &mut TestAppContext) {
- let dir = std::env::temp_dir().join(format!("vscrs-first-scope-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-first-scope-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, "function f(a) {\n return a;\n}\n").unwrap();
diff --git a/native/crates/app/src/workbench/debug_task_runner.rs b/native/crates/app/src/workbench/debug_task_runner.rs
index 8d0c9aa99bb..2cae91c0c58 100644
--- a/native/crates/app/src/workbench/debug_task_runner.rs
+++ b/native/crates/app/src/workbench/debug_task_runner.rs
@@ -294,7 +294,7 @@ mod tests {
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
let (sender, receiver) = std::sync::mpsc::channel();
// A writable User folder: `debug.onTaskErrors` must reach the settings, or the start prompts.
- let user = std::env::temp_dir().join(format!("vscrs-{}-{}/User", crate::test_name(), std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-{}-{}/User", crate::test_name(), std::process::id()));
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user, None)));
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, crate::languages::Languages::new(&[]), settings, crate::host_sync::HostSync::new(sender), cx));
workbench.update_in(cx, |workbench, window, cx| {
diff --git a/native/crates/app/src/workbench/debug_toolbar.rs b/native/crates/app/src/workbench/debug_toolbar.rs
index cb3a38ca182..a2937096fc0 100644
--- a/native/crates/app/src/workbench/debug_toolbar.rs
+++ b/native/crates/app/src/workbench/debug_toolbar.rs
@@ -505,7 +505,7 @@ mod tests {
fn set_toolbar_location(workbench: &gpui::Entity<Workbench>, location: &str, cx: &mut gpui::VisualTestContext) {
workbench.update_in(cx, |workbench, _, cx| {
- let user = std::env::temp_dir().join(format!("vscrs-{}", crate::test_name()));
+ let user = std::env::temp_dir().join(format!("vsrustium-{}", crate::test_name()));
let mut settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None);
settings.update_value("debug.toolBarLocation", Some(&json!(location)), config::service::Target::User, None, &[]).unwrap();
std::fs::remove_dir_all(&user).unwrap();
diff --git a/native/crates/app/src/workbench/editor_view.rs b/native/crates/app/src/workbench/editor_view.rs
index 3ce998f34c2..4692856a36e 100644
--- a/native/crates/app/src/workbench/editor_view.rs
+++ b/native/crates/app/src/workbench/editor_view.rs
@@ -3622,7 +3622,7 @@ mod tests {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-editor-view-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-editor-view-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
std::fs::write(dir.join("User/settings.json"), user_settings).unwrap();
diff --git a/native/crates/app/src/workbench/extension_host_restart/tests.rs b/native/crates/app/src/workbench/extension_host_restart/tests.rs
index c7187e57ff9..423a0024ecd 100644
--- a/native/crates/app/src/workbench/extension_host_restart/tests.rs
+++ b/native/crates/app/src/workbench/extension_host_restart/tests.rs
@@ -17,7 +17,7 @@ use crate::workbench::Workbench;
fn a_changed_default_does_not_ask_to_restart(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-restart-default-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-restart-default-{}", std::process::id()));
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), settings, HostSync::new(std::sync::mpsc::channel().0), cx));
workbench.update(cx, |workbench, _| workbench.settings.lock().unwrap().update_value("window.dialogStyle", Some(&json!("custom")), config::service::Target::User, None, &[]).unwrap());
@@ -65,7 +65,7 @@ fn a_host_restart_starts_the_host_as_the_window_did(cx: &mut TestAppContext) {
cx.executor().allow_parking();
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-restart-start-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-restart-start-{}", std::process::id()));
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("settings/User"), None)));
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), settings, HostSync::new(std::sync::mpsc::channel().0), cx));
let (opened, host_opened) = std::sync::mpsc::channel();
@@ -89,7 +89,7 @@ fn a_host_restart_starts_the_host_as_the_window_did(cx: &mut TestAppContext) {
fn a_debug_session_vetoes_the_restart_until_confirmed(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-restart-veto-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-restart-veto-{}", std::process::id()));
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
let (sender, receiver) = std::sync::mpsc::channel();
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), settings, HostSync::new(sender), cx));
diff --git a/native/crates/app/src/workbench/extensions_list_view/tests.rs b/native/crates/app/src/workbench/extensions_list_view/tests.rs
index 5097f3fc15b..1b3cc60f18a 100644
--- a/native/crates/app/src/workbench/extensions_list_view/tests.rs
+++ b/native/crates/app/src/workbench/extensions_list_view/tests.rs
@@ -192,7 +192,7 @@ fn an_activated_extensions_row_shows_its_activation_time(cx: &mut TestAppContext
fn the_manage_menu_auto_updates_a_publisher_and_toggles_a_workspace_recommendation(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-workspace-recommendation-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-workspace-recommendation-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let folder = config::workspace::Workspace::folder(dir.clone());
diff --git a/native/crates/app/src/workbench/file_decorations/tests.rs b/native/crates/app/src/workbench/file_decorations/tests.rs
index e10f9565c2a..8e0d1293fe0 100644
--- a/native/crates/app/src/workbench/file_decorations/tests.rs
+++ b/native/crates/app/src/workbench/file_decorations/tests.rs
@@ -19,7 +19,7 @@ use crate::workbench::part_view::CachedPart;
fn explorer_rows_ask_each_provider_once_and_show_the_answer(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-decorations-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-decorations-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("src")).unwrap();
std::fs::write(dir.join("src/a.ts"), "").unwrap();
@@ -65,7 +65,7 @@ fn explorer_rows_ask_each_provider_once_and_show_the_answer(cx: &mut TestAppCont
fn an_answer_redraws_the_side_bar_alone(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-decorations-redraw-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-decorations-redraw-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
std::fs::write(dir.join("a.ts"), "").unwrap();
@@ -133,7 +133,7 @@ fn problems_decorate_the_file_before_other_providers_and_bubble_to_its_folder(cx
#[gpui::test]
fn a_workspace_root_that_fails_to_resolve_is_decorated_with_its_error(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
- let dir = std::env::temp_dir().join(format!("vscrs-root-error-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-root-error-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("present")).unwrap();
let file = dir.join("two.code-workspace");
diff --git a/native/crates/app/src/workbench/find_widget/tests.rs b/native/crates/app/src/workbench/find_widget/tests.rs
index 1435514e2b4..965b91253b7 100644
--- a/native/crates/app/src/workbench/find_widget/tests.rs
+++ b/native/crates/app/src/workbench/find_widget/tests.rs
@@ -126,7 +126,7 @@ fn each_group_keeps_its_own_find_widget_and_shares_the_history(cx: &mut TestAppC
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-find-per-group-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-find-per-group-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("a.txt");
diff --git a/native/crates/app/src/workbench/folding_providers/tests.rs b/native/crates/app/src/workbench/folding_providers/tests.rs
index f1cd868af88..7cadd9fe23d 100644
--- a/native/crates/app/src/workbench/folding_providers/tests.rs
+++ b/native/crates/app/src/workbench/folding_providers/tests.rs
@@ -16,7 +16,7 @@ fn workbench_with<'a>(name: &str, cx: &'a mut TestAppContext) -> (gpui::Entity<W
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-folding-providers-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-folding-providers-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
std::fs::write(dir.join("a.txt"), "import a\nimport b\nimport c\nx\n y\n z").unwrap();
diff --git a/native/crates/app/src/workbench/format/tests.rs b/native/crates/app/src/workbench/format/tests.rs
index d69c9be7d6d..a37f4b34704 100644
--- a/native/crates/app/src/workbench/format/tests.rs
+++ b/native/crates/app/src/workbench/format/tests.rs
@@ -90,7 +90,7 @@ fn open<'a>(name: &str, text: &str, user_settings: &str, cx: &'a mut TestAppCont
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-format-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-format-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
std::fs::write(dir.join("User/settings.json"), user_settings).unwrap();
diff --git a/native/crates/app/src/workbench/host/tests.rs b/native/crates/app/src/workbench/host/tests.rs
index cf6198b0185..5d9e800ed2e 100644
--- a/native/crates/app/src/workbench/host/tests.rs
+++ b/native/crates/app/src/workbench/host/tests.rs
@@ -20,7 +20,7 @@ fn empty_window(cx: &mut TestAppContext) -> (gpui::Entity<Workbench>, gpui::AnyW
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let settings = Arc::new(Mutex::new(Settings::load(Registry::with_extensions(&[]), std::env::temp_dir().join("vscrs-switch-window-user"), None)));
+ let settings = Arc::new(Mutex::new(Settings::load(Registry::with_extensions(&[]), std::env::temp_dir().join("vsrustium-switch-window-user"), None)));
let (workbench, vcx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root, None, Languages::new(&[]), settings, HostSync::new(std::sync::mpsc::channel().0), cx));
vcx.run_until_parked();
(workbench, vcx.update(|window, _| window.window_handle()))
@@ -168,7 +168,7 @@ fn switch_window_lists_the_windows_and_closes_one_from_its_row(cx: &mut TestAppC
/// in the window whose folder holds it (`findWindowOnFile`), the nearest folder first, not in the last active window.
#[gpui::test]
fn a_file_opens_in_the_window_whose_folder_holds_it(cx: &mut TestAppContext) {
- let dir = std::env::temp_dir().join(format!("vscrs-window-on-file-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-window-on-file-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("project/sub")).unwrap();
std::fs::write(dir.join("project/top.txt"), "").unwrap();
diff --git a/native/crates/app/src/workbench/inline_breakpoints.rs b/native/crates/app/src/workbench/inline_breakpoints.rs
index 9ddf7a8ba28..e16ad69e614 100644
--- a/native/crates/app/src/workbench/inline_breakpoints.rs
+++ b/native/crates/app/src/workbench/inline_breakpoints.rs
@@ -246,7 +246,7 @@ mod tests {
use super::*;
fn open(workbench: &gpui::Entity<Workbench>, text: &str, cx: &mut gpui::VisualTestContext) -> (std::path::PathBuf, Value, String) {
- let dir = std::env::temp_dir().join(format!("vscrs-{}", crate::test_name()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-{}", crate::test_name()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.js");
std::fs::write(&file, text).unwrap();
diff --git a/native/crates/app/src/workbench/interactive/tests.rs b/native/crates/app/src/workbench/interactive/tests.rs
index aa51a607086..195e4e4f6a2 100644
--- a/native/crates/app/src/workbench/interactive/tests.rs
+++ b/native/crates/app/src/workbench/interactive/tests.rs
@@ -46,7 +46,7 @@ fn the_interactive_window_executes_its_input_as_cells(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-interactive-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-interactive-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None);
diff --git a/native/crates/app/src/workbench/keyboard/tests.rs b/native/crates/app/src/workbench/keyboard/tests.rs
index 2be70b8f733..907f52670c1 100644
--- a/native/crates/app/src/workbench/keyboard/tests.rs
+++ b/native/crates/app/src/workbench/keyboard/tests.rs
@@ -168,7 +168,7 @@ fn an_untitled_editor_is_a_text_resource_editor(cx: &mut TestAppContext) {
fn an_outside_edit_of_keybindings_json_applies(cx: &mut TestAppContext) {
let items = || vec![kb_item("cmd+k", "first", None), kb_item("cmd+j", "second", None)];
let (workbench, cx, calls) = workbench_with(items(), cx);
- let dir = std::env::temp_dir().join(format!("vscrs-keybindings-watch-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-keybindings-watch-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let user_file = dir.join("keybindings.json");
std::fs::write(&user_file, "[]").unwrap();
diff --git a/native/crates/app/src/workbench/links/tests.rs b/native/crates/app/src/workbench/links/tests.rs
index b53988a772e..89b0e9fe0f6 100644
--- a/native/crates/app/src/workbench/links/tests.rs
+++ b/native/crates/app/src/workbench/links/tests.rs
@@ -41,7 +41,7 @@ fn the_hover_message_names_the_gesture() {
fn an_editor_link_opens_without_the_domain_prompt_in_a_trusted_workspace(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-links-open-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-links-open-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("a.txt");
std::fs::write(&file, "see https://example.com/a now\n").unwrap();
diff --git a/native/crates/app/src/workbench/localization.rs b/native/crates/app/src/workbench/localization.rs
index 633b742bff0..a36fce20848 100644
--- a/native/crates/app/src/workbench/localization.rs
+++ b/native/crates/app/src/workbench/localization.rs
@@ -173,8 +173,8 @@ impl Workbench {
/// `showRestartDialog`.
fn restart_dialog(&self, language: &str, window: &mut Window, cx: &mut Context<Self>) -> futures::channel::oneshot::Receiver<(usize, bool)> {
- let message = format!("Restart Vscrs to switch to {language}?");
- let detail = format!("To change the display language to {language}, Vscrs needs to restart.");
+ let message = format!("Restart VSRustium to switch to {language}?");
+ let detail = format!("To change the display language to {language}, VSRustium needs to restart.");
dialog::show_message_box(window, crate::dialog::InTests::Confirm, PromptLevel::Info, &message, Some(&detail), &["Restart", "Cancel"], None, cx)
}
diff --git a/native/crates/app/src/workbench/menubar/tests.rs b/native/crates/app/src/workbench/menubar/tests.rs
index c0204f37d1a..c968c6b3de9 100644
--- a/native/crates/app/src/workbench/menubar/tests.rs
+++ b/native/crates/app/src/workbench/menubar/tests.rs
@@ -113,15 +113,15 @@ fn native_menus_show_keybindings_as_key_equivalents_or_in_the_label(cx: &mut Tes
let menubar = cx.update(|window, cx| workbench.read(cx).menubar(window));
let (menus, key_equivalents) = cx.update(|_, cx| native_menus(&menubar, cx));
let names: Vec<&str> = menus.iter().map(|menu| menu.name.as_ref()).collect();
- assert_eq!(names, ["Vscrs", "File", "Edit", "Selection", "View", "Go", "Window", "Help"]);
+ assert_eq!(names, ["VSRustium", "File", "Edit", "Selection", "View", "Go", "Window", "Help"]);
let MenuItem::Action { name, .. } = &menus[0].items[0] else { panic!("About first") };
- assert_eq!(name.as_ref(), "About Vscrs");
+ assert_eq!(name.as_ref(), "About VSRustium");
let names: Vec<&str> = menus[0].items.iter().filter_map(|item| match item {
MenuItem::Action { name, .. } => Some(name.as_ref()),
_ => None,
}).collect();
- assert!(names.contains(&"Hide Vscrs") && names.contains(&"Quit Vscrs"), "{names:?}");
- assert_eq!(workbench.read_with(cx, |workbench, _| workbench.window_title()), "Vscrs", "the empty window's title");
+ assert!(names.contains(&"Hide VSRustium") && names.contains(&"Quit VSRustium"), "{names:?}");
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.window_title()), "VSRustium", "the empty window's title");
let MenuItem::Submenu(preferences) = &menus[0].items[2] else { panic!("Preferences after a separator") };
let themes = preferences.items.iter().find_map(|item| match item {
MenuItem::Submenu(menu) if menu.name.as_ref() == "Themes" => Some(menu),
diff --git a/native/crates/app/src/workbench/notebook_editor/tests.rs b/native/crates/app/src/workbench/notebook_editor/tests.rs
index 48ac6fabe0a..53464a37f70 100644
--- a/native/crates/app/src/workbench/notebook_editor/tests.rs
+++ b/native/crates/app/src/workbench/notebook_editor/tests.rs
@@ -25,7 +25,7 @@ fn workbench_with_cells(cells: serde_json::Value, cx: &mut TestAppContext) -> (g
// One folder per call: tests run in parallel threads of one process and would remove each other's.
static NEXT: std::sync::atomic::AtomicUsize = std::sync::atomic::AtomicUsize::new(0);
let run = NEXT.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
- let dir = std::env::temp_dir().join(format!("vscrs-notebook-editor-{}-{run}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-notebook-editor-{}-{run}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None);
diff --git a/native/crates/app/src/workbench/process_explorer.rs b/native/crates/app/src/workbench/process_explorer.rs
index 5e6c6ea138f..6f283201acf 100644
--- a/native/crates/app/src/workbench/process_explorer.rs
+++ b/native/crates/app/src/workbench/process_explorer.rs
@@ -787,7 +787,7 @@ mod tests {
fn tree() -> ProcessItem {
let host = process(300, "/x/bun /app/out-exthost/bootstrap-exthost.js --skipWorkspaceStorageLock", 3., 10. * BYTES_PER_MB, vec![process(400, "node /x/server.js", 0., 0., vec![])]);
- process(100, "/Applications/Vscrs.app/Contents/MacOS/vscrs", 12.5, 150.4 * BYTES_PER_MB, vec![process(200, "/bin/zsh -l", 0., 0., vec![]), host])
+ process(100, "/Applications/VSRustium.app/Contents/MacOS/vsrustium", 12.5, 150.4 * BYTES_PER_MB, vec![process(200, "/bin/zsh -l", 0., 0., vec![]), host])
}
fn ids(rows: &[Row]) -> Vec<RowId> {
@@ -808,29 +808,29 @@ mod tests {
#[test]
fn rows_follow_the_tree_and_hide_collapsed_children() {
let root = tree();
- let rows = visible_rows(Some(&root), "vscrs", &HashSet::new());
+ let rows = visible_rows(Some(&root), "vsrustium", &HashSet::new());
assert_eq!(ids(&rows), [RowId::Header, RowId::Process(100), RowId::Process(200), RowId::Process(300), RowId::Process(400)]);
let names: Vec<&str> = rows.iter().map(|row| row.cells[0].as_str()).collect();
- assert_eq!(names, ["Process Name", "vscrs", "/bin/zsh -l", "extension-host [1]", "node /x/server.js"]);
+ assert_eq!(names, ["Process Name", "vsrustium", "/bin/zsh -l", "extension-host [1]", "node /x/server.js"]);
assert_eq!(rows[3].aria_label.as_deref(), Some("electron-nodejs (bootstrap-exthost.js)"));
assert_eq!(rows.iter().map(|row| row.depth).collect::<Vec<_>>(), [1, 2, 3, 3, 4]);
assert_eq!(rows[4].ancestors, [RowId::Header, RowId::Process(100), RowId::Process(300)]);
assert!(rows[3].has_children && !rows[2].has_children);
let collapsed = HashSet::from([RowId::Process(300)]);
- let rows = visible_rows(Some(&root), "vscrs", &collapsed);
+ let rows = visible_rows(Some(&root), "vsrustium", &collapsed);
assert_eq!(ids(&rows), [RowId::Header, RowId::Process(100), RowId::Process(200), RowId::Process(300)]);
assert!(!rows[3].expanded);
- assert_eq!(ids(&visible_rows(Some(&root), "vscrs", &HashSet::from([RowId::Header]))), [RowId::Header]);
- assert_eq!(ids(&visible_rows(None, "vscrs", &HashSet::new())), [RowId::Header]);
+ assert_eq!(ids(&visible_rows(Some(&root), "vsrustium", &HashSet::from([RowId::Header]))), [RowId::Header]);
+ assert_eq!(ids(&visible_rows(None, "vsrustium", &HashSet::new())), [RowId::Header]);
}
#[test]
fn copy_writes_each_cell_on_its_own_line() {
- let rows = visible_rows(Some(&tree()), "vscrs", &HashSet::new());
+ let rows = visible_rows(Some(&tree()), "vsrustium", &HashSet::new());
assert_eq!(copy_text(&rows, &[300, 999, 200]), "extension-host [1]\n3\n10\n300\n/bin/zsh -l\n0\n0\n200");
let all = copy_all_text(&rows);
- assert!(all.starts_with("Process Name\nCPU (%)\nMemory (MB)\nPID\nvscrs\n13\n150\n100\n"), "{all}");
+ assert!(all.starts_with("Process Name\nCPU (%)\nMemory (MB)\nPID\nvsrustium\n13\n150\n100\n"), "{all}");
assert!(all.ends_with("node /x/server.js\n0\n0\n400"), "{all}");
}
@@ -844,7 +844,7 @@ mod tests {
#[test]
fn active_guides_light_the_parent_or_the_expanded_node() {
- let rows = visible_rows(Some(&tree()), "vscrs", &HashSet::new());
+ let rows = visible_rows(Some(&tree()), "vsrustium", &HashSet::new());
assert_eq!(active_guide_nodes(&rows, &[RowId::Process(400)]), HashSet::from([RowId::Process(300)]));
assert_eq!(active_guide_nodes(&rows, &[RowId::Process(300)]), HashSet::from([RowId::Process(300)]));
assert_eq!(active_guide_nodes(&rows, &[RowId::Process(200)]), HashSet::from([RowId::Process(100)]));
diff --git a/native/crates/app/src/workbench/release_notes.rs b/native/crates/app/src/workbench/release_notes.rs
index b72a8898502..b06aab40747 100644
--- a/native/crates/app/src/workbench/release_notes.rs
+++ b/native/crates/app/src/workbench/release_notes.rs
@@ -220,17 +220,17 @@ mod tests {
#[test]
fn a_github_releases_url_reads_the_releases_api() {
- assert_eq!(release_api_url("https://github.com/rokartur/vscrs/releases", "1.148.0"), "https://api.github.com/repos/rokartur/vscrs/releases/tags/v1.148.0");
+ assert_eq!(release_api_url("https://github.com/rokartur/vsrustium/releases", "1.148.0"), "https://api.github.com/repos/rokartur/vsrustium/releases/tags/v1.148.0");
assert_eq!(release_api_url("http://127.0.0.1:8080/o/r/releases/", "1.148.0-insider"), "http://127.0.0.1:8080/o/r/releases/tags/v1.148.0-insider");
}
#[test]
fn the_page_has_upstreams_styles_the_notes_and_the_checkbox() {
- let page = release_notes_page("# Vscrs 1.148.0\n\n## Fixes\n\n![shot](images/a.png)", "https://github.com/rokartur/vscrs/releases/", true, |code, _| code.to_owned(), "");
- assert!(page.contains("<base href=\"https://github.com/rokartur/vscrs/releases/\" >"));
+ let page = release_notes_page("# VSRustium 1.148.0\n\n## Fixes\n\n![shot](images/a.png)", "https://github.com/rokartur/vsrustium/releases/", true, |code, _| code.to_owned(), "");
+ assert!(page.contains("<base href=\"https://github.com/rokartur/vsrustium/releases/\" >"));
assert!(page.contains("max-width: 980px;") && page.contains("padding: 10px 20px;"), "renderBody's and DEFAULT_MARKDOWN_STYLES' rules");
assert!(!page.contains("${"), "no template placeholder left");
- assert!(page.contains(">Vscrs 1.148.0</h1>"));
+ assert!(page.contains(">VSRustium 1.148.0</h1>"));
assert!(page.contains("src=\"images/a.png\""), "relative media resolves against the base");
assert!(page.contains("input.checked = true;") && page.contains("\"Show release notes after an update\""));
}
diff --git a/native/crates/app/src/workbench/repl_notebook/tests.rs b/native/crates/app/src/workbench/repl_notebook/tests.rs
index dcc6f917657..45a12a5b8cf 100644
--- a/native/crates/app/src/workbench/repl_notebook/tests.rs
+++ b/native/crates/app/src/workbench/repl_notebook/tests.rs
@@ -34,7 +34,7 @@ fn a_notebook_shown_as_repl_executes_its_last_cell(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-repl-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-repl-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None);
diff --git a/native/crates/app/src/workbench/settings_editor_view.rs b/native/crates/app/src/workbench/settings_editor_view.rs
index 5af09196681..a0ac1a58895 100644
--- a/native/crates/app/src/workbench/settings_editor_view.rs
+++ b/native/crates/app/src/workbench/settings_editor_view.rs
@@ -356,7 +356,7 @@ impl Workbench {
});
commands.register("settings.copySettingAsURL", |workbench, args, _, cx| {
let Some(index) = setting_arg(workbench, &args) else { return Outcome::done() };
- cx.write_to_clipboard(ClipboardItem::new_string(format!("vscrs://settings/{}", workbench.settings_editor.model.settings[index].key)));
+ cx.write_to_clipboard(ClipboardItem::new_string(format!("vsrustium://settings/{}", workbench.settings_editor.model.settings[index].key)));
Outcome::done()
});
// listCommands.ts on the settings tree and TOC; other lists keep the handler registered before.
diff --git a/native/crates/app/src/workbench/shell_command/tests.rs b/native/crates/app/src/workbench/shell_command/tests.rs
index b4582a32ca2..8a74c48c23c 100644
--- a/native/crates/app/src/workbench/shell_command/tests.rs
+++ b/native/crates/app/src/workbench/shell_command/tests.rs
@@ -11,7 +11,7 @@ fn temp_dir(name: &str) -> PathBuf {
}
fn app_with_script(dir: &Path) -> PathBuf {
- let app_root = dir.join("Vscrs.app/Contents/Resources/app");
+ let app_root = dir.join("VSRustium.app/Contents/Resources/app");
std::fs::create_dir_all(shell_script(&app_root).parent().unwrap()).unwrap();
std::fs::write(shell_script(&app_root), "#!/usr/bin/env bash\n").unwrap();
app_root
diff --git a/native/crates/app/src/workbench/standalone_color_picker/tests.rs b/native/crates/app/src/workbench/standalone_color_picker/tests.rs
index 1a90a72a631..3730f9b0c62 100644
--- a/native/crates/app/src/workbench/standalone_color_picker/tests.rs
+++ b/native/crates/app/src/workbench/standalone_color_picker/tests.rs
@@ -9,7 +9,7 @@ fn open<'a>(cx: &'a mut TestAppContext, name: &str) -> (gpui::Entity<Workbench>,
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-standalone-picker-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-standalone-picker-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("a.txt");
diff --git a/native/crates/app/src/workbench/task_service.rs b/native/crates/app/src/workbench/task_service.rs
index 2d627d5b868..69fbccea88d 100644
--- a/native/crates/app/src/workbench/task_service.rs
+++ b/native/crates/app/src/workbench/task_service.rs
@@ -373,7 +373,7 @@ impl Workbench {
}
- /// tasks.json of each folder through the configuration service (`.vscode/` and `.vscrs/`), then
+ /// tasks.json of each folder through the configuration service (`.vscode/` and `.vsrustium/`), then
/// `_computeUserTasks`: the profile's tasks.json in the first folder, or the user home in an empty window.
pub(super) fn configured_tasks(&mut self) -> Vec<Task> {
let folders: Vec<PathBuf> = self.workspace().map(|workspace| workspace.folders.iter().map(|folder| folder.path.clone()).collect()).unwrap_or_default();
diff --git a/native/crates/app/src/workbench/terminal_host.rs b/native/crates/app/src/workbench/terminal_host.rs
index d93e60efaa0..a833074e06e 100644
--- a/native/crates/app/src/workbench/terminal_host.rs
+++ b/native/crates/app/src/workbench/terminal_host.rs
@@ -270,7 +270,7 @@ impl Workbench {
let user_zdotdir = launch.env.get("ZDOTDIR").cloned().unwrap_or(home);
let user = std::env::var("USER").unwrap_or_default();
// terminalProcess.ts: `${tmpdir}/${username}-${applicationName}-zsh`.
- let zdotdir = std::env::temp_dir().join(format!("{user}-vscrs-zsh"));
+ let zdotdir = std::env::temp_dir().join(format!("{user}-vsrustium-zsh"));
let path_prefix = launch.env.get("VSCODE_PATH_PREFIX").cloned().unwrap_or_default();
let Some(injection) = injection::injection(&launch.executable, &launch.args, &launch.nonce, &scripts, &path_prefix, &zdotdir, &user_zdotdir) else { return };
for (source, dest) in &injection.files_to_copy {
diff --git a/native/crates/app/src/workbench/testing_coverage_view/tests.rs b/native/crates/app/src/workbench/testing_coverage_view/tests.rs
index 8d83da3a6c8..ca1e07bbb4c 100644
--- a/native/crates/app/src/workbench/testing_coverage_view/tests.rs
+++ b/native/crates/app/src/workbench/testing_coverage_view/tests.rs
@@ -183,7 +183,7 @@ fn the_gutter_marks_covered_and_missed_lines(cx: &mut TestAppContext) {
#[gpui::test]
fn the_minimap_marks_covered_and_missed_lines_until_the_setting_turns_off(cx: &mut TestAppContext) {
let (workbench, cx, _host) = workbench_with_tests("coverage-minimap", TESTS, cx);
- let user = std::env::temp_dir().join(format!("vscrs-coverage-minimap-user-{}", std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-coverage-minimap-user-{}", std::process::id()));
let (lines, off, colors) = workbench.update_in(cx, |workbench, window, cx| {
workbench.settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None)));
add_result(workbench);
@@ -268,7 +268,7 @@ fn open_inline_details(workbench: &mut Workbench, window: &mut gpui::Window, cx:
#[gpui::test]
fn the_coverage_toolbar_shows_the_files_coverage_and_toggles_inline(cx: &mut TestAppContext) {
let (workbench, cx, _host) = workbench_with_tests("coverage-toolbar", TESTS, cx);
- let user = std::env::temp_dir().join(format!("vscrs-coverage-toolbar-user-{}", std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-coverage-toolbar-user-{}", std::process::id()));
workbench.update_in(cx, |workbench, window, cx| {
workbench.settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None)));
open_inline_details(workbench, window, cx);
@@ -444,7 +444,7 @@ fn an_expanded_file_lists_its_declarations(cx: &mut TestAppContext) {
fn explorer_rows_show_their_coverage(cx: &mut TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-explorer-coverage-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-explorer-coverage-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("src")).unwrap();
std::fs::write(dir.join("src/a.js"), "").unwrap();
@@ -452,7 +452,7 @@ fn explorer_rows_show_their_coverage(cx: &mut TestAppContext) {
let dir = dir.canonicalize().unwrap();
let (sender, _host) = std::sync::mpsc::channel();
let folder = config::workspace::Workspace::folder(dir.clone());
- let user = std::env::temp_dir().join(format!("vscrs-explorer-coverage-user-{}", std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-explorer-coverage-user-{}", std::process::id()));
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None)));
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root, Some(folder), crate::languages::Languages::new(&[]), settings, crate::host_sync::HostSync::new(sender), cx));
let draw = |cx: &mut gpui::VisualTestContext| {
@@ -494,7 +494,7 @@ fn explorer_rows_show_their_coverage(cx: &mut TestAppContext) {
#[gpui::test]
fn a_file_with_coverage_in_another_group_gets_its_inline_ranges_and_toolbar(cx: &mut TestAppContext) {
let (workbench, cx, _host) = workbench_with_tests("coverage-other-group", TESTS, cx);
- let user = std::env::temp_dir().join(format!("vscrs-coverage-other-group-user-{}", std::process::id()));
+ let user = std::env::temp_dir().join(format!("vsrustium-coverage-other-group-user-{}", std::process::id()));
let path = workbench.update_in(cx, |workbench, window, cx| {
workbench.settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None)));
open_inline_details(workbench, window, cx);
diff --git a/native/crates/app/src/workbench/text_files/tests.rs b/native/crates/app/src/workbench/text_files/tests.rs
index 5a92c4c8fe3..0c096d358e3 100644
--- a/native/crates/app/src/workbench/text_files/tests.rs
+++ b/native/crates/app/src/workbench/text_files/tests.rs
@@ -18,7 +18,7 @@ fn workbench_in<'a>(name: &str, user_settings: &str, cx: &'a mut TestAppContext)
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-text-files-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-text-files-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
std::fs::write(dir.join("User/settings.json"), user_settings).unwrap();
@@ -143,7 +143,7 @@ fn compare_opens_the_save_conflict_editor(cx: &mut TestAppContext) {
assert_eq!(messages(cx), [help.clone()], "the help replaces the save error of the same model");
workbench.update_in(cx, |workbench, window, cx| {
let diff = workbench.editors.active_diff().expect("the conflict editor");
- assert_eq!(diff.label.as_deref(), Some("a.txt (in file) \u{2194} a.txt (in Vscrs) - Resolve save conflict"));
+ assert_eq!(diff.label.as_deref(), Some("a.txt (in file) \u{2194} a.txt (in VSRustium) - Resolve save conflict"));
assert_eq!((diff.original.scheme.as_str(), diff.modified.scheme.as_str()), ("conflictResolution", "file"));
let original = workbench.editors.model("conflictResolution", &file).unwrap();
assert_eq!(original.document().lines.join("\n"), "changed elsewhere");
diff --git a/native/crates/app/src/workbench/text_files/untitled_tests.rs b/native/crates/app/src/workbench/text_files/untitled_tests.rs
index 8dd5d2b75fc..a1fb43c6e32 100644
--- a/native/crates/app/src/workbench/text_files/untitled_tests.rs
+++ b/native/crates/app/src/workbench/text_files/untitled_tests.rs
@@ -28,7 +28,7 @@ fn untitled<'a>(name: &str, user_settings: &str, cx: &'a mut TestAppContext) ->
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
let languages = ["typescript-basics", "javascript"].map(|name| scan_extension(&app_root.join("extensions").join(name), true).unwrap());
- let dir = std::env::temp_dir().join(format!("vscrs-untitled-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-untitled-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
std::fs::write(dir.join("User/settings.json"), user_settings).unwrap();
diff --git a/native/crates/app/src/workbench/tree_view/tests.rs b/native/crates/app/src/workbench/tree_view/tests.rs
index ecbc65b896b..5757fc647e3 100644
--- a/native/crates/app/src/workbench/tree_view/tests.rs
+++ b/native/crates/app/src/workbench/tree_view/tests.rs
@@ -18,7 +18,7 @@ fn workbench_with<'a>(name: &str, cx: &'a mut TestAppContext) -> (gpui::Entity<W
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-tree-view-{}-{name}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-tree-view-{}-{name}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let manifest = json!({ "name": "trees", "publisher": "test", "version": "1.0.0", "engines": { "vscode": "*" },
diff --git a/native/crates/app/src/workbench/trusted_publishers.rs b/native/crates/app/src/workbench/trusted_publishers.rs
index 44927439a61..7b8b2d07c28 100644
--- a/native/crates/app/src/workbench/trusted_publishers.rs
+++ b/native/crates/app/src/workbench/trusted_publishers.rs
@@ -333,7 +333,7 @@ mod tests {
[
"The extension [Deutsch Language Pack](https://open-vsx.org/extension/MS-CEINTL/pack) is published by MS\\-CEINTL. This is the first extension you're installing from this publisher.",
"$(unverified)&nbsp;MS\\-CEINTL is [**not** verified](https://aka.ms/vscode-verify-publisher).",
- "Vscrs has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publisher.",
+ "VSRustium has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publisher.",
]
);
}
diff --git a/native/crates/app/src/workbench/unattended_restart.rs b/native/crates/app/src/workbench/unattended_restart.rs
index dfe98a69b86..0353bd44874 100644
--- a/native/crates/app/src/workbench/unattended_restart.rs
+++ b/native/crates/app/src/workbench/unattended_restart.rs
@@ -496,7 +496,7 @@ mod tests {
let theme = crate::theme::load_theme(&[themes], "Dark Modern").unwrap();
// One folder per test: parallel tests writing one settings.json race on its atomic temp file.
static WORKBENCHES: std::sync::atomic::AtomicUsize = std::sync::atomic::AtomicUsize::new(0);
- let dir = std::env::temp_dir().join(format!("vscrs-unattended-restart-{}-{}", std::process::id(), WORKBENCHES.fetch_add(1, std::sync::atomic::Ordering::Relaxed)));
+ let dir = std::env::temp_dir().join(format!("vsrustium-unattended-restart-{}-{}", std::process::id(), WORKBENCHES.fetch_add(1, std::sync::atomic::Ordering::Relaxed)));
std::fs::create_dir_all(dir.join("User")).unwrap();
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
let host = crate::host_sync::HostSync::new(std::sync::mpsc::channel().0);
@@ -531,13 +531,13 @@ mod tests {
let (workbench, cx) = workbench(cx);
let update = crate::update::Update { version: "bbbb".into(), product_version: "1.148.0".into(), timestamp: 2, url: "https://example.com/a.zip".into(), sha256hash: "ab".repeat(32) };
workbench.update_in(cx, |workbench, window, cx| {
- let dir = std::env::temp_dir().join(format!("vscrs-unattended-restart-host-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-unattended-restart-host-{}", std::process::id()));
let shared_storage = std::sync::Arc::new(std::sync::Mutex::new(storage::Storage::in_memory()));
- cx.set_global(crate::AppState { args: vec!["vscrs".into()], runtime: exthost::Runtime::Bun, user_data: dir.clone(), app_root: dir.clone(), builtins: Vec::new(), user_extensions_folder: dir.join("extensions"), shared_storage });
+ cx.set_global(crate::AppState { args: vec!["vsrustium".into()], runtime: exthost::Runtime::Bun, user_data: dir.clone(), app_root: dir.clone(), builtins: Vec::new(), user_extensions_folder: dir.join("extensions"), shared_storage });
workbench.restored_at = Some(Instant::now() - 2 * EVENTUALLY);
workbench.settings.lock().unwrap().update_value("update.restartWhenIdle", Some(&serde_json::json!(true)), config::service::Target::User, None, &[]).unwrap();
workbench.register_update_actions(window, cx);
- crate::update::service(cx).update(cx, |service, cx| service.set_state_for_tests(State::Ready { update, app: "/tmp/Vscrs.app".into() }, cx));
+ crate::update::service(cx).update(cx, |service, cx| service.set_state_for_tests(State::Ready { update, app: "/tmp/VSRustium.app".into() }, cx));
});
let host = cx.update(|_, cx| cx.global::<GlobalUnattendedRestart>().0.clone());
let keeps_awake = |cx: &mut gpui::VisualTestContext| host.read_with(cx, |host, _| host.keep_awake.is_some());
@@ -579,7 +579,7 @@ mod tests {
#[test]
fn a_restart_that_came_back_on_the_same_commit_failed_to_install() {
- let user_data = std::env::temp_dir().join(format!("vscrs-failed-update-{}", std::process::id()));
+ let user_data = std::env::temp_dir().join(format!("vsrustium-failed-update-{}", std::process::id()));
std::fs::create_dir_all(user_data.join("User/globalStorage")).unwrap();
let pending = |from: &str| FileStorage::open(&windows_state::storage_file(&user_data)).set_item(PENDING_RESTART_KEY, Some(serde_json::json!({ "fromCommit": from, "toVersion": "1.148.0" })));
pending("aaaa");
diff --git a/native/crates/app/src/workbench/update.rs b/native/crates/app/src/workbench/update.rs
index b6c1fb529a6..49bb9f81f9b 100644
--- a/native/crates/app/src/workbench/update.rs
+++ b/native/crates/app/src/workbench/update.rs
@@ -82,7 +82,7 @@ impl Workbench {
if self.update_title_bar_entry_visible() && self.setting("workbench.activityBar.location") == "top" {
return None;
}
- let name = crate::product::get("nameShort").as_str().unwrap_or("Vscrs");
+ let name = crate::product::get("nameShort").as_str().unwrap_or("VSRustium");
match &self.update_state {
State::AvailableForDownload { .. } | State::Downloaded { .. } | State::Ready { .. } => Some((Badge::Number(1), format!("New {name} update available."))),
State::CheckingForUpdates { .. } => Some((Badge::Progress, format!("Checking for {name} updates..."))),
@@ -181,7 +181,7 @@ mod tests {
let settings = Arc::new(Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
let host = crate::host_sync::HostSync::new(std::sync::mpsc::channel().0);
let shared_storage = Arc::new(Mutex::new(storage::Storage::in_memory()));
- cx.update(|cx| cx.set_global(crate::AppState { args: vec!["vscrs".into()], runtime: exthost::Runtime::Bun, user_data: dir.clone(), app_root: app_root.clone(), builtins: Vec::new(), user_extensions_folder: dir.join("extensions"), shared_storage }));
+ cx.update(|cx| cx.set_global(crate::AppState { args: vec!["vsrustium".into()], runtime: exthost::Runtime::Bun, user_data: dir.clone(), app_root: app_root.clone(), builtins: Vec::new(), user_extensions_folder: dir.join("extensions"), shared_storage }));
let (workbench, cx) = cx.add_window_view(|_, cx| Workbench::new(theme, app_root.clone(), None, crate::languages::Languages::new(&[]), settings, host, cx));
cx.run_until_parked();
(workbench, cx)
@@ -201,13 +201,13 @@ mod tests {
let (workbench, cx) = workbench(cx);
let update = Update { version: "bbbb".into(), product_version: "1.148.0".into(), timestamp: 2, url: "https://example.com/a.zip".into(), sha256hash: "ab".repeat(32) };
workbench.update_in(cx, |workbench, window, cx| {
- let name = crate::product::get("nameShort").as_str().unwrap_or("Vscrs");
+ let name = crate::product::get("nameShort").as_str().unwrap_or("VSRustium");
let steps = [
(State::Idle { error: None, not_available: false }, "Check for Updates...", None),
(State::CheckingForUpdates { explicit: true }, "Checking for Updates... (disabled)", Some((Badge::Progress, format!("Checking for {name} updates...")))),
(State::AvailableForDownload { update: update.clone() }, "Download Update (1)", Some((Badge::Number(1), format!("New {name} update available.")))),
(State::Downloading { update: update.clone(), explicit: false, downloaded_bytes: 1, total_bytes: Some(2), started_at: std::time::Instant::now() }, "Downloading Update... (disabled)", Some((Badge::Progress, format!("Downloading {name} update...")))),
- (State::Ready { update: update.clone(), app: "/tmp/Vscrs.app".into() }, "Restart to Update (1)", Some((Badge::Number(1), format!("New {name} update available.")))),
+ (State::Ready { update: update.clone(), app: "/tmp/VSRustium.app".into() }, "Restart to Update (1)", Some((Badge::Number(1), format!("New {name} update available.")))),
];
for (state, title, badge) in steps {
workbench.update_state_changed(&state, window, cx);
@@ -224,7 +224,7 @@ mod tests {
#[gpui::test]
fn a_stable_build_shows_the_release_notes_of_a_ready_minor_update(cx: &mut TestAppContext) {
let update = |product_version: &str| Update { version: "bbbb".into(), product_version: product_version.into(), timestamp: 2, url: "https://example.com/a.zip".into(), sha256hash: "ab".repeat(32) };
- let ready = |product_version: &str| State::Ready { update: update(product_version), app: "/tmp/Vscrs.app".into() };
+ let ready = |product_version: &str| State::Ready { update: update(product_version), app: "/tmp/VSRustium.app".into() };
// The checkout's product.json version, 1.148.x.
crate::product::load(Path::new(env!("VSCODE_SRC")), false);
for quality in [Some("stable"), Some("insider"), None] {
diff --git a/native/crates/app/src/workbench/update_title_bar/tests.rs b/native/crates/app/src/workbench/update_title_bar/tests.rs
index ccd1cd20be3..eb4185c6315 100644
--- a/native/crates/app/src/workbench/update_title_bar/tests.rs
+++ b/native/crates/app/src/workbench/update_title_bar/tests.rs
@@ -25,7 +25,7 @@ fn the_tooltip_follows_the_state_and_update_mode() {
assert_eq!(tooltip_content(&up_to_date, "none").message, Some(("Automatic updates are disabled.".into(), Some("warning"))));
let error = tooltip_content(&State::Idle { error: Some("boom".into()), not_available: false }, "default");
assert_eq!((error.title.as_str(), error.message), ("Update Error", Some(("boom".into(), Some("error")))));
- let ready = State::Ready { update: update(), app: "/tmp/Vscrs.app".into() };
+ let ready = State::Ready { update: update(), app: "/tmp/VSRustium.app".into() };
assert_eq!(tooltip_content(&ready, "manual").title, "Update Installed");
assert_eq!(tooltip_content(&ready, "default").title, "Restart to Update");
}
diff --git a/native/crates/app/src/workbench/url_handler.rs b/native/crates/app/src/workbench/url_handler.rs
index a2d2333cad4..f3b9ad5e5aa 100644
--- a/native/crates/app/src/workbench/url_handler.rs
+++ b/native/crates/app/src/workbench/url_handler.rs
@@ -304,7 +304,7 @@ mod tests {
fn a_url_the_system_hands_the_app_opens_in_the_last_active_window(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-open-url-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-open-url-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("notes.txt");
@@ -324,7 +324,7 @@ mod tests {
fn a_workspace_file_from_finder_opens_a_window_of_its_folders(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-open-file-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-open-file-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
for folder in ["User", "one", "two", "three"] {
std::fs::create_dir_all(dir.join(folder)).unwrap();
@@ -349,7 +349,7 @@ mod tests {
fn a_file_from_finder_opens_in_a_new_window_with_open_files_in_new_window_default(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-finder-file-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-finder-file-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("notes.txt");
@@ -399,7 +399,7 @@ mod tests {
fn a_file_url_for_a_new_window_opens_the_file_there(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-url-new-window-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-url-new-window-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("notes.txt");
@@ -422,7 +422,7 @@ mod tests {
fn a_webview_app_link_goes_to_the_url_service(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-webview-url-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-webview-url-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let file = dir.join("notes.txt");
@@ -442,7 +442,7 @@ mod tests {
fn a_webview_link_reaches_the_handler_the_extension_registered(cx: &mut gpui::TestAppContext) {
let app_root = std::path::Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = crate::theme::load_theme(&[exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-webview-handler-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-webview-handler-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
diff --git a/native/crates/app/src/workbench/variable_menu.rs b/native/crates/app/src/workbench/variable_menu.rs
index 042237a98f4..bf39476764e 100644
--- a/native/crates/app/src/workbench/variable_menu.rs
+++ b/native/crates/app/src/workbench/variable_menu.rs
@@ -621,7 +621,7 @@ pub(super) mod tests {
workbench.debug.scopes = vec![Variable { name: "Local".into(), variables_reference: 4, ..Variable::default() }];
workbench.debug.children.insert(("s".into(), 4), vec![variable("x", "1", Some("obj.x"))]);
workbench.debug_view.expand_first_scope = true;
- workbench.load_keybindings(crate::keybindings::default_keybindings(&[]), std::env::temp_dir().join("vscrs-variable-keys/keybindings.json"));
+ workbench.load_keybindings(crate::keybindings::default_keybindings(&[]), std::env::temp_dir().join("vsrustium-variable-keys/keybindings.json"));
workbench.debug.model.add_watch_expression("a + b");
workbench.show_debug_view(cx);
workbench.debug.model.watch_expressions[0].id.clone()
diff --git a/native/crates/app/src/workbench/view_containers/tests.rs b/native/crates/app/src/workbench/view_containers/tests.rs
index 9a61ef34e70..f5655c1402a 100644
--- a/native/crates/app/src/workbench/view_containers/tests.rs
+++ b/native/crates/app/src/workbench/view_containers/tests.rs
@@ -18,7 +18,7 @@ fn focus_view_commands_open_the_explorer_pane_and_focus_it(cx: &mut TestAppConte
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-focus-view-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-focus-view-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let workspace = config::workspace::Workspace::folder(dir.clone());
@@ -64,7 +64,7 @@ fn the_top_activity_bar_shows_contributed_containers(cx: &mut TestAppContext) {
let fixtures = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../../port/fixtures/extensions/activity-bar-containers");
let containers = scan_extension(&fixtures.join("vscode-containers"), false).unwrap();
let todo_tree = scan_extension(&fixtures.join("todo-tree"), false).unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-top-activity-bar-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-top-activity-bar-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let workspace = config::workspace::Workspace::folder(dir.clone());
@@ -114,7 +114,7 @@ fn a_contributed_container_draws_its_views_as_panes(cx: &mut TestAppContext) {
let theme = load_theme(&[themes], "Dark Modern").unwrap();
let fixtures = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../../port/fixtures/extensions/activity-bar-containers");
let containers = scan_extension(&fixtures.join("vscode-containers"), false).unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-contributed-panes-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-contributed-panes-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let workspace = config::workspace::Workspace::folder(dir.clone());
@@ -226,7 +226,7 @@ fn testing_draws_contributed_views_as_panes_after_the_test_explorer(cx: &mut Tes
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-testing-panes-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-testing-panes-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
let extension_dir = dir.join("extension");
std::fs::create_dir_all(&extension_dir).unwrap();
diff --git a/native/crates/app/src/workbench/view_locations/tests.rs b/native/crates/app/src/workbench/view_locations/tests.rs
index 13a10f2bc11..3ae4d66b591 100644
--- a/native/crates/app/src/workbench/view_locations/tests.rs
+++ b/native/crates/app/src/workbench/view_locations/tests.rs
@@ -492,7 +492,7 @@ fn an_activity_item_drags_as_its_icon(cx: &mut TestAppContext) {
fn the_compact_activity_bar_tabs_have_the_item_menu_and_drag(cx: &mut TestAppContext) {
let profile = Arc::new(Mutex::new(Storage::in_memory()));
let (workbench, cx) = open(profile, cx);
- let dir = std::env::temp_dir().join(format!("vscrs-{}-{}", crate::test_name(), std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-{}-{}", crate::test_name(), std::process::id()));
let user = dir.join("User");
workbench.update(cx, |workbench, cx| {
workbench.settings = Arc::new(Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user, None)));
@@ -675,7 +675,7 @@ fn the_active_side_bar_container_is_restored_while_it_stays_in_the_side_bar(cx:
#[gpui::test]
fn the_secondary_side_bar_shows_icons_over_a_title_with_the_activity_bar_on_top(cx: &mut TestAppContext) {
let (workbench, cx) = open(Arc::new(Mutex::new(Storage::in_memory())), cx);
- let dir = std::env::temp_dir().join(format!("vscrs-{}-{}", crate::test_name(), std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-{}-{}", crate::test_name(), std::process::id()));
workbench.update_in(cx, |workbench, window, cx| {
workbench.settings = Arc::new(Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
workbench.update_setting("workbench.activityBar.location", json!("top"));
diff --git a/native/crates/app/src/workbench/walkthrough_part/tests.rs b/native/crates/app/src/workbench/walkthrough_part/tests.rs
index 1656e958fae..ede74f3833d 100644
--- a/native/crates/app/src/workbench/walkthrough_part/tests.rs
+++ b/native/crates/app/src/workbench/walkthrough_part/tests.rs
@@ -15,7 +15,7 @@ fn workbench(cx: &mut TestAppContext) -> (gpui::Entity<Workbench>, &mut VisualTe
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
static NEXT: std::sync::atomic::AtomicUsize = std::sync::atomic::AtomicUsize::new(0);
let instance = NEXT.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
- let dir = std::env::temp_dir().join(format!("vscrs-playground-{}-{instance}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-playground-{}-{instance}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(dir.join("User")).unwrap();
let settings = config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None);
diff --git a/native/crates/app/src/workbench/walkthrough_part/vs_code_editor_walkthrough.md b/native/crates/app/src/workbench/walkthrough_part/vs_code_editor_walkthrough.md
index cfb17f8c21a..c00ab9445e1 100644
--- a/native/crates/app/src/workbench/walkthrough_part/vs_code_editor_walkthrough.md
+++ b/native/crates/app/src/workbench/walkthrough_part/vs_code_editor_walkthrough.md
@@ -1,6 +1,6 @@
## Interactive Editor Playground
-The core editor in Vscrs is packed with features. This page highlights a number of them and lets you interactively try them out through the use of a number of embedded editors. For full details on the editor features for VS Code and more head over to our [documentation](https://code.visualstudio.com/docs).
+The core editor in VSRustium is packed with features. This page highlights a number of them and lets you interactively try them out through the use of a number of embedded editors. For full details on the editor features for VS Code and more head over to our [documentation](https://code.visualstudio.com/docs).
* [Multi-cursor Editing](#multi-cursor-editing) - block selection, select all occurrences, add additional cursors and more.
* [IntelliSense](#intellisense) - get code assistance and parameter suggestions for your code and external modules.
@@ -33,7 +33,7 @@ That is the tip of the iceberg for multi-cursor editing. Have a look at the sele
### IntelliSense
-Vscrs comes with the powerful IntelliSense for JavaScript and TypeScript pre-installed. In the below example, position the text cursor right after the dot and press kb(editor.action.triggerSuggest) to invoke IntelliSense. Notice how the suggestions come from the Canvas API.
+VSRustium comes with the powerful IntelliSense for JavaScript and TypeScript pre-installed. In the below example, position the text cursor right after the dot and press kb(editor.action.triggerSuggest) to invoke IntelliSense. Notice how the suggestions come from the Canvas API.
```js
const canvas = document.querySelector('canvas');
@@ -84,7 +84,7 @@ function Book(title, author) {
}
```
-> **JSDoc Tip:** Vscrs's IntelliSense uses JSDoc comments to provide richer suggestions. The types and documentation from JSDoc comments show up when you hover over a reference to `Book` or in IntelliSense when you create a new instance of `Book`.
+> **JSDoc Tip:** VSRustium's IntelliSense uses JSDoc comments to provide richer suggestions. The types and documentation from JSDoc comments show up when you hover over a reference to `Book` or in IntelliSense when you create a new instance of `Book`.
### Formatting
@@ -170,7 +170,7 @@ easy = 42;
## Thanks!
-Well if you have got this far then you will have touched on some of the editing features in Vscrs. But don't stop now :) We have lots of additional [documentation](https://code.visualstudio.com/docs), [introductory videos](https://code.visualstudio.com/docs/getstarted/introvideos) and [tips and tricks](https://go.microsoft.com/fwlink/?linkid=852118) for the product that will help you learn how to use it. And while you are here, here are a few additional things you can try:
+Well if you have got this far then you will have touched on some of the editing features in VSRustium. But don't stop now :) We have lots of additional [documentation](https://code.visualstudio.com/docs), [introductory videos](https://code.visualstudio.com/docs/getstarted/introvideos) and [tips and tricks](https://go.microsoft.com/fwlink/?linkid=852118) for the product that will help you learn how to use it. And while you are here, here are a few additional things you can try:
- Open the Integrated Terminal by pressing kb(workbench.action.terminal.toggleTerminal), then see what's possible by [reviewing the terminal documentation](https://code.visualstudio.com/docs/editor/integrated-terminal)
- Work with version control by pressing kb(workbench.view.scm). Understand how to stage, commit, change branches, and view diffs and more by reviewing the [version control documentation](https://code.visualstudio.com/docs/editor/versioncontrol)
- Browse thousands of extensions in our integrated gallery by pressing kb(workbench.view.extensions). The [documentation](https://code.visualstudio.com/docs/editor/extension-gallery) will show you how to see the most popular extensions, disable installed ones and more.
diff --git a/native/crates/app/src/workbench/webview_views/tests.rs b/native/crates/app/src/workbench/webview_views/tests.rs
index be4c2487cda..b316bc19a0f 100644
--- a/native/crates/app/src/workbench/webview_views/tests.rs
+++ b/native/crates/app/src/workbench/webview_views/tests.rs
@@ -20,7 +20,7 @@ fn a_webview_view_shows_in_its_own_container_while_its_when_holds(cx: &mut TestA
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let themes = exthost::scan::scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
let theme = load_theme(&[themes], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-webview-view-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-webview-view-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let workspace = config::workspace::Workspace::folder(dir.clone());
diff --git a/native/crates/app/src/workbench/workspace_editing/tests.rs b/native/crates/app/src/workbench/workspace_editing/tests.rs
index 62e22d72928..143229c34ee 100644
--- a/native/crates/app/src/workbench/workspace_editing/tests.rs
+++ b/native/crates/app/src/workbench/workspace_editing/tests.rs
@@ -75,7 +75,7 @@ fn folders_added_and_removed_in_a_workspace_reach_its_file_the_explorer_settings
fn adding_a_folder_enters_an_untitled_workspace_in_the_same_window(cx: &mut TestAppContext) {
let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
let theme = load_theme(&[scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap()], "Dark Modern").unwrap();
- let dir = std::env::temp_dir().join(format!("vscrs-enter-workspace-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-enter-workspace-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
for folder in ["user-data/User", "a", "b", "extensions"] {
std::fs::create_dir_all(dir.join(folder)).unwrap();
diff --git a/native/crates/app/src/workbench/workspace_recommendations.rs b/native/crates/app/src/workbench/workspace_recommendations.rs
index c274f812013..cbcfeb78abc 100644
--- a/native/crates/app/src/workbench/workspace_recommendations.rs
+++ b/native/crates/app/src/workbench/workspace_recommendations.rs
@@ -274,7 +274,7 @@ impl Workbench {
}
}
-/// The folder's extensions.json whose `recommendations` count (`.vscrs/` wins per key), else where a new one goes.
+/// The folder's extensions.json whose `recommendations` count (`.vsrustium/` wins per key), else where a new one goes.
fn folder_extensions_file(folder: &Path) -> PathBuf {
let has_recommendations = |file: &PathBuf| recommendations::read_json(file).is_some_and(|value| value.get("recommendations").is_some());
let mut files = config::service::FOLDER_CONFIG_DIRS.iter().rev().map(|dir| folder.join(dir).join("extensions.json"));
diff --git a/native/crates/config/port-settings.json b/native/crates/config/port-settings.json
index 73e02c0b600..0b96da0be36 100644
--- a/native/crates/config/port-settings.json
+++ b/native/crates/config/port-settings.json
@@ -2,10 +2,10 @@
"window.appIcon": {
"type": "string",
"enum": ["default", "bars", "barsCream"],
- "enumDescriptions": ["The Vscrs 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."],
+ "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": "Vscrs: the look of the Dock icon. It follows the system's light or dark appearance; Finder and Launchpad keep the default icon.",
+ "description": "VSRustium: the look of the Dock icon. It follows the system's light or dark appearance; Finder and Launchpad keep the default icon.",
"section": { "id": "window", "title": "Window", "order": 8 },
"restricted": false
}
diff --git a/native/crates/config/src/registry.rs b/native/crates/config/src/registry.rs
index 1fecce9196f..de9f407a5ad 100644
--- a/native/crates/config/src/registry.rs
+++ b/native/crates/config/src/registry.rs
@@ -106,7 +106,7 @@ const CORE_SETTINGS: &str = include_str!("../core-settings.json");
/// The core settings a `stable` build registers differently (`product.quality` gates their default or `included`),
/// dumped with port/tools/dump-settings; null for one it does not register.
const STABLE_SETTINGS: &str = include_str!("../core-settings-stable.json");
-/// Vscrs's own settings, in the same shape.
+/// VSRustium's own settings, in the same shape.
const PORT_SETTINGS: &str = include_str!("../port-settings.json");
static STABLE_QUALITY: AtomicBool = AtomicBool::new(false);
@@ -158,7 +158,7 @@ impl Registry {
"enum": ["latest", "pre-release"],
"default": channel,
"scope": 1,
- "description": "Configure which releases you receive updates from. The updates are fetched from the GitHub releases of Vscrs.",
+ "description": "Configure which releases you receive updates from. The updates are fetched from the GitHub releases of VSRustium.",
"enumDescriptions": ["Receive only releases that are not marked as pre-release.", "Receive pre-releases too, and any newer release."],
"tags": ["usesOnlineServices"],
"section": { "id": "update", "title": "Update", "order": 15 },
diff --git a/native/crates/config/src/service.rs b/native/crates/config/src/service.rs
index 52a59002de0..955a9e95aa5 100644
--- a/native/crates/config/src/service.rs
+++ b/native/crates/config/src/service.rs
@@ -53,13 +53,13 @@ enum Editable {
WorkspaceFolder,
}
-/// Port decision, not upstream: a folder's configuration is read from each, the later winning per key.
-/// `.vsrustium` is the port's folder from before its rename to Vscrs.
-pub const FOLDER_CONFIG_DIRS: [&str; 3] = [".vscode", ".vsrustium", ".vscrs"];
+/// Port decision, not upstream: a folder's configuration is read from both, `.vsrustium` winning per key.
+pub const FOLDER_CONFIG_DIRS: [&str; 2] = [".vscode", ".vsrustium"];
-/// Where UI writes a folder's configuration: the last of FOLDER_CONFIG_DIRS that exists, else `.vscode`.
+/// Where UI writes a folder's configuration: `.vsrustium` when that folder exists, else `.vscode`.
pub fn folder_config_dir(folder: &Path) -> PathBuf {
- FOLDER_CONFIG_DIRS.iter().rev().map(|dir| folder.join(dir)).find(|dir| dir.is_dir()).unwrap_or_else(|| folder.join(".vscode"))
+ let preferred = folder.join(".vsrustium");
+ if preferred.is_dir() { preferred } else { folder.join(".vscode") }
}
/// `TASKS_DEFAULT`: what configurationEditing.ts writes into a new tasks.json before editing it.
@@ -979,39 +979,23 @@ mod tests {
}
#[test]
- fn vscrs_wins_over_vscode_and_takes_writes_when_present() {
- let mut fixture = Fixture::new("vscrs", true);
+ fn vsrustium_wins_over_vscode_and_takes_writes_when_present() {
+ let mut fixture = Fixture::new("vsrustium", true);
let (test, two) = (Some("configurationEditing.service.testSetting"), Some("configurationEditing.service.testSettingTwo"));
write_file(&fixture.folder("settings.json"), r#"{ "configurationEditing.service.testSetting": "vscode", "configurationEditing.service.testSettingTwo": "vscode" }"#);
fixture.settings.reload_changed_files().unwrap();
fixture.write("configurationEditing.service.testSetting", Some(json!("written")), Target::Workspace).unwrap();
- assert_eq!(parsed(&fixture.folder("settings.json"))["configurationEditing.service.testSetting"], "written", "without .vscrs writes go to .vscode");
-
- let vscrs = fixture.root.join("folder/.vscrs/settings.json");
- write_file(&vscrs, r#"{ "configurationEditing.service.testSetting": "vscrs" }"#);
- fixture.settings.reload_changed_files().expect("the .vscrs file is watched");
- assert_eq!(fixture.settings.get_value(test, &Overrides::default()), Some(json!("vscrs")));
- assert_eq!(fixture.settings.get_value(two, &Overrides::default()), Some(json!("vscode")));
-
- fixture.write("configurationEditing.service.testSettingTwo", Some(json!("written")), Target::Workspace).unwrap();
- assert_eq!(parsed(&vscrs)["configurationEditing.service.testSettingTwo"], "written");
- assert_eq!(fixture.settings.get_value(two, &Overrides::default()), Some(json!("written")));
- }
+ assert_eq!(parsed(&fixture.folder("settings.json"))["configurationEditing.service.testSetting"], "written", "without .vsrustium writes go to .vscode");
- #[test]
- fn vsrustium_is_read_and_written_until_vscrs_exists() {
- let mut fixture = Fixture::new("vsrustium", true);
- let test = Some("configurationEditing.service.testSetting");
let vsrustium = fixture.root.join("folder/.vsrustium/settings.json");
write_file(&vsrustium, r#"{ "configurationEditing.service.testSetting": "vsrustium" }"#);
fixture.settings.reload_changed_files().expect("the .vsrustium file is watched");
assert_eq!(fixture.settings.get_value(test, &Overrides::default()), Some(json!("vsrustium")));
+ assert_eq!(fixture.settings.get_value(two, &Overrides::default()), Some(json!("vscode")));
+
fixture.write("configurationEditing.service.testSettingTwo", Some(json!("written")), Target::Workspace).unwrap();
assert_eq!(parsed(&vsrustium)["configurationEditing.service.testSettingTwo"], "written");
-
- write_file(&fixture.root.join("folder/.vscrs/settings.json"), r#"{ "configurationEditing.service.testSetting": "vscrs" }"#);
- fixture.settings.reload_changed_files().unwrap();
- assert_eq!(fixture.settings.get_value(test, &Overrides::default()), Some(json!("vscrs")));
+ assert_eq!(fixture.settings.get_value(two, &Overrides::default()), Some(json!("written")));
}
#[test]
diff --git a/native/crates/exthost/src/extension_management/tests.rs b/native/crates/exthost/src/extension_management/tests.rs
index 7f0fc2f8f8d..9a7def6ae65 100644
--- a/native/crates/exthost/src/extension_management/tests.rs
+++ b/native/crates/exthost/src/extension_management/tests.rs
@@ -82,7 +82,7 @@ fn keeps_double_spaces_in_manifest_strings() {
fn refuses_an_incompatible_engine() {
let fixture = Fixture::new("engine");
let Err(error) = fixture.extensions.install_vsix(&fixture.vsix("1.0.0", "^1.200.0")) else { panic!("installed") };
- assert_eq!(error.to_string(), "Unable to install extension 'port.sample' as it is not compatible with Vscrs '1.147.0'.");
+ assert_eq!(error.to_string(), "Unable to install extension 'port.sample' as it is not compatible with VSRustium '1.147.0'.");
assert!(!fixture.extensions.folder.join("port.sample-1.0.0").exists());
}
diff --git a/native/crates/exthost/src/extension_validator/tests.rs b/native/crates/exthost/src/extension_validator/tests.rs
index 880797d9d92..264948dc39b 100644
--- a/native/crates/exthost/src/extension_validator/tests.rs
+++ b/native/crates/exthost/src/extension_validator/tests.rs
@@ -322,5 +322,5 @@ fn rejects_an_unspecific_engine() {
assert_eq!(error, "Version specified in `engines.vscode` (x.x.x) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.");
let manifest = serde_json::json!({ "name": "a", "publisher": "p", "version": "1.0.0", "engines": { "vscode": "^1.200.0" }, "main": "./out" });
let error = validate_extension_manifest("1.147.0", None, &manifest, false).unwrap_err();
- assert_eq!(error, "Extension is not compatible with Vscrs 1.147.0. Extension requires: ^1.200.0.");
+ assert_eq!(error, "Extension is not compatible with VSRustium 1.147.0. Extension requires: ^1.200.0.");
}
diff --git a/native/crates/exthost/src/gallery.rs b/native/crates/exthost/src/gallery.rs
index ac41c8faa52..3f81a7ab881 100644
--- a/native/crates/exthost/src/gallery.rs
+++ b/native/crates/exthost/src/gallery.rs
@@ -13,7 +13,7 @@ use crate::scan::ScannedExtension;
use crate::sign::{VerificationCode, verify};
use crate::zip::Archive;
-/// product.json `extensionsGallery`: Code - OSS ships none, Vscrs uses Open VSX as VSCodium does.
+/// product.json `extensionsGallery`: Code - OSS ships none, VSRustium uses Open VSX as VSCodium does.
pub const SERVICE_URL: &str = "https://open-vsx.org/vscode/gallery";
pub const ITEM_URL: &str = "https://open-vsx.org/vscode/item";
diff --git a/native/crates/exthost/src/language_packs/tests.rs b/native/crates/exthost/src/language_packs/tests.rs
index dbc9b4dbd6f..fb9de083c95 100644
--- a/native/crates/exthost/src/language_packs/tests.rs
+++ b/native/crates/exthost/src/language_packs/tests.rs
@@ -1,7 +1,7 @@
use super::*;
fn temp_dir(name: &str) -> PathBuf {
- let dir = std::env::temp_dir().join(format!("vscrs-language-packs-{name}-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-language-packs-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
dir
diff --git a/native/crates/exthost/src/lib.rs b/native/crates/exthost/src/lib.rs
index 33a86ddf9bd..ad8b8ddae22 100644
--- a/native/crates/exthost/src/lib.rs
+++ b/native/crates/exthost/src/lib.rs
@@ -74,7 +74,7 @@ pub enum Runtime {
}
impl Runtime {
- /// The runtime next to the running executable (Vscrs.app ships bun in Contents/MacOS), else the one on PATH.
+ /// The runtime next to the running executable (VSRustium.app ships bun in Contents/MacOS), else the one on PATH.
pub fn executable(self) -> PathBuf {
let name = match self {
Runtime::Bun => "bun",
diff --git a/native/crates/exthost/src/main_thread_secret_state.rs b/native/crates/exthost/src/main_thread_secret_state.rs
index 95646237d7e..e59223c5eba 100644
--- a/native/crates/exthost/src/main_thread_secret_state.rs
+++ b/native/crates/exthost/src/main_thread_secret_state.rs
@@ -287,7 +287,7 @@ mod tests {
#[test]
#[cfg(target_os = "windows")]
fn secrets_in_credential_manager() {
- let service = format!("Vscrs Test Secret Storage {}", std::process::id());
+ let service = format!("VSRustium Test Secret Storage {}", std::process::id());
let mut state = MainThreadSecretState { secrets: Secrets::CredentialManager { service } };
check_flow(&mut state);
call(&mut state, "$deletePassword", &["pub.ext", "other"]);
diff --git a/native/crates/exthost/src/request.rs b/native/crates/exthost/src/request.rs
index 84cb5e35ec3..7e6eaa626d4 100644
--- a/native/crates/exthost/src/request.rs
+++ b/native/crates/exthost/src/request.rs
@@ -257,7 +257,7 @@ mod tests {
/// certificate the system does not trust fails the request whatever the setting.
#[test]
fn a_self_signed_server_certificate_fails_the_request() {
- let dir = std::env::temp_dir().join(format!("vscrs-request-tls-{}", std::process::id()));
+ let dir = std::env::temp_dir().join(format!("vsrustium-request-tls-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let openssl = |args: &[&str]| {
let mut command = std::process::Command::new(if cfg!(windows) { "openssl" } else { "/usr/bin/openssl" });
diff --git a/native/crates/exthost/src/request/macos.rs b/native/crates/exthost/src/request/macos.rs
index e9d3e4dcbeb..4d3c4f7c36e 100644
--- a/native/crates/exthost/src/request/macos.rs
+++ b/native/crates/exthost/src/request/macos.rs
@@ -157,7 +157,7 @@ fn run_pac(execute: impl FnOnce(PacCallback, *mut StreamClientContext) -> *mut c
if source.is_null() {
return None;
}
- let mode = NSString::from_str("com.vscrs.ProxyResolver");
+ let mode = NSString::from_str("com.vsrustium.ProxyResolver");
let deadline = Instant::now() + Duration::from_secs(30);
// SAFETY: the source is a retained CFRunLoopSource, released once its run loop no longer runs it.
unsafe {
diff --git a/native/crates/exthost/src/request/windows.rs b/native/crates/exthost/src/request/windows.rs
index 5e27fd53544..0da18a402a9 100644
--- a/native/crates/exthost/src/request/windows.rs
+++ b/native/crates/exthost/src/request/windows.rs
@@ -48,7 +48,7 @@ pub(super) fn resolve_proxy_with(url: &str, proxy: Option<&SessionProxy>) -> Opt
/// WPAD and the PAC script through `WinHttpGetProxyForUrl`, on one session so WinHTTP keeps the script cached.
fn automatic_proxy(url: &str, auto_detect: bool, pac_url: Option<&str>) -> Option<String> {
static SESSION: OnceLock<usize> = OnceLock::new();
- let agent = wide("Vscrs");
+ let agent = wide("VSRustium");
// SAFETY: a session without a proxy of its own; the handle lives for the process.
let session = *SESSION.get_or_init(|| unsafe { WinHttpOpen(agent.as_ptr(), WINHTTP_ACCESS_TYPE_NO_PROXY, std::ptr::null(), std::ptr::null(), 0) } as usize);
if session == 0 {
diff --git a/native/crates/exthost/src/session.rs b/native/crates/exthost/src/session.rs
index e8389c7d5db..1db21c6d3e3 100644
--- a/native/crates/exthost/src/session.rs
+++ b/native/crates/exthost/src/session.rs
@@ -779,7 +779,7 @@ impl Session {
}
/// product.json `urlProtocol`.
-pub const URL_PROTOCOL: &str = "vscrs";
+pub const URL_PROTOCOL: &str = "vsrustium";
/// urlService.ts `NativeURLService.create`: the uri with the product's scheme.
pub fn app_uri(uri: &Value) -> Value {
@@ -870,7 +870,7 @@ mod tests {
#[test]
fn app_uris_take_the_product_scheme() {
let uri = json!({ "scheme": "vscode", "authority": "pub.ext", "path": "callback", "query": "a=1" });
- assert_eq!(app_uri(&uri), json!({ "$mid": 1, "scheme": "vscrs", "authority": "pub.ext", "path": "/callback", "query": "a=1", "fragment": "" }));
+ assert_eq!(app_uri(&uri), json!({ "$mid": 1, "scheme": "vsrustium", "authority": "pub.ext", "path": "/callback", "query": "a=1", "fragment": "" }));
}
#[test]
@@ -880,7 +880,7 @@ mod tests {
let workspace = Workspace::from_file(file.clone());
let paths = SessionPaths { app_root: Path::new("/app"), user_data: Path::new("/user"), workspace: Some(&workspace) };
let init = init_data(&paths, &[], "1.147.0");
- assert_eq!(init["environment"]["appName"], "Vscrs");
+ assert_eq!(init["environment"]["appName"], "VSRustium");
let name = format!("session-test-{} (Workspace)", std::process::id());
assert_eq!(init["workspace"]["name"], name);
assert_eq!(init["workspace"]["configuration"], file_uri(&file));
diff --git a/native/crates/files/src/encoding.rs b/native/crates/files/src/encoding.rs
index 69c5ac722c5..5cb33d949a6 100644
--- a/native/crates/files/src/encoding.rs
+++ b/native/crates/files/src/encoding.rs
@@ -368,7 +368,7 @@ pub fn configured(settings: &Settings, resource: &Overrides) -> String {
value.as_ref().and_then(|value| value.as_str()).unwrap_or_default().to_string()
}
-/// `getDefaultEncodingOverrides`: user settings, workspace files and each folder's `.vscode` (and `.vscrs`) are always UTF-8.
+/// `getDefaultEncodingOverrides`: user settings, workspace files and each folder's `.vscode` (and `.vsrustium`) are always UTF-8.
fn is_utf8_override(settings: &Settings, path: Option<&Path>) -> bool {
let Some(path) = path else { return false };
let user_home = settings.user_home();
@@ -494,7 +494,7 @@ mod tests {
#[test]
fn files_encoding_of_the_resource_language_wins() {
- let user_home = std::env::temp_dir().join(format!("vscrs-encoding-language-{}", std::process::id()));
+ let user_home = std::env::temp_dir().join(format!("vsrustium-encoding-language-{}", std::process::id()));
std::fs::create_dir_all(&user_home).unwrap();
std::fs::write(user_home.join("settings.json"), r#"{ "files.encoding": "windows1252", "[markdown]": { "files.encoding": "iso88591" } }"#).unwrap();
let settings = Settings::load(config::registry::Registry::with_extensions(&[]), user_home.clone(), None);
diff --git a/native/vendor/gpui-fast/crates/gpui/src/app.rs b/native/vendor/gpui-fast/crates/gpui/src/app.rs
index 9eb697644fb..6bceceeb17c 100644
--- a/native/vendor/gpui-fast/crates/gpui/src/app.rs
+++ b/native/vendor/gpui-fast/crates/gpui/src/app.rs
@@ -2354,13 +2354,13 @@ impl App {
})
.unwrap();
}
- // Vscrs: a frame that notified views while drawing asks for the next one (`Window::draw`).
+ // VSRustium: a frame that notified views while drawing asks for the next one (`Window::draw`).
if drawn_dirty_again {
continue;
}
}
- // Vscrs: checked here, before the test runs on, since a change the test makes without a notify
+ // VSRustium: checked here, before the test runs on, since a change the test makes without a notify
// after the frame would show in the full render alone, a stale frame in either mode.
#[cfg(any(test, feature = "test-support"))]
if self.pending_effects.is_empty() && matches!(self.mode, GpuiMode::Test { .. }) {
diff --git a/native/vendor/gpui-fast/crates/gpui/src/elements/div.rs b/native/vendor/gpui-fast/crates/gpui/src/elements/div.rs
index 81002e8a42f..9d2deff5ea7 100644
--- a/native/vendor/gpui-fast/crates/gpui/src/elements/div.rs
+++ b/native/vendor/gpui-fast/crates/gpui/src/elements/div.rs
@@ -4814,7 +4814,7 @@ mod tests {
key_down(cx, any_window, "a");
cx.update_window(any_window, |_, window, cx| window.draw(cx).clear(cx))
.unwrap();
- // Vscrs: keyboard input no longer hides hover (hover_freeze.rs `hides_hover`).
+ // VSRustium: keyboard input no longer hides hover (hover_freeze.rs `hides_hover`).
assert_eq!(*hover_transitions.borrow(), [true]);
}
diff --git a/native/vendor/gpui-fast/crates/gpui/src/fast/layers/hover_freeze.rs b/native/vendor/gpui-fast/crates/gpui/src/fast/layers/hover_freeze.rs
index 59bf906073c..9ca5498b386 100644
--- a/native/vendor/gpui-fast/crates/gpui/src/fast/layers/hover_freeze.rs
+++ b/native/vendor/gpui-fast/crates/gpui/src/fast/layers/hover_freeze.rs
@@ -322,7 +322,7 @@ fn within_slop(anchor: Point<Pixels>, position: Point<Pixels>) -> bool {
/// Whether hover reads as nothing for a hitbox the pointer has not captured,
/// for [`crate::HitboxId::is_hovered`] and what a retained subtree records of
/// it: while a frame is drawn with hover held still. Keyboard input does not
-/// hide it (Vscrs: CSS `:hover` follows only the pointer).
+/// hide it (VSRustium: CSS `:hover` follows only the pointer).
///
/// Event dispatch is not drawing. A mouse listener asks `is_hovered` before it
/// runs, so holding hover there too would drop a click made under a still
diff --git a/native/vendor/gpui-fast/crates/gpui/src/fast/retained.rs b/native/vendor/gpui-fast/crates/gpui/src/fast/retained.rs
index c0d4c44ef91..ad783c54ce8 100644
--- a/native/vendor/gpui-fast/crates/gpui/src/fast/retained.rs
+++ b/native/vendor/gpui-fast/crates/gpui/src/fast/retained.rs
@@ -2109,14 +2109,14 @@ fn frame_contents(window: &Window) -> Vec<String> {
static RETENTION_CHECK: std::sync::LazyLock<bool> =
std::sync::LazyLock::new(|| std::env::var("GPUI_RETENTION_CHECK").is_ok_and(|value| value == "1"));
-/// Vscrs: with `GPUI_RETENTION_CHECK=1`, a frame a test draws with
+/// VSRustium: with `GPUI_RETENTION_CHECK=1`, a frame a test draws with
/// Retained Mode on waits for [`check_settled_frames`].
#[cfg(any(test, feature = "test-support"))]
pub(crate) fn note_test_frame(window: &mut Window) {
window.retained_state.retention_check_pending = *RETENTION_CHECK && window.retained_state.view_retention;
}
-/// Vscrs: compares each window's last test frame with a full render by
+/// VSRustium: compares each window's last test frame with a full render by
/// [`Window::retained_frame_difference`] once it is settled: no effect, dirty
/// window or next-frame callback is left, so a value measured as it painted
/// has already drawn the frame after it.
@@ -2143,7 +2143,7 @@ pub(crate) fn check_settled_frames(cx: &mut App) {
}
impl Window {
- /// Vscrs: draws the last frame again from scratch, as the retained
+ /// VSRustium: draws the last frame again from scratch, as the retained
/// tests in `fast/tests/retained.rs` do, and returns what it painted or
/// hit differently, `None` when nothing. A difference is a view whose
/// state changed without telling GPUI.
diff --git a/native/vendor/gpui-fast/crates/gpui/src/window.rs b/native/vendor/gpui-fast/crates/gpui/src/window.rs
index bdf891d5d92..188c750c63d 100644
--- a/native/vendor/gpui-fast/crates/gpui/src/window.rs
+++ b/native/vendor/gpui-fast/crates/gpui/src/window.rs
@@ -788,7 +788,7 @@ impl HitboxId {
impl HitboxId {
/// Checks if the hitbox with this ID is currently hovered, also during keyboard input modality
- /// (Vscrs: CSS `:hover` follows only the pointer). Except when handling
+ /// (VSRustium: CSS `:hover` follows only the pointer). Except when handling
/// `ScrollEvent`, this is typically what you want when determining whether to handle mouse
/// events or paint hover styles.
///
@@ -859,7 +859,7 @@ pub struct Hitbox {
impl Hitbox {
/// Checks if the hitbox is currently hovered. Like CSS `:hover`, keyboard input does not
- /// suppress it (Vscrs: VS Code keeps hover styles while typing). Except when handling
+ /// suppress it (VSRustium: VS Code keeps hover styles while typing). Except when handling
/// `ScrollEvent`, this is typically what you want when determining whether to handle mouse
/// events or paint hover styles.
///
@@ -4026,7 +4026,7 @@ impl Window {
self.reset_cursor_style(cx);
self.refreshing = false;
self.invalidator.set_phase(DrawPhase::None);
- // Vscrs: a view notified while this frame drew (a size measured in prepaint) waits in `dirty_views`, which
+ // VSRustium: a view notified while this frame drew (a size measured in prepaint) waits in `dirty_views`, which
// only the next frame reads; without one it stays stale until an unrelated event draws. A requested animation
// frame draws them already, and tests, which deliver none, would otherwise draw an animation forever.
if !self.invalidator.inner.borrow().dirty_views.is_empty() && self.next_frame_callbacks.borrow().is_empty() {
diff --git a/port/extensions/apache/package.json b/port/extensions/apache/package.json
index ad2f49a49a9..c3b26146c31 100644
--- a/port/extensions/apache/package.json
+++ b/port/extensions/apache/package.json
@@ -3,7 +3,7 @@
"displayName": "Apache Configuration",
"description": "Syntax highlighting, directive completions and hovers for Apache HTTP Server configuration files.",
"version": "1.0.0",
- "publisher": "vscrs",
+ "publisher": "vsrustium",
"license": "MIT",
"engines": {
"vscode": "^1.148.0"
diff --git a/port/extensions/dotenv-intellisense/package.json b/port/extensions/dotenv-intellisense/package.json
index ce2ba6b8b90..9acc844ba7e 100644
--- a/port/extensions/dotenv-intellisense/package.json
+++ b/port/extensions/dotenv-intellisense/package.json
@@ -3,7 +3,7 @@
"displayName": "Dotenv IntelliSense",
"description": "Completes the names of the variables defined in .env files where code reads the environment.",
"version": "1.0.0",
- "publisher": "vscrs",
+ "publisher": "vsrustium",
"license": "MIT",
"engines": {
"vscode": "^1.148.0"
diff --git a/port/fixtures/debug-extension/package.json b/port/fixtures/debug-extension/package.json
index c351afb3b4b..58fb4eee8e8 100644
--- a/port/fixtures/debug-extension/package.json
+++ b/port/fixtures/debug-extension/package.json
@@ -1,6 +1,6 @@
{
"name": "debug-extension",
- "publisher": "vscrs",
+ "publisher": "vsrustium",
"version": "0.0.1",
"engines": {
"vscode": "^1.100.0"
diff --git a/port/fixtures/extensions/contributed-panes/package.json b/port/fixtures/extensions/contributed-panes/package.json
index d9ee4754b46..379b0a800d8 100644
--- a/port/fixtures/extensions/contributed-panes/package.json
+++ b/port/fixtures/extensions/contributed-panes/package.json
@@ -1,6 +1,6 @@
{
"name": "contributed-panes",
- "publisher": "vscrs",
+ "publisher": "vsrustium",
"displayName": "Contributed Panes",
"version": "0.0.1",
"engines": { "vscode": "^1.90.0" },
diff --git a/port/fixtures/extensions/insider-tests/tests/index.js b/port/fixtures/extensions/insider-tests/tests/index.js
index f0728afe157..5c7dd3da8ba 100644
--- a/port/fixtures/extensions/insider-tests/tests/index.js
+++ b/port/fixtures/extensions/insider-tests/tests/index.js
@@ -8,7 +8,7 @@ const checks = {
'the host sees an Insiders build'() {
assert.strictEqual(vscode.version, '1.147.0-insider');
assert.strictEqual(vscode.env.appQuality, 'insider');
- assert.strictEqual(vscode.env.appName, 'Vscrs');
+ assert.strictEqual(vscode.env.appName, 'VSRustium');
},
async 'ms-vscode.hexeditor 1.11.1 from Open VSX (engines ^1.89.0-insider) installs and activates'() {
const changed = new Promise(resolve => { const listener = vscode.extensions.onDidChange(() => { listener.dispose(); resolve(); }); });
diff --git a/port/fixtures/extensions/shell-tests/tests/index.js b/port/fixtures/extensions/shell-tests/tests/index.js
index 495bc415c89..f9e517b4587 100644
--- a/port/fixtures/extensions/shell-tests/tests/index.js
+++ b/port/fixtures/extensions/shell-tests/tests/index.js
@@ -31,8 +31,8 @@ const checks = {
const blocker = await vscode.env.power.startPowerSaveBlocker('prevent-display-sleep');
assert.strictEqual(typeof blocker.id, 'number');
assert.strictEqual(blocker.isStarted, true);
- const assertions = () => run('pmset', '-g', 'assertions').split('\n').filter(line => line.includes('(vscrs)') && line.includes('NoDisplaySleepAssertion') && line.includes('named: "Electron"'));
- assert.strictEqual(assertions().length, 1, run('pmset', '-g', 'assertions').split('\n').filter(line => line.includes('vscrs') || line.includes('Electron')).join(' / ') || 'no vscrs assertion');
+ const assertions = () => run('pmset', '-g', 'assertions').split('\n').filter(line => line.includes('(vsrustium)') && line.includes('NoDisplaySleepAssertion') && line.includes('named: "Electron"'));
+ assert.strictEqual(assertions().length, 1, run('pmset', '-g', 'assertions').split('\n').filter(line => line.includes('vsrustium') || line.includes('Electron')).join(' / ') || 'no vsrustium assertion');
blocker.dispose();
await new Promise(resolve => setTimeout(resolve, 500));
assert.strictEqual(assertions().length, 0);
diff --git a/port/ledger.md b/port/ledger.md
index b7d652941bc..98e71ba0af6 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -2,7 +2,7 @@
The one source of truth for the port's state, in three places: this file holds the open work (decisions, milestones, investigations, postponed items), `port/ledger/done.md` the closed work, and `port/ledger/units/<area>.md` one row per unit of upstream VS Code 1.148.0 with its milestone, status, open gaps and evidence (`rg -n '^\| workbench/contrib/scm ' port/ledger/units`). `bun port/tools/ledger-check.ts` prints every place the tables disagree; after a status change, `bun port/tools/readme-coverage.ts` rewrites README.md's coverage block.
-A row that tracks a GitHub issue of `rokartur/vscrs` names it as `vscrs#N` in any cell. `bun port/tools/ledger-issues.ts` (needs `gh`) prints every place the rows and the issues disagree: an open issue no row names, an open issue on a closed row, a closed issue on an open row.
+A row that tracks a GitHub issue of `rokartur/vsrustium` names it as `vsrustium#N` in any cell. `bun port/tools/ledger-issues.ts` (needs `gh`) prints every place the rows and the issues disagree: an open issue no row names, an open issue on a closed row, a closed issue on an open row.
## Work
@@ -14,13 +14,13 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Decisions (Artur) | mouse cursors | decided | Every element gets the cursor the reference CSS gives it (`rg 'cursor:' src/vs --glob '*.css'`): `pointer` on clickable items (activity bar, tabs, list rows, status bar items with a command, buttons, links), `text` over editor text and input fields, the resize cursors on sashes, `default` elsewhere. GPUI: `.cursor_pointer()`, `.cursor_text()`, `.cursor_ew_resize()` and the like on the element, never a window-wide cursor. | |
| Decisions (Artur) | removed parts | decided | AI (chat, agents, agent host, sessions, Copilot, MCP, language models, inline chat, embeddings, speech), sign-in and accounts (authentication, GitHub sign-in), Settings Sync, Microsoft services (experiments, surveys, issue reporter), telemetry and remote/tunnels are `removed` (41 rows), their extension API kept inert; internal infrastructure and developer tools with no 1:1 counterpart (base/common, base/node, platform/instantiation, platform/observable, platform/webWorker, platform/gpu, platform/cssDev, editor/standalone, editor/contrib/gpu, workbench/contrib/screenshotTool) are `removed`, replaced by the native architecture; later: the integrated browser (`browserView`, `MainThreadBrowsers`) is `removed`, Simple Browser stays; the api-tests suites of removed features leave the milestone 20 target. | |
| Decisions (Artur) | n/a parts | decided | Upstream test infrastructure (`base/test`, `editor/test`, `platform/test`, `workbench/services/driver`) and the Electron process, IPC and DOM layers (`base/browser` `base/parts` `platform/domWidget` `platform/ipc` `platform/protocol` `platform/sandbox` `platform/sharedProcess` `platform/utilityProcess`) are `n/a`. | |
-| Decisions (Artur) | port version | decided | Artur: port version `<vscode>.<release>`: Vscrs's own version is VS Code's plus `release` (port/product.json, a positive integer bumped by hand per release, back to 1 on every uplift), `1.148.0.1`, `1.148.0.1-insider`, in every place a user sees it (About, `--version`, `--status`, the update title bar and tooltip, release notes and their `v<display version>` tag, package names); product.json `version` and what extensions see stay VS Code's. Updates order by (VS Code version, release, timestamp). Details in port/notes.md "Update feed". | `cargo test -p app update:: product:: version_message about_details` |
+| Decisions (Artur) | port version | decided | Artur: port version `<vscode>.<release>`: VSRustium's own version is VS Code's plus `release` (port/product.json, a positive integer bumped by hand per release, back to 1 on every uplift), `1.148.0.1`, `1.148.0.1-insider`, in every place a user sees it (About, `--version`, `--status`, the update title bar and tooltip, release notes and their `v<display version>` tag, package names); product.json `version` and what extensions see stay VS Code's. Updates order by (VS Code version, release, timestamp). Details in port/notes.md "Update feed". | `cargo test -p app update:: product:: version_message about_details` |
| Decisions (Artur) | merge gate additions | decided | A merge that touches window or startup code passes `port/tools/run-app-check` on the Studio lane (exits 1 with no app window). `/skill:retro` only when the same class of mistake comes back, not per merge. | Artur's answer |
-| Milestones | M21 uplift to VS Code 1.148.0 | in progress | vscrs#55. Postponed by Artur, started 2026-12-01 (session 1). Starts after milestones 11 to 20 close on 1.147.0 and after milestone 22; until then every reference, baseline and ui-pair stays on 1.147.0. Plan: `port/plans/uplift-1.147.0-to-1.148.0.md`, short form in `port/notes.md` "VS Code 1.148.0" (`bun port/tools/uplift-diff.ts 1.148.0`, every change triaged; refreshed against the ledger with 17 rows still open). Of about 209,000 changed upstream lines, 6,548 are ported: about 3,500 Rust work, 1,977 lines of grammar data and colorize fixtures, about 770 that arrive with upstream or the reference's extensions, and 308 of the floating comment style, a gap older than the uplift. 100,284 lines are skipped: AI, chat, sessions, agent host, remote, GitHub sign-in, experiments, telemetry and the integrated browser. Every setup step and work item is an `M21 uplift` row below, with its check. Steps: 1) session 1 does the setup rows and milestones 7 to 11. 2) Session 2 does milestones 12 and 14: files, workspace, the remove-folder vetoes and SCM. 3) Session 3 does milestones 13 and 15 to 19. Sessions 2 and 3 can run in parallel after session 1. | The ledger names 1.148.0. Every row the diff touches is `verified`, `removed` or `n/a` again, or keeps its 1.147.0 status where the gap is older than the uplift (the floating comment style). The full check passes against the 1.148.0 reference. |
-| Milestones | M23 Linux build | in progress | Branch `port-linux` (a Linux build container on the Studio). The app is macOS-only today: 24 files of `native/crates` call AppKit, Foundation, WebKit, Security or Core Foundation directly (objc2, core-foundation, security-framework); GPUI (gpui-fast, `native/vendor/gpui-fast`) already has its Linux platform (`gpui_linux`) (Wayland and X11). Artur: Wayland is required, not a preview: every feature X11 has works in a Wayland session too, webviews included. Every macOS call goes behind `cfg(target_os = "macos")` with the Linux counterpart VS Code uses there, in the same function where the two are a few lines, in a `platform/linux.rs` beside a `platform/macos.rs` where they are not: webview (WebKitGTK through wry), file dialogs (xdg-desktop-portal, rfd), the application menu (drawn in the window: `window.titleBarStyle`, `window.menuBarVisibility`), clipboard and the find pasteboard (GPUI's), proxy (`http.proxy` and the system proxy via reqwest instead of NSURLSession), secrets (Secret Service, keyring), `code` CLI install (`~/.local/bin`), file watching (inotify, notify), the updater (a download link, as `update.mode` on a tar.gz), and the settings import paths (`~/.config/Code`, `~/.config/Cursor`, `~/.config/VSCodium`). Packaging: `port/tools/package-linux` writes `Vscrs-<version>-linux-<arch>.tar.gz`, the same folder as `Vscrs-<version>-linux-<arch>.AppImage` (`port/tools/linux/appimage`) and the `linux-<arch>.json` and `linux-<arch>-prerelease.json` feed entries (port/notes.md milestone 23); deb after it. Builds in a Linux container on the Studio (`docker`, linux/arm64) for the build and the unit tests; linux-x64 on a GitHub Actions `ubuntu` runner once arm64 is green. | `cargo build --release -p app` and the area tests pass on Linux arm64 and x64; the app opens a folder, edits, saves, runs an extension (the exthost handshake, emmet and git activate) and shows a webview under Xvfb and in a Wayland session (a headless compositor in the container); `v1.147.0-insider` carries `Vscrs-1.147.0-insider-linux-arm64.tar.gz` and `Vscrs-1.147.0-insider-linux-x64.tar.gz`; the macOS build is unchanged (its area tests and api-tests as before). |
-| Milestones | M24 Windows build | in progress | vscrs#27. Branch `worktree-m24-windows`, beside milestone 23 on the same seams: macOS and Linux code stays as it is, each Windows counterpart sits behind `cfg(target_os = "windows")` in the function where it is a few lines, in a `windows.rs` beside `macos.rs` and `linux.rs` where it is not. Scope: WebView2, the Win32 file dialogs and message boxes, the in-window menu bar and custom title bar, Credential Manager (keyring), named pipes for the extension host and single instance, ConPTY for the terminal (terminal/pty/conpty.rs, the VT backend libghostty-vt is platform-neutral), drive-letter paths and file URIs, the user-setup install path with `bin` on the user PATH (code.iss `addtopath`), `%APPDATA%\Code` settings import, an x64 and arm64 zip and a user installer, no Authenticode signing (the Windows signing decision). Cross build on the Studio (cargo-xwin, `x86_64-pc-windows-msvc` and `aarch64-pc-windows-msvc`) for compile checks and host-run unit tests; real runs on GitHub Actions `windows` runners (`.github/workflows/windows.yml`, by hand). Seams: the "M24 Windows" rows. | `cargo build --release -p app` and the area tests pass on win32-x64 and win32-arm64 runners; the app opens a folder, edits, saves, runs an extension (the exthost handshake, emmet and git activate) and shows a webview on the runner; `v1.147.0-insider` carries `Vscrs-win32-x64-1.147.0-insider.zip`, `Vscrs-win32-arm64-1.147.0-insider.zip` and both user setups; the macOS and Linux builds are unchanged (their area tests as before). |
+| Milestones | M21 uplift to VS Code 1.148.0 | in progress | vsrustium#55. Postponed by Artur, started 2026-12-01 (session 1). Starts after milestones 11 to 20 close on 1.147.0 and after milestone 22; until then every reference, baseline and ui-pair stays on 1.147.0. Plan: `port/plans/uplift-1.147.0-to-1.148.0.md`, short form in `port/notes.md` "VS Code 1.148.0" (`bun port/tools/uplift-diff.ts 1.148.0`, every change triaged; refreshed against the ledger with 17 rows still open). Of about 209,000 changed upstream lines, 6,548 are ported: about 3,500 Rust work, 1,977 lines of grammar data and colorize fixtures, about 770 that arrive with upstream or the reference's extensions, and 308 of the floating comment style, a gap older than the uplift. 100,284 lines are skipped: AI, chat, sessions, agent host, remote, GitHub sign-in, experiments, telemetry and the integrated browser. Every setup step and work item is an `M21 uplift` row below, with its check. Steps: 1) session 1 does the setup rows and milestones 7 to 11. 2) Session 2 does milestones 12 and 14: files, workspace, the remove-folder vetoes and SCM. 3) Session 3 does milestones 13 and 15 to 19. Sessions 2 and 3 can run in parallel after session 1. | The ledger names 1.148.0. Every row the diff touches is `verified`, `removed` or `n/a` again, or keeps its 1.147.0 status where the gap is older than the uplift (the floating comment style). The full check passes against the 1.148.0 reference. |
+| Milestones | M23 Linux build | in progress | Branch `port-linux` (a Linux build container on the Studio). The app is macOS-only today: 24 files of `native/crates` call AppKit, Foundation, WebKit, Security or Core Foundation directly (objc2, core-foundation, security-framework); GPUI (gpui-fast, `native/vendor/gpui-fast`) already has its Linux platform (`gpui_linux`) (Wayland and X11). Artur: Wayland is required, not a preview: every feature X11 has works in a Wayland session too, webviews included. Every macOS call goes behind `cfg(target_os = "macos")` with the Linux counterpart VS Code uses there, in the same function where the two are a few lines, in a `platform/linux.rs` beside a `platform/macos.rs` where they are not: webview (WebKitGTK through wry), file dialogs (xdg-desktop-portal, rfd), the application menu (drawn in the window: `window.titleBarStyle`, `window.menuBarVisibility`), clipboard and the find pasteboard (GPUI's), proxy (`http.proxy` and the system proxy via reqwest instead of NSURLSession), secrets (Secret Service, keyring), `code` CLI install (`~/.local/bin`), file watching (inotify, notify), the updater (a download link, as `update.mode` on a tar.gz), and the settings import paths (`~/.config/Code`, `~/.config/Cursor`, `~/.config/VSCodium`). Packaging: `port/tools/package-linux` writes `VSRustium-<version>-linux-<arch>.tar.gz`, the same folder as `VSRustium-<version>-linux-<arch>.AppImage` (`port/tools/linux/appimage`) and the `linux-<arch>.json` and `linux-<arch>-prerelease.json` feed entries (port/notes.md milestone 23); deb after it. Builds in a Linux container on the Studio (`docker`, linux/arm64) for the build and the unit tests; linux-x64 on a GitHub Actions `ubuntu` runner once arm64 is green. | `cargo build --release -p app` and the area tests pass on Linux arm64 and x64; the app opens a folder, edits, saves, runs an extension (the exthost handshake, emmet and git activate) and shows a webview under Xvfb and in a Wayland session (a headless compositor in the container); `v1.147.0-insider` carries `VSRustium-1.147.0-insider-linux-arm64.tar.gz` and `VSRustium-1.147.0-insider-linux-x64.tar.gz`; the macOS build is unchanged (its area tests and api-tests as before). |
+| Milestones | M24 Windows build | in progress | vsrustium#27. Branch `worktree-m24-windows`, beside milestone 23 on the same seams: macOS and Linux code stays as it is, each Windows counterpart sits behind `cfg(target_os = "windows")` in the function where it is a few lines, in a `windows.rs` beside `macos.rs` and `linux.rs` where it is not. Scope: WebView2, the Win32 file dialogs and message boxes, the in-window menu bar and custom title bar, Credential Manager (keyring), named pipes for the extension host and single instance, ConPTY for the terminal (terminal/pty/conpty.rs, the VT backend libghostty-vt is platform-neutral), drive-letter paths and file URIs, the user-setup install path with `bin` on the user PATH (code.iss `addtopath`), `%APPDATA%\Code` settings import, an x64 and arm64 zip and a user installer, no Authenticode signing (the Windows signing decision). Cross build on the Studio (cargo-xwin, `x86_64-pc-windows-msvc` and `aarch64-pc-windows-msvc`) for compile checks and host-run unit tests; real runs on GitHub Actions `windows` runners (`.github/workflows/windows.yml`, by hand). Seams: the "M24 Windows" rows. | `cargo build --release -p app` and the area tests pass on win32-x64 and win32-arm64 runners; the app opens a folder, edits, saves, runs an extension (the exthost handshake, emmet and git activate) and shows a webview on the runner; `v1.147.0-insider` carries `VSRustium-win32-x64-1.147.0-insider.zip`, `VSRustium-win32-arm64-1.147.0-insider.zip` and both user setups; the macOS and Linux builds are unchanged (their area tests as before). |
| Milestones | M25 virtual workspaces | later | Artur: its own milestone after M20, not part of the gap audits. A folder of a non-file scheme (`.code-workspace` `uri` folders, `--folder-uri`, `vscode.openFolder` with an extension file system provider scheme) kept as a URI; every reader of workspace folders (173 `.folders` uses in 70 files: explorer, search, quick open, terminal cwd, tasks, git, watcher, settings layers, trust) goes through the file system providers; the workspace marked virtual, `virtualWorkspaces: false` extensions disabled with the `notSupportedInWorkspace` message (config/workspace.rs:101, port/notes.md provider entries deferred until virtual workspaces). | not started |
-| Milestones | M28 Zed gate | open | Artur, 2026-12-02: the port is not behind Zed in any metric of `port/tools/bench`, time and memory. Its own track, apart from M27. Behind today (README.md, port/results/benchmark.md): peak footprint and peak RSS. The plan follows a memory profile of the peak footprint. | `port/tools/bench > run.tsv && bun port/tools/bench-check.ts run.tsv vscrs zed` prints no `BEHIND` on a quiet machine (the run's load under `max_load` of port/budgets.json). |
+| Milestones | M28 Zed gate | open | Artur, 2026-12-02: the port is not behind Zed in any metric of `port/tools/bench`, time and memory. Its own track, apart from M27. Behind today (README.md, port/results/benchmark.md): peak footprint and peak RSS. The plan follows a memory profile of the peak footprint. | `port/tools/bench > run.tsv && bun port/tools/bench-check.ts run.tsv vsrustium zed` prints no `BEHIND` on a quiet machine (the run's load under `max_load` of port/budgets.json). |
| M23 Linux | app/src/webview/linux.rs:47 | open | [linux L] webviews in a Wayland session. Linux shows now: no webview under Wayland: GPUI has no X window there to hold the GTK window, so `supported()` is false and each webview surface stays empty. Needs a route that does not embed: GTK opens its own Wayland connection, and a `wl_subsurface` cannot take a surface of another client, so the reparenting X11 uses has no Wayland form; WPE WebKit rendering offscreen into a GPUI texture, with input forwarded, is the route left (not started). | |
| M23 Linux | app/src/webview/linux.rs:370 | open | [linux S] a webview in a Wayland desktop with `WAYLAND_DISPLAY` unset panics ("GTK on X11"): GPUI falls back to X11, GTK still connects to `wayland-0`, and `embedded_window` expects an X11 display. `GDK_BACKEND=x11` avoids it (found in PR #15's NixOS test, the same with the plain archive). GTK has to take the backend GPUI took. | |
| M23 Linux | app/src/clipboard.rs:97 | open | [linux M] clipboard file lists, HTML and other custom formats: Chromium offers each as its own MIME target (`code/file-list`, `text/html`) beside the text. Needs gpui_linux vendored, since GPUI's X11 selection owner and Wayland data source offer only text, images and `text/uri-list`, and a second owner would take CLIPBOARD from GPUI's. The find text needs nothing: clipboardService.ts reads and writes it only on macOS. Linux shows now: text only; the other formats read empty. | |
@@ -60,52 +60,52 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| M24 Windows | app/src/workbench/process_explorer.rs:295 | open | [windows M] process explorer and kill (@vscode/windows-process-tree's snapshot, `TerminateProcess`). | `cargo gc test -p app process_explorer` on the windows runner |
| M24 Windows | app/src/policy.rs:9 | open | [windows M] policies from the registry (`HKLM` and `HKCU` `Software\Policies\<win32RegValueName>`, @vscode/policy-watcher). | `cargo gc test -p app policy` on the windows runner |
| M24 Windows | app/src/app_icon.rs:27 | open | [windows S] the executable icon and version resource (resources/win32/code.ico, build.rs). | the icon in Explorer on the runner's screenshot |
-| M24 Windows | port/tools/package-windows:1 | open | [windows M] `Vscrs-win32-<arch>-<version>.zip` as VS Code's Windows archive lays it out (`<applicationName>.exe`, `bin\<applicationName>.cmd`, `resources\app`, bun.exe), the host's native modules built for Windows, `win32-<arch>-archive.json` feed entries. | the extracted zip passes the smoke on the windows runner |
+| M24 Windows | port/tools/package-windows:1 | open | [windows M] `VSRustium-win32-<arch>-<version>.zip` as VS Code's Windows archive lays it out (`<applicationName>.exe`, `bin\<applicationName>.cmd`, `resources\app`, bun.exe), the host's native modules built for Windows, `win32-<arch>-archive.json` feed entries. | the extracted zip passes the smoke on the windows runner |
| M24 Windows | port/tools/windows/code.iss:1 | open | [windows M] user setup (`{userpf}\<dirName>`, `addtopath`, Start menu entry, file associations as code.iss) built with Inno Setup on the runner; unsigned (the Windows signing decision). | the setup installs silently, `<applicationName> --version` runs from a new shell's PATH, uninstall removes it |
| M24 Windows | .github/workflows/windows.yml:1 | open | [windows S] x64 on `windows-latest`, arm64 on `windows-11-arm`, by hand (`workflow_dispatch`), uploading the zips, setups and feed entries. | one dispatched run green for both architectures |
-| M21 uplift | editor/browser and editor/contrib/folding | later | M8 (vscrs#56), 71 lines (`mouseHandler`, `mouseTarget`, `view`, `viewLine`, `folding.css`): a click in the empty gutter places the caret; a click in the line-decorations lane with no decoration goes to the line start; only the 0.625em folding chevron toggles; with `editor.mouseStyle: text` the I-beam shows over the empty gutter; a click right of an empty line gives column 1; an empty line with injected text on both sides puts the caret before the after-decoration. | `cargo test -p app editor::view` mouse-target cases; ui-pair of the gutter hover |
-| M21 uplift | editor/common | later | M8 (vscrs#56), 24 lines (`editorOptions`, `defaultDocumentColorsComputer`): `tabFocusMode` is computed from the global Ctrl+M toggle, so `editorTabMovesFocus` follows it; hex colors count only before whitespace, a quote, `;`, `,`, `)` or the end of the line. | `cargo test -p app tab_focus document_colors` |
-| M21 uplift | editor/contrib/contextmenu | later | M8 (vscrs#56), 6 lines: a right click on injected text (inlay hints, ghost text) opens no menu and keeps the selection. | `cargo test -p app editor_menus` |
-| M21 uplift | editor/contrib/links and editor/contrib/hover | later | M13 (vscrs#61), 21 lines (`links.ts`, `contentHoverRendered`, `hoverTypes`, `markdownHoverParticipant`, `model.ts`, `textModel.ts`): the hover copy button copies `hoverMessageCopyContent`; for a link, that is the URL. | `cargo test -p app content_hover links::` |
-| M21 uplift | workbench/parts/editor: add-tab menu | later | M8 (vscrs#56), 186 lines (`editorAddTabControl`, `editorTabsControl`, `editorPart`, `editor.ts`, `editorAddTabControl.css`): the entry picked last (`editor.addTabMenu.recentEntry.<menuId>`, profile storage) comes first with "recently used"; a second press on `+` while the menu is open picks it. New-tab entries open pinned at the end of the group with the button's editor options (`newTabButton.ts`, `newTabButtonActions.ts`, `editorTypePicker`: association pattern). | ui-pair of the open add-tab menu; `cargo test -p app new_tab` |
-| M21 uplift | workbench/parts/editor: wrapped tabs | later | M8 (vscrs#56), 65 lines (`multiEditorTabsControl`, `multieditortabscontrol.css`): the `+` button never sits alone on a row, and a tab dropped on `+` goes last. | ui-pair of wrapped tabs; `cargo test -p app tabs_wrap` |
-| M21 uplift | workbench/parts/editor: drop label and watermark | later | M8 (vscrs#56), 129 lines (`editorDropTarget`, `editordroptarget.css`, `dnd.ts`, `dnd.css`, `editorGroupWatermark`): the "Hold Shift to drop into editor" label gets body1 font, 4/8 padding, a small radius and CSS colors; the watermark's "Start Debugging" icon becomes `run`. Internal only, no visible change: breadcrumbs' editor type dropdown `onDidOpen` (50) and `editorGroupView` header inset and single-tab title options (41). | ui-pair of an editor drag with the label and of the empty editor |
-| M21 uplift | workbench/contrib/codeEditor: empty editor hint | later | M8 (vscrs#56), 935 lines, n/a: upstream moves the hint into `emptyTextEditorHintController.ts` and `emptyEditorHintReopen.ts` with the same text, links and keys, so `workbench/empty_editor_hint.rs` stays. The "open in Markdown Editor" link is part of the Markdown Editor experiment (skipped). | `cargo test -p app empty_editor_hint`; ui-pair `port/fixtures/ui-steps/empty-editor-hint.json` against 1.148.0 |
-| M21 uplift | platform/actions | later | M9 (vscrs#57), 55 lines (`actions.ts`, `toolbar`, `menuEntryActionViewItem`): when a split button's primary action is checked, both parts paint `actionBar.toggledBackground`; a disabled dropdown part is drawn at 0.4 opacity; `isAlwaysShown` and `excludePrimaryActionFromDropdown` are new menu options. The multi diff Toggle Files split button is a caller. | ui-pair of that toolbar; `cargo test -p app menus` |
-| M21 uplift | platform/actionWidget | later | M9 (vscrs#57), 67 lines (`actionList`, `actionWidget.css`): the checked item is revealed after the first layout, `.panel-anchor` marks the row with an open panel, and `aria-expanded` is set only on expandable rows. Port into `workbench/action_widget.rs` and `action_list.rs`. | `cargo test -p app action_list code_actions`; ui-pair of the code action menu |
-| M21 uplift | platform/quickinput | later | M9 (vscrs#57), 25 lines: focused tree rows use `quickInputList.focusHighlightForeground`; a focused row's icon uses `quickInputList.focusIconForeground`; selected rows use the focus colors; an anchored picker keeps its last anchor rect. | ui-pair Cmd+P with a colored icon focused; `cargo test -p app quick_input` |
-| M21 uplift | workbench/services/keybinding | later | M9 (vscrs#57), 26 lines (`keybindingEditing`): an edit or removal targets the last user entry that matches command, when, args, systemWide and key. | `cargo test -p app user_keybindings` with two same-command entries |
-| M21 uplift | workbench/parts/titlebar | later | M9 (vscrs#57), 11 lines (`menubarControl`): `menubarHidden` changes only for the custom menu bar; on the native macOS menu it has no effect. | none: no visible change on macOS |
-| M21 uplift | workbench/services/configuration | later | M10 (vscrs#58), about 34 lines (`workbench.contribution.ts`, `common/configuration.ts`): the `workbench.editor.experimental.newTabButton` to `workbench.editor.newTabButton` migration, a new `workbench.activityBar.autoHide` description, and `migrateUserSettingsSeparately` (only the local half applies). | `port/tools/settings-check configuration` with a user settings file that holds the old key |
-| M21 uplift | workbench/services/preferences | later | M10 (vscrs#58), 2 lines (`keybindingsEditorModel`): the Keyboard Shortcuts row id includes `systemWide`. | `cargo test -p app keybindings_editor` |
-| M21 uplift | workbench/contrib/modernUI | later | M11 (vscrs#59), about 110 lines (`connectedEditorTabs.css`, `tabs.css`, `frostedGlass.css`, `roundedCorners.css`, `padding.css`): the connected-tab outline, shoulders and strip separator use `modernPanel.border`, then `editorGroupHeader.tabsBorder`, then `tab.border`; the wrapped `+` button lines up with the first tab of the row above; a drop indicator before the last tab is drawn above the sticky `+`; the dialog's frosted glass sits behind the border; SCM badges and counts get a `spacing-size40` right margin. Waits for the modernUI row to close on 1.147.0. | ui-pair of wrapped connected tabs, a modal dialog and the SCM view |
-| M21 uplift | workbench/parts/auxiliarybar | later | M11 (vscrs#59), 35 lines: with `workbench.activityBar.autoHide`, the secondary side bar hides its composite bar when it has one container, at any activity bar location. The Maximize precondition adds AI keys only (skipped). | ui-pair with auto-hide on |
-| M21 uplift | workbench/parts/views | later | M11 (vscrs#59), 26 lines (`compositeBarActions.ts`, `paneCompositePart.ts`, `paneCompositePart.css`): an icon badge that hides number badges keeps their counts in the title and accessible label; the trailing title-action separator is hidden while the part has no global actions. | `cargo test -p app activity_bar`; ui-pair of a panel title |
-| M21 uplift | workbench/services/progress | later | M11 (vscrs#59), 49 lines (`progressIndicator`): only the latest reporter hides the editor progress bar, and showing the infinite bar again does not restart it or its signal. | `cargo test -p app progress` |
-| M21 uplift | workbench/services/decorations | later | M11 (vscrs#59), 53 lines (`decorationsService`, `decorations.ts`, `labels.ts`): the `alignBadgeLastCharacter` badge span; SCM rows use it. | ui-pair of the SCM view |
-| M21 uplift | workbench/services/editor | later | M11 (vscrs#59), about 85 lines (`editorResolverService`, `openWithEditorPicker`, `editorGroupsService`): `setDefaultEditor` takes an `associationPattern`, plus `onWillSetDefaultEditor`. The working-set and modal toolbar API has no non-AI caller yet. | `cargo test -p app editor_resolver` |
-| M21 uplift | workbench/services/views | later | M11 (vscrs#59), 3 lines (`viewsService`): title actions are rebuilt once, not twice. | the existing view tests |
-| M21 uplift | platform/files | later | M12 (vscrs#60), 225 lines (`diskFileSystemProvider`, `files`, `fileService`, `io`, `diskFileSystemProviderClient`): named pipes. A read waits for a writer and can be cancelled; it fails with "Named pipe has no data and no writer". A write with no reader fails at once with "Named pipe has no reader". Pipes get no retries and no fdatasync. `readFile` takes a cancellation token. | `cargo test -p files fifo` |
-| M21 uplift | workbench/contrib/files | later | M12 (vscrs#60), 166 lines (`fileImportExport`, `explorerViewer`, `explorerView`, `newTabButtonActions`): when a dropped or moved folder already exists in the target, a dialog asks "A folder with the name '{0}' already exists... merge or replace it?" with Merge, Replace and Cancel. Merge recurses and replaces files; a move deletes the emptied source folders; symlinks are never merged. The Explorer header shows the workspace label without the location suffix. Waits for the files row to close on 1.147.0. | `cargo test -p app explorer merge_folders`; ui-pair of the dialog |
-| M21 uplift | workbench/contrib/bulkEdit | later | M12 (vscrs#60), 13 lines (`bulkFileEdits`): deleting a folder that earlier deletes in the same edit emptied becomes its own step. | `cargo test -p app bulk_edit`; api-tests workspace applyEdit |
-| M21 uplift | mainthread/MainThreadWorkspace | later | M12 (vscrs#60), 69 lines plus 61 of `vscode.proposed.workspaceFolderLocations.d.ts` and the extension host side that arrives with upstream: new `$getWorkspaceFolderLocations()`. The main thread answers by pushing `$acceptWorkspaceFolderLocations([{folder, locations}])` and pushes again when folders change. The only location provider in 1.148.0 is the agent host worktree contribution (removed), so each folder has only its primary location. `$updateWorkspaceFolders` passes `force`. The git extension enables the `workspaceFolderLocations` proposal (`platform/extensions`, 3 lines) and listens to it. | api-tests `vscode API - workspace`; the git integration run (port/results/scm.md) 91/2/0 as the reference |
-| M21 uplift | platform/workspace | later | M12 (vscrs#60), 12 lines (`virtualWorkspace`, `browser/contextkeys.ts`): the `workspaceHasVirtualContent` context key. | `cargo test -p app context_keys` |
-| M21 uplift | workbench/services/workspaces | later | M12 (vscrs#60), 190 lines (`abstractWorkspaceEditingService`, `workspaceEditing`): the `onWillRemoveFolders` veto ("Remove the folder '{0}'?", "Stop and Remove") and the options object `{donotNotifyError, force}`, in `workbench/workspace_editing.rs`. The task and debug vetoes use it. | `cargo test -p app workspace_editing` with a vetoing participant; ui-pair of the dialog with a running task |
-| M21 uplift | workbench/contrib/comments | later | M13 (vscrs#61), about 300 lines (`commentFormActions`, `commentReply`, `commentNode`, `commentService`, `commentsController`, `commentCommandIds`, `commentsEditorContribution`, `languages.ts`): a controller's submit-thread button comes first in the reply form and is disabled while the reply is empty; the reply and edit editors measure their height again after a width change, the edit editor is the container width minus 14px; `.picker-only` reactions; the `commentsInput` scheme gets no commenting-range prefetch; `showRangeBar: false` hides the gutter range bar; Cmd+Esc moves to the new `workbench.action.collapseVisibleComments`, `hideComment` stays without a key. | `cargo test -p app comment`; ui-pair of thread editing |
-| M21 uplift | workbench/contrib/comments: floating style | later | M13 (vscrs#61), 308 lines (`commentThreadFloatingWidget`, its layout, `commentThreadWidget`, `review.css`): width and placement changes of `comments.thread.experimental.style: floating`, which was not ported at 1.147.0 either; they go in with that gap. | the floating style's own check when it is ported |
-| M21 uplift | mainthread/MainThreadComments | later | M13 (vscrs#61), 5 lines: the Comments view container registers once. | `cargo test -p app comment` |
-| M21 uplift | mainthread/MainThreadSCM and workbench/contrib/scm | later | M14 (vscrs#63), about 360 lines (`mainThreadSCM`, `scm.ts`, `scmService`, `scmViewService`, `scmViewPane`, `scm.contribution`, `scm.css`, `quickDiffDecorator`, `vscode.proposed.scmProviderOptions.d.ts`, `extHost.protocol.ts`): new `$setSourceControlsHidden([handle, isHidden][])`, applied in order after each handle's registration as one view change; the git extension (`model.ts`, `workspaceFolderRepositories.ts`, 437 lines from the reference) uses `scmProviderOptions`' settable `isHidden` for hidden warm repositories. Repositories come and go from the view, the picker and the welcome as `isHidden` flips; a later-found repository keeps its earlier hidden state. Sort by path compares segment by segment. Show Structural Diff defaults to shown when `scm.structuralDiff.enabled` is on. Group count badges become circles with tabular numbers. The quick diff gutter hit area is only the bar width. | api-tests scm; `cargo test -p app scm quick_diff`; ui-pair of the SCM view; the git integration run |
-| M21 uplift | workbench/contrib/multiDiffEditor | later | M14 (vscrs#63), 204 lines: `multiDiffEditor.experimental.fileList` is removed, the file list is always on unless the input says `showFileList: false`. Toggle Files becomes a split button (order 100001) with the new `MultiDiffEditorFileListToggle` menu (List/Tree, then Left/Right). The list no longer hides itself; the diffs shrink first. | ui-pair of the multi diff title bar; `cargo test -p app multi_diff` |
-| M21 uplift | extension/git | later | M14 (vscrs#63), 18 lines of package.json that need the workbench: the stage, unstage and revert selected-ranges title actions use `!isInDiffLeftEditor`; the port sets neither diff-side key, so these buttons would show in every diff editor: set `isInDiffLeftEditor` and `isInDiffRightEditor`. `git.openMergeEditor` is in the palette when `git.activeResourceHasMergeConflicts`. A new "Opening the Git repository..." scm welcome shows while `git.openingLocation`. | `cargo test -p app scm` (diff-side keys); ui-pair of the diff editor title |
-| M21 uplift | workbench/contrib/codeEditor: terminal find | later | M15 (vscrs#64), 64 lines (`simpleFindWidget.ts`): an incomplete count shows "N+", a provider status replaces the count, `canRetry` keeps next and previous enabled, there is no red outline while the count is incomplete, and late updates are dropped. | `cargo test -p app terminal_find` |
-| M21 uplift | workbench/contrib/terminal | later | M15 (vscrs#64), 7 lines (`terminal.css`, `terminalTabbedView`): the tabs list gets 4px top padding. | ui-pair of the terminal tabs |
-| M21 uplift | workbench/contrib/tasks | later | M15 (vscrs#64), 27 lines (`abstractTaskService`, `taskService`): the remove-folder veto for running tasks ("The task '{0}' is running."), on the workspace editing veto. | `cargo test -p app workspace_editing tasks` |
-| M21 uplift | workbench/contrib/debug | later | M16 (vscrs#65), 198 lines (`repl`, `replCompletions`, `disassemblyView`, `debugService`, `debugUtils`): Debug Console completions honor DAP `start` and `length`, an item whose range is off the cursor line is dropped; multi-line history suggestions insert the rest of the entry; disassembly breakpoints are matched by address; the remove-folder veto ("A debug session is running."), on the workspace editing veto. | `cargo test -p app repl disassembly` (the replCompletions cases) |
-| M21 uplift | workbench/contrib/mediaPreview | later | M17 (vscrs#66), 249 lines (`mediaPlayerEditorInput`, `mediaPlayerEditor.css`): the video player's fullscreen control opens the video in the modal editor; Escape returns it inline and playback continues. | ui-pair of the video in the modal |
-| M21 uplift | workbench/contrib/webview and webviewPanel | later | M17 (vscrs#66), 42 lines (`webview`, `webviewElement`, `webviewMessages.d.ts`, `pre/index.html`, `webviewEditor`): `allowFullscreen` (iframe `allow=fullscreen`); unmounted frames stop loading; copy, cut and paste from a menu focus the webview first; a webview editor claims the webview only for its own group. | `port/tools/webview-check`; a copy from the Edit menu |
-| M21 uplift | extension/markdown-language-features | later | M17 (vscrs#66), 99 lines: the new `markdown.editor.initialMode` (read or edit, default read) is read by the extension itself; `@vscode/markdown-editor` bump. | settings-check lists it; `FIXTURE=markdown-tests port/tools/webview-check` |
-| M21 uplift | workbench/contrib/extensions | later | M18 (vscrs#67), about 129 lines (`extensions.contribution`, `extensionsCopyActions`, `extensionsActions`): Copy Link's `when` becomes `extensionHasGalleryLink` (set when the extension has a url), replacing `galleryHasExtensionLink`. The Manage gear in the extension editor hides when the ExtensionContext menu has nothing for the extension. | ui-pair of the extension editor header and context menu |
-| M21 uplift | platform/update | later | M19 (vscrs#68), 11 lines (`update.config.contribution`): `update.enableEarlyStaging` (macOS, default false, experimental) is registered by the settings dump and has no effect on the port's GitHub-release updater. | settings-check |
+| M21 uplift | editor/browser and editor/contrib/folding | later | M8 (vsrustium#56), 71 lines (`mouseHandler`, `mouseTarget`, `view`, `viewLine`, `folding.css`): a click in the empty gutter places the caret; a click in the line-decorations lane with no decoration goes to the line start; only the 0.625em folding chevron toggles; with `editor.mouseStyle: text` the I-beam shows over the empty gutter; a click right of an empty line gives column 1; an empty line with injected text on both sides puts the caret before the after-decoration. | `cargo test -p app editor::view` mouse-target cases; ui-pair of the gutter hover |
+| M21 uplift | editor/common | later | M8 (vsrustium#56), 24 lines (`editorOptions`, `defaultDocumentColorsComputer`): `tabFocusMode` is computed from the global Ctrl+M toggle, so `editorTabMovesFocus` follows it; hex colors count only before whitespace, a quote, `;`, `,`, `)` or the end of the line. | `cargo test -p app tab_focus document_colors` |
+| M21 uplift | editor/contrib/contextmenu | later | M8 (vsrustium#56), 6 lines: a right click on injected text (inlay hints, ghost text) opens no menu and keeps the selection. | `cargo test -p app editor_menus` |
+| M21 uplift | editor/contrib/links and editor/contrib/hover | later | M13 (vsrustium#61), 21 lines (`links.ts`, `contentHoverRendered`, `hoverTypes`, `markdownHoverParticipant`, `model.ts`, `textModel.ts`): the hover copy button copies `hoverMessageCopyContent`; for a link, that is the URL. | `cargo test -p app content_hover links::` |
+| M21 uplift | workbench/parts/editor: add-tab menu | later | M8 (vsrustium#56), 186 lines (`editorAddTabControl`, `editorTabsControl`, `editorPart`, `editor.ts`, `editorAddTabControl.css`): the entry picked last (`editor.addTabMenu.recentEntry.<menuId>`, profile storage) comes first with "recently used"; a second press on `+` while the menu is open picks it. New-tab entries open pinned at the end of the group with the button's editor options (`newTabButton.ts`, `newTabButtonActions.ts`, `editorTypePicker`: association pattern). | ui-pair of the open add-tab menu; `cargo test -p app new_tab` |
+| M21 uplift | workbench/parts/editor: wrapped tabs | later | M8 (vsrustium#56), 65 lines (`multiEditorTabsControl`, `multieditortabscontrol.css`): the `+` button never sits alone on a row, and a tab dropped on `+` goes last. | ui-pair of wrapped tabs; `cargo test -p app tabs_wrap` |
+| M21 uplift | workbench/parts/editor: drop label and watermark | later | M8 (vsrustium#56), 129 lines (`editorDropTarget`, `editordroptarget.css`, `dnd.ts`, `dnd.css`, `editorGroupWatermark`): the "Hold Shift to drop into editor" label gets body1 font, 4/8 padding, a small radius and CSS colors; the watermark's "Start Debugging" icon becomes `run`. Internal only, no visible change: breadcrumbs' editor type dropdown `onDidOpen` (50) and `editorGroupView` header inset and single-tab title options (41). | ui-pair of an editor drag with the label and of the empty editor |
+| M21 uplift | workbench/contrib/codeEditor: empty editor hint | later | M8 (vsrustium#56), 935 lines, n/a: upstream moves the hint into `emptyTextEditorHintController.ts` and `emptyEditorHintReopen.ts` with the same text, links and keys, so `workbench/empty_editor_hint.rs` stays. The "open in Markdown Editor" link is part of the Markdown Editor experiment (skipped). | `cargo test -p app empty_editor_hint`; ui-pair `port/fixtures/ui-steps/empty-editor-hint.json` against 1.148.0 |
+| M21 uplift | platform/actions | later | M9 (vsrustium#57), 55 lines (`actions.ts`, `toolbar`, `menuEntryActionViewItem`): when a split button's primary action is checked, both parts paint `actionBar.toggledBackground`; a disabled dropdown part is drawn at 0.4 opacity; `isAlwaysShown` and `excludePrimaryActionFromDropdown` are new menu options. The multi diff Toggle Files split button is a caller. | ui-pair of that toolbar; `cargo test -p app menus` |
+| M21 uplift | platform/actionWidget | later | M9 (vsrustium#57), 67 lines (`actionList`, `actionWidget.css`): the checked item is revealed after the first layout, `.panel-anchor` marks the row with an open panel, and `aria-expanded` is set only on expandable rows. Port into `workbench/action_widget.rs` and `action_list.rs`. | `cargo test -p app action_list code_actions`; ui-pair of the code action menu |
+| M21 uplift | platform/quickinput | later | M9 (vsrustium#57), 25 lines: focused tree rows use `quickInputList.focusHighlightForeground`; a focused row's icon uses `quickInputList.focusIconForeground`; selected rows use the focus colors; an anchored picker keeps its last anchor rect. | ui-pair Cmd+P with a colored icon focused; `cargo test -p app quick_input` |
+| M21 uplift | workbench/services/keybinding | later | M9 (vsrustium#57), 26 lines (`keybindingEditing`): an edit or removal targets the last user entry that matches command, when, args, systemWide and key. | `cargo test -p app user_keybindings` with two same-command entries |
+| M21 uplift | workbench/parts/titlebar | later | M9 (vsrustium#57), 11 lines (`menubarControl`): `menubarHidden` changes only for the custom menu bar; on the native macOS menu it has no effect. | none: no visible change on macOS |
+| M21 uplift | workbench/services/configuration | later | M10 (vsrustium#58), about 34 lines (`workbench.contribution.ts`, `common/configuration.ts`): the `workbench.editor.experimental.newTabButton` to `workbench.editor.newTabButton` migration, a new `workbench.activityBar.autoHide` description, and `migrateUserSettingsSeparately` (only the local half applies). | `port/tools/settings-check configuration` with a user settings file that holds the old key |
+| M21 uplift | workbench/services/preferences | later | M10 (vsrustium#58), 2 lines (`keybindingsEditorModel`): the Keyboard Shortcuts row id includes `systemWide`. | `cargo test -p app keybindings_editor` |
+| M21 uplift | workbench/contrib/modernUI | later | M11 (vsrustium#59), about 110 lines (`connectedEditorTabs.css`, `tabs.css`, `frostedGlass.css`, `roundedCorners.css`, `padding.css`): the connected-tab outline, shoulders and strip separator use `modernPanel.border`, then `editorGroupHeader.tabsBorder`, then `tab.border`; the wrapped `+` button lines up with the first tab of the row above; a drop indicator before the last tab is drawn above the sticky `+`; the dialog's frosted glass sits behind the border; SCM badges and counts get a `spacing-size40` right margin. Waits for the modernUI row to close on 1.147.0. | ui-pair of wrapped connected tabs, a modal dialog and the SCM view |
+| M21 uplift | workbench/parts/auxiliarybar | later | M11 (vsrustium#59), 35 lines: with `workbench.activityBar.autoHide`, the secondary side bar hides its composite bar when it has one container, at any activity bar location. The Maximize precondition adds AI keys only (skipped). | ui-pair with auto-hide on |
+| M21 uplift | workbench/parts/views | later | M11 (vsrustium#59), 26 lines (`compositeBarActions.ts`, `paneCompositePart.ts`, `paneCompositePart.css`): an icon badge that hides number badges keeps their counts in the title and accessible label; the trailing title-action separator is hidden while the part has no global actions. | `cargo test -p app activity_bar`; ui-pair of a panel title |
+| M21 uplift | workbench/services/progress | later | M11 (vsrustium#59), 49 lines (`progressIndicator`): only the latest reporter hides the editor progress bar, and showing the infinite bar again does not restart it or its signal. | `cargo test -p app progress` |
+| M21 uplift | workbench/services/decorations | later | M11 (vsrustium#59), 53 lines (`decorationsService`, `decorations.ts`, `labels.ts`): the `alignBadgeLastCharacter` badge span; SCM rows use it. | ui-pair of the SCM view |
+| M21 uplift | workbench/services/editor | later | M11 (vsrustium#59), about 85 lines (`editorResolverService`, `openWithEditorPicker`, `editorGroupsService`): `setDefaultEditor` takes an `associationPattern`, plus `onWillSetDefaultEditor`. The working-set and modal toolbar API has no non-AI caller yet. | `cargo test -p app editor_resolver` |
+| M21 uplift | workbench/services/views | later | M11 (vsrustium#59), 3 lines (`viewsService`): title actions are rebuilt once, not twice. | the existing view tests |
+| M21 uplift | platform/files | later | M12 (vsrustium#60), 225 lines (`diskFileSystemProvider`, `files`, `fileService`, `io`, `diskFileSystemProviderClient`): named pipes. A read waits for a writer and can be cancelled; it fails with "Named pipe has no data and no writer". A write with no reader fails at once with "Named pipe has no reader". Pipes get no retries and no fdatasync. `readFile` takes a cancellation token. | `cargo test -p files fifo` |
+| M21 uplift | workbench/contrib/files | later | M12 (vsrustium#60), 166 lines (`fileImportExport`, `explorerViewer`, `explorerView`, `newTabButtonActions`): when a dropped or moved folder already exists in the target, a dialog asks "A folder with the name '{0}' already exists... merge or replace it?" with Merge, Replace and Cancel. Merge recurses and replaces files; a move deletes the emptied source folders; symlinks are never merged. The Explorer header shows the workspace label without the location suffix. Waits for the files row to close on 1.147.0. | `cargo test -p app explorer merge_folders`; ui-pair of the dialog |
+| M21 uplift | workbench/contrib/bulkEdit | later | M12 (vsrustium#60), 13 lines (`bulkFileEdits`): deleting a folder that earlier deletes in the same edit emptied becomes its own step. | `cargo test -p app bulk_edit`; api-tests workspace applyEdit |
+| M21 uplift | mainthread/MainThreadWorkspace | later | M12 (vsrustium#60), 69 lines plus 61 of `vscode.proposed.workspaceFolderLocations.d.ts` and the extension host side that arrives with upstream: new `$getWorkspaceFolderLocations()`. The main thread answers by pushing `$acceptWorkspaceFolderLocations([{folder, locations}])` and pushes again when folders change. The only location provider in 1.148.0 is the agent host worktree contribution (removed), so each folder has only its primary location. `$updateWorkspaceFolders` passes `force`. The git extension enables the `workspaceFolderLocations` proposal (`platform/extensions`, 3 lines) and listens to it. | api-tests `vscode API - workspace`; the git integration run (port/results/scm.md) 91/2/0 as the reference |
+| M21 uplift | platform/workspace | later | M12 (vsrustium#60), 12 lines (`virtualWorkspace`, `browser/contextkeys.ts`): the `workspaceHasVirtualContent` context key. | `cargo test -p app context_keys` |
+| M21 uplift | workbench/services/workspaces | later | M12 (vsrustium#60), 190 lines (`abstractWorkspaceEditingService`, `workspaceEditing`): the `onWillRemoveFolders` veto ("Remove the folder '{0}'?", "Stop and Remove") and the options object `{donotNotifyError, force}`, in `workbench/workspace_editing.rs`. The task and debug vetoes use it. | `cargo test -p app workspace_editing` with a vetoing participant; ui-pair of the dialog with a running task |
+| M21 uplift | workbench/contrib/comments | later | M13 (vsrustium#61), about 300 lines (`commentFormActions`, `commentReply`, `commentNode`, `commentService`, `commentsController`, `commentCommandIds`, `commentsEditorContribution`, `languages.ts`): a controller's submit-thread button comes first in the reply form and is disabled while the reply is empty; the reply and edit editors measure their height again after a width change, the edit editor is the container width minus 14px; `.picker-only` reactions; the `commentsInput` scheme gets no commenting-range prefetch; `showRangeBar: false` hides the gutter range bar; Cmd+Esc moves to the new `workbench.action.collapseVisibleComments`, `hideComment` stays without a key. | `cargo test -p app comment`; ui-pair of thread editing |
+| M21 uplift | workbench/contrib/comments: floating style | later | M13 (vsrustium#61), 308 lines (`commentThreadFloatingWidget`, its layout, `commentThreadWidget`, `review.css`): width and placement changes of `comments.thread.experimental.style: floating`, which was not ported at 1.147.0 either; they go in with that gap. | the floating style's own check when it is ported |
+| M21 uplift | mainthread/MainThreadComments | later | M13 (vsrustium#61), 5 lines: the Comments view container registers once. | `cargo test -p app comment` |
+| M21 uplift | mainthread/MainThreadSCM and workbench/contrib/scm | later | M14 (vsrustium#63), about 360 lines (`mainThreadSCM`, `scm.ts`, `scmService`, `scmViewService`, `scmViewPane`, `scm.contribution`, `scm.css`, `quickDiffDecorator`, `vscode.proposed.scmProviderOptions.d.ts`, `extHost.protocol.ts`): new `$setSourceControlsHidden([handle, isHidden][])`, applied in order after each handle's registration as one view change; the git extension (`model.ts`, `workspaceFolderRepositories.ts`, 437 lines from the reference) uses `scmProviderOptions`' settable `isHidden` for hidden warm repositories. Repositories come and go from the view, the picker and the welcome as `isHidden` flips; a later-found repository keeps its earlier hidden state. Sort by path compares segment by segment. Show Structural Diff defaults to shown when `scm.structuralDiff.enabled` is on. Group count badges become circles with tabular numbers. The quick diff gutter hit area is only the bar width. | api-tests scm; `cargo test -p app scm quick_diff`; ui-pair of the SCM view; the git integration run |
+| M21 uplift | workbench/contrib/multiDiffEditor | later | M14 (vsrustium#63), 204 lines: `multiDiffEditor.experimental.fileList` is removed, the file list is always on unless the input says `showFileList: false`. Toggle Files becomes a split button (order 100001) with the new `MultiDiffEditorFileListToggle` menu (List/Tree, then Left/Right). The list no longer hides itself; the diffs shrink first. | ui-pair of the multi diff title bar; `cargo test -p app multi_diff` |
+| M21 uplift | extension/git | later | M14 (vsrustium#63), 18 lines of package.json that need the workbench: the stage, unstage and revert selected-ranges title actions use `!isInDiffLeftEditor`; the port sets neither diff-side key, so these buttons would show in every diff editor: set `isInDiffLeftEditor` and `isInDiffRightEditor`. `git.openMergeEditor` is in the palette when `git.activeResourceHasMergeConflicts`. A new "Opening the Git repository..." scm welcome shows while `git.openingLocation`. | `cargo test -p app scm` (diff-side keys); ui-pair of the diff editor title |
+| M21 uplift | workbench/contrib/codeEditor: terminal find | later | M15 (vsrustium#64), 64 lines (`simpleFindWidget.ts`): an incomplete count shows "N+", a provider status replaces the count, `canRetry` keeps next and previous enabled, there is no red outline while the count is incomplete, and late updates are dropped. | `cargo test -p app terminal_find` |
+| M21 uplift | workbench/contrib/terminal | later | M15 (vsrustium#64), 7 lines (`terminal.css`, `terminalTabbedView`): the tabs list gets 4px top padding. | ui-pair of the terminal tabs |
+| M21 uplift | workbench/contrib/tasks | later | M15 (vsrustium#64), 27 lines (`abstractTaskService`, `taskService`): the remove-folder veto for running tasks ("The task '{0}' is running."), on the workspace editing veto. | `cargo test -p app workspace_editing tasks` |
+| M21 uplift | workbench/contrib/debug | later | M16 (vsrustium#65), 198 lines (`repl`, `replCompletions`, `disassemblyView`, `debugService`, `debugUtils`): Debug Console completions honor DAP `start` and `length`, an item whose range is off the cursor line is dropped; multi-line history suggestions insert the rest of the entry; disassembly breakpoints are matched by address; the remove-folder veto ("A debug session is running."), on the workspace editing veto. | `cargo test -p app repl disassembly` (the replCompletions cases) |
+| M21 uplift | workbench/contrib/mediaPreview | later | M17 (vsrustium#66), 249 lines (`mediaPlayerEditorInput`, `mediaPlayerEditor.css`): the video player's fullscreen control opens the video in the modal editor; Escape returns it inline and playback continues. | ui-pair of the video in the modal |
+| M21 uplift | workbench/contrib/webview and webviewPanel | later | M17 (vsrustium#66), 42 lines (`webview`, `webviewElement`, `webviewMessages.d.ts`, `pre/index.html`, `webviewEditor`): `allowFullscreen` (iframe `allow=fullscreen`); unmounted frames stop loading; copy, cut and paste from a menu focus the webview first; a webview editor claims the webview only for its own group. | `port/tools/webview-check`; a copy from the Edit menu |
+| M21 uplift | extension/markdown-language-features | later | M17 (vsrustium#66), 99 lines: the new `markdown.editor.initialMode` (read or edit, default read) is read by the extension itself; `@vscode/markdown-editor` bump. | settings-check lists it; `FIXTURE=markdown-tests port/tools/webview-check` |
+| M21 uplift | workbench/contrib/extensions | later | M18 (vsrustium#67), about 129 lines (`extensions.contribution`, `extensionsCopyActions`, `extensionsActions`): Copy Link's `when` becomes `extensionHasGalleryLink` (set when the extension has a url), replacing `galleryHasExtensionLink`. The Manage gear in the extension editor hides when the ExtensionContext menu has nothing for the extension. | ui-pair of the extension editor header and context menu |
+| M21 uplift | platform/update | later | M19 (vsrustium#68), 11 lines (`update.config.contribution`): `update.enableEarlyStaging` (macOS, default false, experimental) is registered by the settings dump and has no effect on the port's GitHub-release updater. | settings-check |
| Later | Bun host size | later | Dropped from 57 to 41 MiB between milestones 1 and 2, not investigated (`port/results/benchmark.md` before the README benchmark, in git history). | |
| Later | Wu memory | later | Measured 99 MiB once and 154 to 156 MiB later, cause not investigated. | |
| Later | gpui-fast outer shadow clip | later | The shadow half of Wu's 471caaf3f25 is not ported: gpui-fast does not clip an outer shadow out of its element's border box, so `Shadow` (scene.rs) needs the element's bounds and corner radii, read by gpui_apple's and gpui_windows' shadow shaders (port/notes.md "GPUI on gpui-fast"). `corner_lab` stays within its thresholds without it. | `cargo test -p app corner_lab` |
diff --git a/port/ledger/done.md b/port/ledger/done.md
index fab44a3dc47..414598baf9c 100644
--- a/port/ledger/done.md
+++ b/port/ledger/done.md
@@ -9,7 +9,7 @@ The closed rows of the Work table of port/ledger.md; the status legend is there.
| Decisions (Artur) | Windows webview | done | WebView2 through webview2-com directly, not wry, as Linux uses webkit2gtk directly: the host page, resource scheme and message bridge stay in webview.rs, a thin `webview/windows.rs` beside `macos.rs` and `linux.rs`. | |
| Decisions (Artur) | Menu bar and keybinding tables | done | Milestone 24 builds the in-window menu bar and the per-platform keybinding mechanism (default tables, the `win` and `linux` rule keys, labels) with the Windows table; the Linux table is a hook the M23 owner fills; macOS and Linux behave as before until then. | |
| Decisions (Artur) | Windows updates | done | Windows updates start as a download link, as on Linux; the in-place update (`setup /verysilent /update`) is a later M24 row. | |
-| Decisions (Artur) | port built-in extensions | done | Built-ins upstream does not have, on by default and disabled like any built-in, each activated only when a file needs it: TOML (`tombi-toml.tombi`), path completion (`christian-kohler.path-intellisense`), Apache configuration (`vscrs.apache`, port/extensions) and .env variable completion (`vscrs.dotenv-intellisense`, port/extensions); port/notes.md "Built-in extensions of the port". | `bun test port/extensions` (6 pass); `port/tools/cargo-test -p app a_checkout_run_scans_the_port_extensions`; port/tools/ui-pair ONLY=port shots of the four completions (`<Dir` in .htaccess, `process.env.` in app.js, `ed` in Cargo.toml, `"./lib/` in app.js) |
+| Decisions (Artur) | port built-in extensions | done | Built-ins upstream does not have, on by default and disabled like any built-in, each activated only when a file needs it: TOML (`tombi-toml.tombi`), path completion (`christian-kohler.path-intellisense`), Apache configuration (`vsrustium.apache`, port/extensions) and .env variable completion (`vsrustium.dotenv-intellisense`, port/extensions); port/notes.md "Built-in extensions of the port". | `bun test port/extensions` (6 pass); `port/tools/cargo-test -p app a_checkout_run_scans_the_port_extensions`; port/tools/ui-pair ONLY=port shots of the four completions (`<Dir` in .htaccess, `process.env.` in app.js, `ed` in Cargo.toml, `"./lib/` in app.js) |
| Milestones | M1 extension host seam | done | Rust parent, upstream framing and RPC, Bun host, 30/30 built-ins activate. The session.rs fallback is audited per method (port/notes.md); observable methods are gap entries of their MainThread* rows. | `exthost-probe`, `port/results/benchmark.md` |
| Milestones | M2 empty workbench | done | Title bar, activity bar, letterpress, status bar in 3 themes. | `port/results/pixels.md` milestone 2 |
| Milestones | M3 open a folder | done | Explorer tree, folder in init data and `$initializeWorkspace`. | `port/results/pixels.md` milestone 3 |
@@ -33,7 +33,7 @@ The closed rows of the Work table of port/ledger.md; the status legend is there.
| Milestones | M20 multi-instance code editor | done | Upstream every diff side, multi diff file side, notebook cell and walkthrough snippet is its own CodeEditorWidget. The port keeps one focused code editor per group bound to `text_area`, `editor_focus`, the input handler and `editors.active()`, as upstream's one focused widget takes the keys; every other code editor of the group keeps its own viewport, text area cells, minimap layout and find widget (code_editors.rs `parked`, `finds`) and draws through `text_area` as an inactive group's editor, with its own hover, color decorators, bracket guides and overview ruler; a press focuses it, a wheel scrolls it. Through it: the diff editor's original side (focus, selection, find), the multi diff file sides (the modified side takes typing and undo, its diff follows), notebook cells and playground snippets. | `cargo test -p app -- a_file_side_is_a_code_editor every_drawn_file_side the_original_side_takes_the_focus_selection_and_find each_group_keeps_its_own_find_widget the_focused_cell_is_the_code_editor unfocused_cell unfocused_snippet the_host_sees_the_code_editors_of_the_rendered_cells part_view::`: 17 passed; port/notes.md milestone 20, Multi-instance code editor |
| Milestones | M22 split the port from the VS Code tree | done | Artur: `main` holds the Rust port only (`native/`, `port/`, the port's skills, README and licenses) and upstream VS Code is `upstream/` (ignored), checked out detached at the followed tag, never edited; an uplift moves it with `git -C upstream checkout <tag>`. Every build step and tool reads upstream from `upstream/` or the path in `VSCODE_SRC`. Decision (Artur): `main` kept its history: a fast-forward by the port's branch plus one commit that removes the VS Code tree; no orphan commit, no `git filter-repo`, no force-push. Port version: the followed VS Code version is `package.json`'s `version` in `VSCODE_SRC`, which `uplift-diff.ts` reads as its default `from` and package-app as its default `VERSION`; `VERSION` in main.rs (the API version extensions see) repeats it. | Steps 1 and 2 (branch `port-m22-split`): `VSCODE_SRC` resolved by `native/vscode_src.rs` (build scripts of app, diff, files; `env!("VSCODE_SRC")`), `port/tools/vscode-src.sh` and `port/tools/vscode-src.ts`; the dev app root is `VSCODE_SRC` (runtime env over the build's value), the host bundle stays in the checkout's `out-exthost/`; the upstream edits are `port/patches/src-*.patch` (build-exthost, on a copy in `out-exthost/build`) and `extensions-*.patch` (package-app), `port/product.json` is the overlay. Step 3 (branch `port-release`): one commit `git rm`s the VS Code tree (21458 files); `ThirdPartyNotices.txt` ships from `VSCODE_SRC`, `LICENSE.txt` from the repo root; `exthost`'s `proposed_api.rs`, `run-app-check`'s extensions default and the dev host's AMD modules (`build-exthost` links `node_modules` beside `out-exthost` to `VSCODE_SRC`'s) read `VSCODE_SRC`; a Studio mirror of a tree without `src/` links `upstream` to `~/Developer/vscode-ref` (`port/tools/studio`). Step 4: a clean clone builds, tests, packages and passes the full check (the README's Build section at 96b0e476067). `git ls-tree main` holds no upstream file. |
| Milestones | M26 GPUI on gpui-fast | done | Artur, 2026-12-01: the port's GPUI moved from Wu (dstrml/wu a3ced28) to gpui-fast (longbridge/gpui-fast f0a91cf952678e4d205da1ec189b6d134e975bcd, base zed a36d485, vendored in `native/vendor/gpui-fast`), a Zed GPUI fork whose Retained Mode redraws only the views that changed; `native/vendor/wu` is deleted. Reason, risks, sync, the gate's results and the open gaps (outer shadow clip, Linux `super-q`): port/notes.md "GPUI on gpui-fast". | All area tests and `port/tools/api-tests` green; `cargo test -p app corner_lab` within today's thresholds; a Retained Mode on/off differential test without differences; GUI: open a folder, edit, save, an extension (exthost handshake, emmet, git), a webview, a long list scroll, the terminal; `port/tools/bench` not worse than Wu in any column; `bun port/tools/ledger-check.ts` passes. Results: port/notes.md "GPUI on gpui-fast", "M26 gate". |
-| Milestones | M27 architecture deepening | done | vscrs#48. Artur, 2026-12-02: the six candidates of the architecture review, one per session and worktree, in the order 4, 1, 3, 5, 6, 2: one answer to who serves a MainThread call, one announcement of a model content change, one extension host start per window, editor options as a module, language feature registrations decoded once, one pass over the editors of every group (the swap of `with_group` stays, the multi-instance code editor builds on it). Every candidate is pixel-neutral and keeps the invariants of ARCHITECTURE.md; performance is M28. Plan, evidence and the picked interfaces of candidates 4 and 1: port/plans/architecture-deepening.md, removed after the milestone, in `git show 4fc0cf39e4e:port/plans/architecture-deepening.md`. Done: 4, 1, 3, 5, 6, 2 (port/notes.md "Architecture deepening"). Pixel-neutral, measured once over the six from `f4d6aabdf09` to the last candidate (port/notes.md "Architecture deepening"): `port/tools/pixel-check` gives identical port images in 36 of 40 window and theme pairs, the 4 `panel` ones differing only in the checkout path the terminal prompt prints; `port/tools/ui-pair` with ONLY=port over steps-params-actions, steps-color and steps-ghost gives identical images. Open from 6: the `$provide*` calls stay built by each feature (83 `"ExtHostLanguageFeatures"` sites), not in the language features module as the plan's goal says; its "Done when" holds. Open from 5: the editor options are read under the settings lock on every call, not once per settings change (the settings service has no change counter to key a cache on; the typing and scroll gates did not move); `language_setting`, `suggest_setting`, `editor_bool_setting` and the raw `get_value` reads of word wrap, folding, paste and comments still hold their own defaults outside `workbench/editor_options.rs`. | Each candidate's "Done when" of the plan holds; `port/tools/pixel-check` and the area's `port/tools/ui-pair` steps show no difference from the commit before each candidate; `bun port/tools/ledger-check.ts` passes. |
+| Milestones | M27 architecture deepening | done | vsrustium#48. Artur, 2026-12-02: the six candidates of the architecture review, one per session and worktree, in the order 4, 1, 3, 5, 6, 2: one answer to who serves a MainThread call, one announcement of a model content change, one extension host start per window, editor options as a module, language feature registrations decoded once, one pass over the editors of every group (the swap of `with_group` stays, the multi-instance code editor builds on it). Every candidate is pixel-neutral and keeps the invariants of ARCHITECTURE.md; performance is M28. Plan, evidence and the picked interfaces of candidates 4 and 1: port/plans/architecture-deepening.md, removed after the milestone, in `git show 4fc0cf39e4e:port/plans/architecture-deepening.md`. Done: 4, 1, 3, 5, 6, 2 (port/notes.md "Architecture deepening"). Pixel-neutral, measured once over the six from `f4d6aabdf09` to the last candidate (port/notes.md "Architecture deepening"): `port/tools/pixel-check` gives identical port images in 36 of 40 window and theme pairs, the 4 `panel` ones differing only in the checkout path the terminal prompt prints; `port/tools/ui-pair` with ONLY=port over steps-params-actions, steps-color and steps-ghost gives identical images. Open from 6: the `$provide*` calls stay built by each feature (83 `"ExtHostLanguageFeatures"` sites), not in the language features module as the plan's goal says; its "Done when" holds. Open from 5: the editor options are read under the settings lock on every call, not once per settings change (the settings service has no change counter to key a cache on; the typing and scroll gates did not move); `language_setting`, `suggest_setting`, `editor_bool_setting` and the raw `get_value` reads of word wrap, folding, paste and comments still hold their own defaults outside `workbench/editor_options.rs`. | Each candidate's "Done when" of the plan holds; `port/tools/pixel-check` and the area's `port/tools/ui-pair` steps show no difference from the commit before each candidate; `bun port/tools/ledger-check.ts` passes. |
| M23 Linux | app/src/webview/linux.rs:66 | done | [linux L] webviews through WebKitGTK: webview panels and views, editor insets, notebook outputs, extension details, release notes. | `FIXTURE=webview-tests port/tools/linux/smoke` on X11 (Xvfb): 10/10 ok; `cargo gc test -p app webview` on Linux: 19 passed |
| M23 Linux | exthost/src/main_thread_secret_state.rs:46 | done | [linux M] secrets in the Secret Service (libsecret). | `cargo test -p exthost secret` on Linux: `secrets_in_a_keyring` (oo7's file backend); a desktop Secret Service not run |
| M23 Linux | app/src/workbench/themes.rs:47 | done | [linux S] host color scheme and high contrast from the xdg-desktop-portal Settings. | GPUI's `window_appearance()`, which gpui_linux reads from the portal's `color-scheme`; high contrast stays off, as Chromium on Linux |
@@ -51,7 +51,7 @@ The closed rows of the Work table of port/ledger.md; the status legend is there.
| M23 Linux | app/src/update/install.rs:51 | done | [linux M] updates as a download link (no in-place install). | `cargo test -p app update::` on Linux: `an_update_found_on_linux_waits_and_download_opens_its_link` |
| M23 Linux | app/src/diagnostics.rs:308 | done | [linux S] machine info from `/proc` (CPU model, memory, release). | `cargo test -p app diagnostics` on Linux: `linux_machine_reads_proc` |
| M23 Linux | .github/workflows/linux.yml:1 | done | [linux S] move actions/checkout, actions/setup-node and actions/upload-artifact from v4 to their Node 24 majors (pinned by SHA). | checkout v7.0.1, setup-node v7.1.0, upload-artifact v7.0.2 by SHA; the workflow not run yet |
-| M23 Linux | port/tools/package-linux:1 | done | [linux M] Linux builds of the host's native modules (@vscode/spdlog, kerberos): package-linux rebuilds them with node-gyp; a dev run in the Studio container still loads the reference's macOS builds (its pnpm install ran on macOS), a Linux install of upstream builds them for Linux. | the extracted `Vscrs-1.147.0-linux-arm64.tar.gz` writes `logs/<session>/window1/exthost/exthost.log` (spdlog) and passes `port/tools/linux/smoke` |
+| M23 Linux | port/tools/package-linux:1 | done | [linux M] Linux builds of the host's native modules (@vscode/spdlog, kerberos): package-linux rebuilds them with node-gyp; a dev run in the Studio container still loads the reference's macOS builds (its pnpm install ran on macOS), a Linux install of upstream builds them for Linux. | the extracted `VSRustium-1.147.0-linux-arm64.tar.gz` writes `logs/<session>/window1/exthost/exthost.log` (spdlog) and passes `port/tools/linux/smoke` |
| M24 Windows | port/tools/windows-build:1 | done | [windows M] cross build on the Studio: `cargo gc xwin` with Homebrew llvm and lld on PATH, for `x86_64-pc-windows-msvc` and `aarch64-pc-windows-msvc`; the Unix-only std and libc calls (files/src/disk.rs:58, exthost/src/lib.rs:31, app/src/cli.rs:7, app/src/launch.rs:5, app/src/shell_env.rs:5, app/src/update/install.rs:39) behind `cfg(unix)` with a Windows counterpart or an M24 row naming what Windows shows meanwhile. The app's tests build for Windows: the tests that lock files or folders through Unix modes or make symlinks are `cfg(unix)` (their Windows counterparts are the files/src/disk.rs:58 row). | `port/tools/windows-build 'cargo gc xwin build --bins --tests -p app --target x86_64-pc-windows-msvc'` and the same for `aarch64-pc-windows-msvc` exit 0 |
| M21 uplift | setup: reference | done | On the Studio: `~/Developer/vscode-ref-1.148.0`, an APFS copy (`cp -c`) of `~/Developer/vscode-ref` checked out at `1.148.0`, `pnpm install` and `pnpm run compile` (it and its extensions, port/notes.md "Reference"), then `port/tools/fetch-builtin-extensions`. `~/Developer/vscode-ref` stays at 1.147.0 while milestones 16 and 20 verify against it; the reference tools take the new one through `REF` (and `VSCODE_GPUI_EXTENSIONS` where they default to the old one's extensions). The GUI VMs share only `~/Developer/vscode-ref`, so 1.148.0 GUI runs need the host lane. | `~/Developer/vscode-ref-1.148.0/package.json` names 1.148.0; `REF=~/Developer/vscode-ref-1.148.0 port/tools/ref-screenshot /tmp/m21-ref dark` draws the empty workbench (2026-12-01) |
| M21 uplift | setup: upstream checkout | done | `upstream/` checked out at `1.148.0` (1.148.0 is not a descendant of 1.147.0: each release is its own branch; `GIT_LFS_SKIP_SMUDGE=1`, the LFS files are Copilot test caches); the Studio mirror links it to `~/Developer/vscode-ref-1.148.0`. 1.148.0 does not change the files that the 8 `port/patches/*.patch` and the `product.json` overlay touch (`git diff 1.147.0 1.148.0` of them is empty). Extension host rebuilt. | `git -C upstream apply --check port/patches/*.patch`: all 8 apply; `port/tools/build-exthost`: 683 modules bundled (2026-12-01) |
diff --git a/port/ledger/units/extensions.md b/port/ledger/units/extensions.md
index 46bd5ceea37..1c9de8e3391 100644
--- a/port/ledger/units/extensions.md
+++ b/port/ledger/units/extensions.md
@@ -7,7 +7,7 @@ Part of the Units table, generated by `bun port/tools/gen-ledger.ts`; the status
| extension/bat | built-in extension | M7 | verified | | grammar: cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (its colorize-tests fixtures, scopes and 10 default theme colors) |
| extension/clojure | built-in extension | M7 | verified | | grammar: cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (its colorize-tests fixtures, scopes and 10 default theme colors) |
| extension/coffeescript | built-in extension | M7 | verified | | grammar: cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (its colorize-tests fixtures, scopes and 10 default theme colors) |
-| extension/configuration-editing | built-in extension | M10 | verified | | port/tools/extension-tests configuration-editing: 18 passing, 0 failing (its completion.test.ts suites for settings, extensions, launch, tasks and keybindings json, and the gist handler cases), with .build/builtInExtensions from port/tools/fetch-builtin-extensions (js-debug is a recommendation the extensions.json cases expect); needs `_executeCompletionItemProvider` and `_executeLinkProvider` with cancellation tokens, `$acceptLanguageIds` (getLanguages), `getContextKeyInfo` (the reference's RawContextKey.all() from port/tools/ref-commands) and a development copy of a built-in staying built-in (@vscode/internal-github's allowlist); its jsonValidation (plus `/.vscrs/*.json`, port decision) maps settings, launch, tasks, mcp and extensions files to the vscode:// schemas |
+| extension/configuration-editing | built-in extension | M10 | verified | | port/tools/extension-tests configuration-editing: 18 passing, 0 failing (its completion.test.ts suites for settings, extensions, launch, tasks and keybindings json, and the gist handler cases), with .build/builtInExtensions from port/tools/fetch-builtin-extensions (js-debug is a recommendation the extensions.json cases expect); needs `_executeCompletionItemProvider` and `_executeLinkProvider` with cancellation tokens, `$acceptLanguageIds` (getLanguages), `getContextKeyInfo` (the reference's RawContextKey.all() from port/tools/ref-commands) and a development copy of a built-in staying built-in (@vscode/internal-github's allowlist); its jsonValidation (plus `/.vsrustium/*.json`, port decision) maps settings, launch, tasks, mcp and extensions files to the vscode:// schemas |
| extension/copilot | built-in extension | | removed | | scan.rs REMOVED_BUILTINS; cargo test -p exthost skips_removed_builtins |
| extension/cpp | built-in extension | M7 | verified | | grammar: cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (its colorize-tests fixtures, scopes and 10 default theme colors) |
| extension/csharp | built-in extension | M7 | verified | | grammar: cargo test -p app syntax::tests::colorize_fixtures_match_the_reference (its colorize-tests fixtures, scopes and 10 default theme colors) |
diff --git a/port/ledger/units/platform.md b/port/ledger/units/platform.md
index fa72806ac3a..992df8c34fb 100644
--- a/port/ledger/units/platform.md
+++ b/port/ledger/units/platform.md
@@ -77,7 +77,7 @@ Part of the Units table, generated by `bun port/tools/gen-ledger.ts`; the status
| platform/opener | src/vs/platform | M12 | verified | | workbench/opener.rs (openerService.ts open: contributed external openers, validators, folder, url, external, command, editor openers; extractSelection); cargo test -p app opener; verified at port-m12b-verify: cargo test -p app opener 4/4 |
| platform/otel | src/vs/platform | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |
| platform/path | src/vs/platform | M12 | verified | | the IPathService interface; see workbench/services/path; verified at port-m12b-verify: cargo test -p app validates_file_names 1/1 |
-| platform/policy | src/vs/platform | M10 | verified | | filePolicyService.ts and the policy layer of configurations.ts / configurationModels.ts as config/src/policy.rs with policy.test.ts and policyConfiguration.test.ts cases (cargo test -p config policy); nativePolicyService.ts with @vscode/policy-watcher's macOS side as app/src/policy.rs: CFPreferences of com.rokartur.vscrs by the setting's type and an FSEvents stream on /Library/Managed Preferences/ that reads them again, applied live as a configuration change (cargo test -p app policy: the typed reads and a change reported under a folder created after the watch began); the Settings editor shows "Managed by your organization" and `@hasPolicy` (cargo test -p app settings_editor); the managed settings services (copilotManagedSettings.ts, file and native managed settings) are Copilot's (removed); no Windows or Linux native policies (macOS only) |
+| platform/policy | src/vs/platform | M10 | verified | | filePolicyService.ts and the policy layer of configurations.ts / configurationModels.ts as config/src/policy.rs with policy.test.ts and policyConfiguration.test.ts cases (cargo test -p config policy); nativePolicyService.ts with @vscode/policy-watcher's macOS side as app/src/policy.rs: CFPreferences of com.rokartur.vsrustium by the setting's type and an FSEvents stream on /Library/Managed Preferences/ that reads them again, applied live as a configuration change (cargo test -p app policy: the typed reads and a change reported under a folder created after the watch began); the Settings editor shows "Managed by your organization" and `@hasPolicy` (cargo test -p app settings_editor); the managed settings services (copilotManagedSettings.ts, file and native managed settings) are Copilot's (removed); no Windows or Linux native policies (macOS only) |
| platform/process | src/vs/platform | M15 | n/a | | `IProcessService` is the Electron main-process IPC service behind the process explorer (`processMainService.ts` delegates to diagnostics and base/node/ps.ts); the port has one process, its process explorer (section 19, `workbench/contrib/processExplorer`) lists processes directly |
| platform/product | src/vs/platform | M19 | verified | | product.rs: product.json and package.json's version, read once; port/tools/shell-check (port/fixtures/extensions/shell-tests, 6/6): env.appName, env.uriScheme and vscode.version equal product.json nameLong, urlProtocol and the version; cargo test -p app product |
| platform/profiling | src/vs/platform | M19 | n/a | | V8 inspector CPU profiles of the Electron renderer (windowProfiling.ts, rendererAutoProfiler.ts) and their analysis worker, which feeds only telemetry (profilingTelemetrySpec.ts); the workbench is a native process, profiled with Instruments, and no telemetry by decision; the extension host profile commands belong to workbench/contrib/extensions |
diff --git a/port/ledger/units/workbench-contrib.md b/port/ledger/units/workbench-contrib.md
index 67b520a5084..b3ed96e2660 100644
--- a/port/ledger/units/workbench-contrib.md
+++ b/port/ledger/units/workbench-contrib.md
@@ -66,7 +66,7 @@ Part of the Units table, generated by `bun port/tools/gen-ledger.ts`; the status
| workbench/contrib/performance | workbench contribution | M19 | verified | | Developer: Startup Performance (perf_view.rs, perfviewEditor.ts): System Info, Performance Marks from the timer service, Extension Activation Stats, Raw Perf Marks of the renderer and localExtHost; inputLatencyContrib, startupTimings and the auto profilers only report telemetry or take V8 profiles (no telemetry by decision, platform/profiling n/a); cargo test -p app timer:: perf_view; System Info takes the CPU speed and VM likelihood as Node's `os` reports them and no process memory, which 1.147 turns off (cargo test -p app the_system_info_lists apple_silicon_reports_libuvs_fallback_cpu_speed) |
| workbench/contrib/policyExport | workbench contribution | M10 | removed | | build tool: `--export-policy-data` writes the policy definitions that upstream's build turns into ADMX and macOS profiles; the port ships no policy templates |
| workbench/contrib/preferences | workbench contribution | M10 | verified | | settings_editor.rs, workbench/settings_editor_view.rs, workbench/keybindings_editor_view.rs, workbench/define_keybinding.rs, smart_snippet_inserter.rs, workbench/preferences/unsupported_settings.rs: cargo test -p app settings_editor keybindings_editor_view define_keybinding smart_snippet_inserter preferences unsupported_settings a_policy_setting_disables_its_select_and_its_hover_applies_the_policy_filter the_lang_filter_shows_the_language_block_value descriptions_render_emphasis_lists_and_setting_links an_extension_source_opens_the_extension the_editor_hover_shows_the_message_of_a_marked_key; ui-pair port/results/settings-editor.md, port/results/keybindings-editor.md. keyboardLayoutPicker.ts n/a (web only) |
-| workbench/contrib/processExplorer | workbench contribution | M19 | verified | | workbench/process_explorer.rs on ps.rs: Open Process Explorer (Developer and Help menu) in a floating window (no auxiliary editor windows in the port), the tree under the app's pid refreshed after each listing, Kill/Force Kill/Copy/Copy All, Debug for `isDebuggable` processes through `debug.startFromConfig` with `attachTo`'s port or pid (cargo test -p app a_node_process_gets_debug), Alt+E, bounds stored; port/tools/shell-gui-check (Help > Open Process Explorer: window "Process Explorer", AXOutline with the vscrs root and the extension host rows); cargo test -p app process_explorer ps::; scrollbars: cargo test -p app the_views_and_pages_draw_their_bodies_in_a_scrollable (process-explorer through Workbench::scrollable) |
+| workbench/contrib/processExplorer | workbench contribution | M19 | verified | | workbench/process_explorer.rs on ps.rs: Open Process Explorer (Developer and Help menu) in a floating window (no auxiliary editor windows in the port), the tree under the app's pid refreshed after each listing, Kill/Force Kill/Copy/Copy All, Debug for `isDebuggable` processes through `debug.startFromConfig` with `attachTo`'s port or pid (cargo test -p app a_node_process_gets_debug), Alt+E, bounds stored; port/tools/shell-gui-check (Help > Open Process Explorer: window "Process Explorer", AXOutline with the vsrustium root and the extension host rows); cargo test -p app process_explorer ps::; scrollbars: cargo test -p app the_views_and_pages_draw_their_bodies_in_a_scrollable (process-explorer through Workbench::scrollable) |
| workbench/contrib/quickaccess | workbench contribution | M9 | verified | | commandsQuickAccess.ts as quick_access.rs and command_palette.rs; helpQuickAccess `?` with the providers the port has and the More help pick (cargo test -p app quick_access command_palette tf_idf title_bar), history in profile storage; the workbench's palette items are the reference's, listed when the port registers their command; viewQuickAccess.ts as quick_access/views.rs: `view `, Open View, Quick Open View (Ctrl+Q) and `inViewsPicker` list the side bar, panel and secondary side bar containers, their views under `Parent / Child` separators, the terminals, the separate debug consoles and the output channels; Ctrl+Q again moves to the next pick and releasing Ctrl opens it (quickInput.ts `quickNavigate`) (quick_access::tests::the_view_picker_groups_views_by_container_and_opens_the_pick) |
| workbench/contrib/relauncher | workbench contribution | M19 | verified | | workbench/relauncher.rs: SettingsChangeRelauncher's macOS settings (chat and agent host ones left out with AI) ask to restart, Restart relaunches with the same arguments, a changed default (`ConfigurationTarget.DEFAULT`) takes the new value without asking; port/tools/shell-gui-check (window.nativeTabs changed in settings.json: prompt shown, old process quit, 1 new process); cargo test -p app relauncher a_changed_default_does_not_ask_to_restart |
| workbench/contrib/remote | workbench contribution | | removed | | no remote or tunnels by decision (port/notes.md); one local extension host |
diff --git a/port/ledger/units/workbench-services.md b/port/ledger/units/workbench-services.md
index c6b7f5e25b0..021b7bd3f13 100644
--- a/port/ledger/units/workbench-services.md
+++ b/port/ledger/units/workbench-services.md
@@ -16,7 +16,7 @@ Part of the Units table, generated by `bun port/tools/gen-ledger.ts`; the status
| workbench/services/assignment | workbench service | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |
| workbench/services/authentication | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/services/auxiliaryWindow | workbench service | M11 | verified | | Move/Copy Editor and Editor Group into New Window, New Empty Editor Window, Restore Editors into Main Window, the editor window's part, title and editor status bar, keys, focus and overlays in it, close moving dirty editors to the main window, `editorparts.state` restore; ui-pair port/results/auxiliary-windows.md, cargo test -p app auxiliary_windows; compact mode (no tabs, breadcrumbs or status bar, splits to the main part, ends on a second editor, stored): ui-pair editor-window-compact-lock.json in the same results file |
-| workbench/services/banner | workbench service | M11 | verified | | its items: Restricted Mode (workspace_trust_view.rs) and the installation folder warning of window.ts (a folder inside Vscrs.app). `cargo test -p app banner workspace_trust`; verified: ui-pair banner.json vs the reference (port/results/windows.md, milestone 11 verification) |
+| workbench/services/banner | workbench service | M11 | verified | | its items: Restricted Mode (workspace_trust_view.rs) and the installation folder warning of window.ts (a folder inside VSRustium.app). `cargo test -p app banner workspace_trust`; verified: ui-pair banner.json vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/services/browserView | workbench service | M17 | removed | | Artur: the integrated browser of 1.147 (WebContentsView, CDP proxy, Playwright, chat tools) serves the agent; Simple Browser stays on a webview panel |
| workbench/services/chat | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/services/checksum | workbench service | M18 | n/a | | IPC client of platform/checksum, which only integrityService uses |
@@ -33,7 +33,7 @@ Part of the Units table, generated by `bun port/tools/gen-ledger.ts`; the status
| workbench/services/encryption | workbench service | M10 | removed | | proxy of platform/encryption, removed with it |
| workbench/services/environment | workbench service | M10 | verified | | the workbench environment's paths and args as init data and app paths (platform/environment row): port/tools/settings-check environment; environmentService.test.ts reads the browser workbench's URL options (web only); copilotHomeService removed by decision (no AI) |
| workbench/services/extensionManagement | workbench service | M18 | verified | | installVSIX, install from Open VSX, uninstall, Install from VSIX and their errors: PORT_GALLERY=1 port/tools/extensions-check 6 ok; dependencies and pack members of a gallery or VSIX install queued before it: cargo test -p app workbench::extension_management::tests; enablement: cargo test -p app extension_enablement; trusted publishers (`checkForTrustedPublishers` before a gallery install, `extensions.trustedPublishers`, product.json `trustedExtensionPublishers`, Manage Trusted Extension Publishers: workbench/trusted_publishers.rs, cargo test -p app trusted_publishers; ui-pair port/fixtures/ui-steps/trusted-publisher.json against REF=~/Developer/vscode-ref-openvsx: the "Do you trust the publisher "MS-CEINTL"?" dialog matches, 3% of the dialog crop off where the product name rewraps the text) |
-| workbench/services/extensionRecommendations | workbench service | M18 | verified | | workspaceExtensionsConfig.ts from `.vscode/` and `.vscrs/` (`.vscrs/` wins per key), ignored recommendations: cargo test -p app recommendation; ui-pair port/fixtures/extensions/ui-recommendations.json |
+| workbench/services/extensionRecommendations | workbench service | M18 | verified | | workspaceExtensionsConfig.ts from `.vscode/` and `.vsrustium/` (`.vsrustium/` wins per key), ignored recommendations: cargo test -p app recommendation; ui-pair port/fixtures/extensions/ui-recommendations.json |
| workbench/services/extensions | workbench service | M18 | verified | | extensionsProposedApi.ts `enabledApiProposals` filtering with product.json's allow-list and `--enable-proposed-api`, one policy per window (cargo test -p exthost proposed_api, cargo test -p app a_host_restart_gives_the_extensions); `_deltaExtensions` with `_activateAddedExtensionIfNeeded` and configuration defaults: port/tools/extensions-check, exthost-probe --install-vsix/--uninstall; other extension points the workbench reads (icon themes, static status bar items) are read at startup only; extension_host_restart.rs `stopExtensionHosts`: the `onWillStop` vetoes of a debug session, an editable custom editor, a custom text editor and a notebook that does not save, then Please confirm restart of extensions with Restart Anyway: cargo test -p app a_debug_session_vetoes_the_restart_until_confirmed, ui-pair of Restart Extension Host over a dirty a.cdoc (custom-document-tests) |
| workbench/services/files | workbench service | M12 | verified | | the disk provider and watcher client run in process: native/crates/files (disk provider, FSEvents watcher, cargo test -p files); elevatedFileService.ts writeElevated is text_files.rs write_elevated of milestone 8 (port-integrate); verified: api-tests MOCHA_GREP="vscode API - (workspace|file system|env|types|tasks)" at 44a309311e1: every workspace, workspace-fs, workspace events, workspace-watcher and file system test passes, api-workspace 4/0/0 (port/results/api-tests.md "M12 verification"), workspace-fs and file system |
| workbench/services/filesConfiguration | workbench service | M8 | verified | | workbench/readonly.rs, workbench/auto_save.rs: cargo test -p app readonly update_readonly_notifies_only_when_the_session_override_changes auto_save; ui-pair ro.txt (port/notes.md milestone 8). Removed with their callers (chat, inline chat, issue reporter): `updateReadonly` with a custom reason or a resource array |
@@ -51,7 +51,7 @@ Part of the Units table, generated by `bun port/tools/gen-ledger.ts`; the status
| workbench/services/layout | workbench service | M11 | verified | | workbench/layout.rs, zen_mode.rs, centered_layout.rs, workbench/customize_layout.rs, workbench/panel.rs, workbench/part_navigation.rs: cargo test -p app -- layout part_grid centered_layout zen_mode customize_layout toggling_the_activity_bar maximizing_the_secondary_side_bar_hides_the_other_parts_and_restore_brings_them_back show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own f6_walks_the_visible_parts f6_in_an_editor_window_reaches_its_own_status_bar; ui-pair m11/manage-menu.json (port/results/manage-menu.md), layout-positions.json and layout-zen.json with `zenMode.fullScreen` off (port/results/layout.md); cargo test -p app in_tab_focus_mode_tab_leaves_the_terminal activity_item hover:: action_bar part_navigation tab_; cargo test -p app part_view:: (the secondary side bar a cached part view; a_focused_unchecked_activity_item_draws_in_the_activity_bar_foreground) |
| workbench/services/lifecycle | workbench service | M11 | verified | | workbench/lifecycle.rs, workbench/unattended_restart.rs, update/unattended_restart.rs, windows_state.rs: cargo test -p app lifecycle backup_tracker unattended_restart update::unattended_restart windows_state blockers_name_the_editor_kind_and_the_window_that_does_not_come_back a_background_job_is_a_child_process_of_the_shell (unattendedRestart, terminalUnattendedRestart, testingUnattendedRestart, unattendedRestartScheduler without its telemetry outcomes, workingCopyBackupTracker tests); ui-pair hot-exit.json `dirty`, `restored` (port/results/windows.md, milestone 11 verification). No phases or onWillShutdown joiners |
| workbench/services/localTranscription | workbench service | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert |
-| workbench/services/localization | workbench service | M18 | verified | | ui-pair port/fixtures/extensions/ui-display-language.json: picking Deutsch installs MS-CEINTL.vscode-language-pack-de with the "Installing Deutsch language support..." progress and asks "Restart Vscrs to switch to Deutsch?"; localeService.ts: argv.json `locale` written and cleared, restart dialog, install of an MS-CEINTL pack: cargo test -p app nls localization; Command Palette titles, categories and descriptions translate by the reference call's module and key (port/tools/ref-commands with ref-nls-clone.ts; cargo test -p app a_palette_title_two_modules), menu bar items, side bar titles and pane headers by the reference's `nlsKeys` per menu, view and container (cargo test -p app menu_bar_items_and_view_titles_resolve_per_scope); other surfaces stay English (port/notes.md) |
+| workbench/services/localization | workbench service | M18 | verified | | ui-pair port/fixtures/extensions/ui-display-language.json: picking Deutsch installs MS-CEINTL.vscode-language-pack-de with the "Installing Deutsch language support..." progress and asks "Restart VSRustium to switch to Deutsch?"; localeService.ts: argv.json `locale` written and cleared, restart dialog, install of an MS-CEINTL pack: cargo test -p app nls localization; Command Palette titles, categories and descriptions translate by the reference call's module and key (port/tools/ref-commands with ref-nls-clone.ts; cargo test -p app a_palette_title_two_modules), menu bar items, side bar titles and pane headers by the reference's `nlsKeys` per menu, view and container (cargo test -p app menu_bar_items_and_view_titles_resolve_per_scope); other surfaces stay English (port/notes.md) |
| workbench/services/log | workbench service | M6 | verified | | output/log_levels.rs: defaultLogLevels.ts argv.json `log-level` read and write, `getDefaultLogLevel`, `parseLogLevel`; logs_actions.rs `setDefaultLogLevel` (cargo test -p app set_default_log_level_writes_argv, reads_and_writes_argv_log_levels); the Window log as logConstants.ts `windowLogId`; electron-browser logService.ts in a test run: the host console reaches stdout/stderr through the session; output/log_levels.rs: defaultLogLevels.ts argv.json `log-level` read and write, `getDefaultLogLevel`, `parseLogLevel`; logs_actions.rs `setDefaultLogLevel` (cargo test -p app set_default_log_level_writes_argv, reads_and_writes_argv_log_levels); the Window log as logConstants.ts `windowLogId` |
| workbench/services/mcp | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/services/menubar | workbench service | M9 | verified | | menubar.rs Workbench::menubar: MenubarMainMenu as menubarControl.ts sends it, rebuilt when when/enablement change; labels, separators, submenus (Appearance, Activity Bar Position, Themes), checked and enabled state match the 1.147.0 `IMenubarData` dump (menubar/reference-empty.json, reference-file.json) for every item whose command the port has: cargo test -p app menubar, 12 passed (port/results/menubar.md); menubar.rs Workbench::menubar: MenubarMainMenu as menubarControl.ts sends it, rebuilt when when/enablement change; enablement matches the reference in the empty, folder and file windows (port/results/menubar.md) |
diff --git a/port/notes.md b/port/notes.md
index 462f3387510..8b6c7ac9801 100644
--- a/port/notes.md
+++ b/port/notes.md
@@ -151,7 +151,7 @@ Done when: api-tests `configuration.test` and `state.test` pass as in the refere
- `native/crates/config` ports the JSONC scanner and parser (`json.ts`, byte offsets), `jsonEdit.ts` (writes keep comments and layout), `ConfigurationModel` and `Configuration` with language overrides, the configuration registry with scopes and `[lang]` defaults, and the write path of `configurationEditing.ts` with its error messages. Core settings come from `core-settings.json`, dumped once from the reference's registry by `port/tools/dump-settings` (1506 settings, 1.7 MB embedded); extension settings come from each `contributes.configuration`. `[plaintext]`, `[go]`, `[makefile]`, `[shellscript]` and `[yaml]` defaults are added by hand from `modesRegistry.ts`.
- `MainThreadConfiguration` (`exthost/src/main_thread_configuration.rs`) serves updates and removals and sends `$acceptConfigurationChanged` before the reply, as upstream's change event fires before the update resolves. `settings.json` files are polled every 100 ms by mtime and size (upstream batches watcher events by 100 ms) instead of an FSEvents watcher, which comes with milestone 12. The poll runs in the workbench (`workbench/configuration.rs`), so one change reaches the extension host (`$acceptConfigurationChanged`), the color theme and the indentation of open models, in that order.
- The workbench reads `workbench.colorTheme` and the editor indentation (`editor.tabSize`, `editor.insertSpaces`, `editor.detectIndentation`, per language) from the same model. The default theme is now the reference's default, Dark 2026; pixel-check passes `--theme`, so its windows are unchanged.
-- Policies (`config/src/policy.rs`, `app/src/policy.rs`): the policy layer is built from the registered settings with a `policy` (and `registry.excluded` ones) as `PolicyConfiguration` does; it overrides every other layer, reaches the host in init data and blocks writes with upstream's "Unable to write ... system policy" error. Values come from CFPreferences of `com.rokartur.vscrs` on macOS (`defaults write com.rokartur.vscrs UpdateMode -string none`, or a configuration profile) as upstream's main.ts picks NativePolicyService there; `policy::read_policy_file` ports FilePolicyService for Linux's `/etc/vscode/policy.json`, read and watched (files watcher on `/etc/vscode`) by the Linux build. Live updates follow @vscode/policy-watcher's macOS side: an FSEvents stream on `/Library/Managed Preferences/` (1 second latency, on its own dispatch queue, watching the folder even before it exists) reads every policy again, and the workbench applies a changed policy layer as a configuration change (`policy::watch_policy_changes`, `workbench/configuration.rs` `watch_policies`). As upstream, a plain `defaults write` reaches a running window only with the next managed preferences change or a restart.
+- Policies (`config/src/policy.rs`, `app/src/policy.rs`): the policy layer is built from the registered settings with a `policy` (and `registry.excluded` ones) as `PolicyConfiguration` does; it overrides every other layer, reaches the host in init data and blocks writes with upstream's "Unable to write ... system policy" error. Values come from CFPreferences of `com.rokartur.vsrustium` on macOS (`defaults write com.rokartur.vsrustium UpdateMode -string none`, or a configuration profile) as upstream's main.ts picks NativePolicyService there; `policy::read_policy_file` ports FilePolicyService for Linux's `/etc/vscode/policy.json`, read and watched (files watcher on `/etc/vscode`) by the Linux build. Live updates follow @vscode/policy-watcher's macOS side: an FSEvents stream on `/Library/Managed Preferences/` (1 second latency, on its own dispatch queue, watching the folder even before it exists) reads every policy again, and the workbench applies a changed policy layer as a configuration change (`policy::watch_policy_changes`, `workbench/configuration.rs` `watch_policies`). As upstream, a plain `defaults write` reaches a running window only with the next managed preferences change or a restart.
- Variables (`config/src/variables.rs`, `workbench/configuration_resolver.rs`): `${workspaceFolder}`, `${file}`, `${env:}`, `${config:}` and the rest of variableResolver.ts, used by findInFiles and the search editor commands. The interactive part of baseConfigurationResolverService.ts (`resolveWithInteraction`, `showUserInput`) is `workbench/configuration_resolver.rs`: `${command:}` runs its command (through a debugger's `variables`) with the configuration resolved so far, `${input:}` asks with a `promptString` input box, a `pickString` pick (default first with "(Default)", `label: value` items) or a `command` input, keeps the last values in `configResolveInputLru` (workspace storage, 5 entries) and a cancel stops the whole flow. Tasks (`task_service.rs` `start_task`, terminalTaskSystem.ts `_acquireInput`: the command line, or a custom execution's definition, with the `inputs` of the folder's tasks.json) and launch configurations (`debug_service.rs`, `launch` inputs) both use it.
- No remote or in-memory configuration layers: init data sends them empty, in upstream's shape.
- `native/crates/storage` ports `SQLiteStorageDatabase` on rusqlite with upstream's `ItemTable`, the integrity check, the `.backup` file and recovery from it, and the in-memory cache that rebuilds a database corrupted at runtime. Writes are synchronous instead of flushed every 100 ms. Extension tests run on in-memory storage, as `storageMainService.ts` does for them.
@@ -168,7 +168,7 @@ Done when: api-tests `configuration.test` and `state.test` pass as in the refere
- Not drawn: the Apply to all profiles action (profiles are item 3) and the Sync ignore actions (no sync by decision).
- `UnsupportedSettingsRenderer` (`workbench/preferences/unsupported_settings.rs`): every open user, workspace, workspace-file or folder settings file gets hint markers 200 ms after a change, through the marker service: Unknown Configuration Setting, a non-overridable setting in a `[language]` block, application and machine scopes outside user settings, window scope in a folder, preview and experimental, and the system policy hint (`handlePolicyConfiguration`), and in an untrusted workspace a warning on restricted workspace settings with a Manage Workspace Trust quick fix. No remote settings markers: remote windows are removed (Artur's decision above).
- Settings schemas: `config::json_schema::settings_schemas` builds the `vscode://schemas/settings/*` schemas of `registerConfigurationSchemas` (configurationService.ts) from the registry, compressed with `getCompressedContent`; the extension host serves them and `vscode://schemas-associations/schemas-associations.json` through a read-only `vscode` file system (`exthost/src/settings_file_system.rs`, as settingsFilesystemProvider.ts), which json-language-features reads. Each registered language gets its `[lang]` property (`registerOverrideIdentifiers`). `port/tools/settings-check preferences` diffs the default settings and keybindings documents and the schema keys against the reference; its header lists the known differences. The schemas those `$ref` (workbench-colors, token-styling, textmate-colors, size-customizations, launch) are dumped from the reference by port/tools/dump-settings into native/crates/config/schemas (shortcut: an installed extension's colors and debuggers are missing until those registries are ported).
-- Port decision (not upstream behavior): a workspace folder's configuration lives in both `.vscode/` and `.vscrs/`. `config::service` reads settings.json, tasks.json, launch.json and mcp.json from both and `.vscrs/` wins per key (`FOLDER_CONFIG_DIRS`); both are watched. Writes (workspace and folder settings, Open Workspace Settings (JSON), language overrides, tasks and launch edits) go to `.vscrs/` when that folder exists, else `.vscode/` (`folder_config_dir`). configuration-editing's `jsonValidation` maps `/.vscrs/{settings,launch,tasks,mcp,extensions}.json` to the same schemas, and both folders are always UTF-8. The user data dir move to `~/.vscrs/` is done on integrate.
+- Port decision (not upstream behavior): a workspace folder's configuration lives in both `.vscode/` and `.vsrustium/`. `config::service` reads settings.json, tasks.json, launch.json and mcp.json from both and `.vsrustium/` wins per key (`FOLDER_CONFIG_DIRS`); both are watched. Writes (workspace and folder settings, Open Workspace Settings (JSON), language overrides, tasks and launch edits) go to `.vsrustium/` when that folder exists, else `.vscode/` (`folder_config_dir`). configuration-editing's `jsonValidation` maps `/.vsrustium/{settings,launch,tasks,mcp,extensions}.json` to the same schemas, and both folders are always UTF-8. The user data dir move to `~/.vsrustium/` is done on integrate.
- Profiles model (`storage/src/profiles.rs`, port of userDataProfile.ts `UserDataProfilesService`): profiles under `userDataProfiles` and associations under `profileAssociations` in `User/globalStorage/storage.json`, in upstream's shape, so a VS Code user data folder's profiles load as they are; transient profiles, `useDefaultFlags`, workspace and empty window associations, `cleanUp` (cargo test -p storage profiles). The Agents window profile is left out (no AI by decision).
- User data files (settings, keybindings, tasks, extensions json of the user home) are written atomically as FileUserDataProvider asks (`config::service::write_user_data_file`).
- Profiles at startup (`app/src/user_data_profile.rs`, windowsMainService.ts `resolveProfileForBrowserWindow`): `--profile <name>` (created when missing), `--profile-temp` (main.rs `CliProfile`, `forceProfile`/`forceTempProfile`: only the window a command line opens, the first start's or a second instance's; without paths that start opens just its new empty window, as app.ts and launchMainService.ts; windows from the menu take the workspace's profile), else the workspace's association, else `window.newWindowProfile`, else the default; the choice is associated with the workspace unless the window develops an extension. The profile gives the settings, tasks and mcp files (`config::service::UserFiles`), the keybindings file, `state.vscdb` of its global storage and its `extensions.json` (`UserExtensions::extensions_file`; an uninstalled folder stays while another profile's extensions.json lists it). A profile with its own settings reads the default profile's application settings and `workbench.settings.applyToAllProfiles` as the application layer, its own file with PROFILE_SCOPES (cargo test -p config profile_tests). The user snippets folder is not read by the port yet (no user snippets loader); the profile's `snippets` folder is used by export, import and settings import.
@@ -176,7 +176,7 @@ Done when: api-tests `configuration.test` and `state.test` pass as in the refere
- Profiles editor (`workbench/profiles_editor_view.rs`): the modal part with the sidebar and the contents view, rename, Use for Current/New Windows, Contents, Folders & Workspaces, the new profile form (Copy from a profile or an imported template, the Copy, Default or None source of each resource) and Export/Import of `.code-profile` files from a file or a URL (`app/src/profile_template.rs`). A non-default profile's Source radio writes its `useDefaultFlags`; for the current profile the window switches to the updated profile. The Icon row opens the icon picker (`workbench/icon_select_box.rs`, iconSelectBox.ts with the `iconSelectBox.*` commands): Search icons over the 83 `ICONS` in 36px cells, 12 a row, in a sticky hover under the icon. The activity bar's Manage item shows the current profile's icon, or the two-letter profile badge when it has none (globalCompositeBar.ts). The new profile form is named `Untitled N`, keeps Cancel, Preview and Create (Replace when a copy takes an existing name) under its scrolling body and validates as `NewProfileElement.validate`; its sidebar row has the dirty dot, Cancel and, while copying a profile, Export.... shortcut: Preview stores its profile instead of a transient one (each window is its own process, a transient profile would not reach the preview window); Cancel removes it. port/results/profiles.md.
- Settings import (`app/src/settings_import.rs`, `workbench/settings_import.rs`; Artur, no upstream counterpart): Preferences: Import from VS Code, Cursor or VSCodium..., and an offer on the first start with the default user data (no `--user-data-dir`) and no settings.json yet, shown once (`settingsImport.offered` in application storage). Keybindings already present are not duplicated; existing snippet files are kept; extensions are installed from Open VSX, and one Open VSX does not have or cannot install (not found, offline, an incompatible version) is copied from the source's extensions folder instead (`UserExtensions::install_folder`, without that editor's `__metadata`); a publisher the user did not trust is not copied either. The first import installed one extension at a time, each with its own publisher trust dialog queued behind the others, and dropped their results; it now runs like a profile import (one query, one trust dialog, progress, the failures listed), disables what VS Code has disabled, keeps keybindings.json comments when the profile has no keybindings yet, and the theme settings apply when their extension arrives. Settings the port removed (chat.*, github.copilot.*, the AI search toggle) stay left out by design. Fixtures in port/fixtures/settings-import.
- Settings import, UI state (decision under the rule "only what a VS Code profile export or Settings Sync carries"): the layout lives in the source's `User/globalStorage/state.vscdb`, not in its settings. The import takes what globalStateResource.ts `getGlobalState` exports, the keys `__$__targetStorageMarker` marks `StorageTarget.USER` (0): `views.customizations` (a view or container moved, such as Source Control to the secondary side bar), `workbench.activity.pinnedViewlets2`, `workbench.auxiliarybar.pinnedPanels`, `workbench.panel.pinnedPanels`, the `*.state.hidden` views, `workbench.panel.alignment`, `workbench.statusbar.hidden`, written as `GlobalStateResource` applies them (`profile_template::store_user_state`), as a "UI State" part of the pick. Only these layout keys: the export's other USER keys include `extensions.trustedPublishers` and a sign-in's account access (`github-<account>`), which would skip the publisher trust dialog and the sign-in this import leaves to the user, besides survey, MRU and removed features' state. The part sizes (`workbench.sideBar.size`, `workbench.auxiliaryBar.size`, `workbench.panel.size`) and a workspace's part visibility are `StorageTarget.MACHINE` or workspace storage (layout.ts `LayoutStateKeys`) and neither export nor sync carries them, so they stay the port's. The activity bar at the top, the layout controls and `workbench.secondarySideBar.defaultVisibility` are settings and came with the settings part already.
-- configuration-editing's own tests run with `port/tools/extension-tests configuration-editing` (a built-in extension's out/test from the reference checkout, against vscrs): 18 passing. They needed `_executeCompletionItemProvider` and `_executeLinkProvider` to send cancellation tokens (`host.call_cancellable`, as rpcProtocol.ts does for a method whose last parameter is a token), `$acceptLanguageIds` at host start and restart (`vscode.languages.getLanguages`), `getContextKeyInfo` (the reference's `RawContextKey.all()`, dumped by `port/tools/ref-commands` into `contextkey/reference-context-keys.json`; rerun it when the reference moves) and the development copy of a built-in keeping `isBuiltin` (`scanExtensionsUnderDevelopment`), which `@vscode/internal-github`'s allowlist checks. The extensions.json cases expect `ms-vscode.js-debug`: the Studio mirror needs `port/tools/fetch-builtin-extensions` once.
+- configuration-editing's own tests run with `port/tools/extension-tests configuration-editing` (a built-in extension's out/test from the reference checkout, against vsrustium): 18 passing. They needed `_executeCompletionItemProvider` and `_executeLinkProvider` to send cancellation tokens (`host.call_cancellable`, as rpcProtocol.ts does for a method whose last parameter is a token), `$acceptLanguageIds` at host start and restart (`vscode.languages.getLanguages`), `getContextKeyInfo` (the reference's `RawContextKey.all()`, dumped by `port/tools/ref-commands` into `contextkey/reference-context-keys.json`; rerun it when the reference moves) and the development copy of a built-in keeping `isBuiltin` (`scanExtensionsUnderDevelopment`), which `@vscode/internal-github`'s allowlist checks. The extensions.json cases expect `ms-vscode.js-debug`: the Studio mirror needs `port/tools/fetch-builtin-extensions` once.
## Milestone 9: commands, keybindings, quick input
@@ -625,7 +625,7 @@ Scope (milestone 13): diagnostics, hover, completion, go to definition and peek,
- The Output view's title row (channel dropdown, filter box, Clear, Toggle Auto Scrolling, gear, Open Output in Editor) is in the panel's title bar since milestone 11, as upstream.
- The Output view's filters hide lines as the editor's hidden areas (`FilterController`, `FoldingModel::set_hidden_areas`); the model holds the channel's whole text and the include pattern matches are `findMatch` decorations. Appends are filtered as they arrive.
- shortcut: Open Output in Editor and Open Log... open the channel's file, where upstream opens its `output:` resource in a second read-only editor; the port's editor group hosts one output-scheme editor, the Output view.
-- Log levels: `Output::log_level` is `LoggerService.logLevel`, a logger's own level is stored only when it differs (`logs_actions.rs`). The startup level is argv.json `log-level` (`<home>/.vscrs/argv.json`, product.json `dataFolderName`), which main.ts turns into `--log` arguments; Set As Default and the Set Log Level picker's button write it back with `json_edit::set_property`. shortcut: the `--log` and `--verbose` command line arguments are not read; the port's main.rs parses only the arguments it needs.
+- Log levels: `Output::log_level` is `LoggerService.logLevel`, a logger's own level is stored only when it differs (`logs_actions.rs`). The startup level is argv.json `log-level` (`<home>/.vsrustium/argv.json`, product.json `dataFolderName`), which main.ts turns into `--log` arguments; Set As Default and the Set Log Level picker's button write it back with `json_edit::set_property`. shortcut: the `--log` and `--verbose` command line arguments are not read; the port's main.rs parses only the arguments it needs.
- `logsDataCleaner.ts` runs in the window process ten seconds after startup (the port has no shared process): the session folders of `<userData>/logs` but the current one and the nine newest are removed.
- shortcut: Open Logs Folder reveals the session folder when it has no `main.log`; the port has no main process writing one.
- Toggle Keyboard Shortcuts Troubleshooting writes `[KeybindingService]:` lines to the Window log from `dispatch_key` and `Resolver::resolve_logged`; keydown lines carry the DOM `code` of the native event and chords print as scan code dispatch strings (milestone 9's keyboard mapper). shortcut: no `keyCode` (GPUI keystrokes have none) and no focus marker (GPUI does not expose the focused element's bounds).
@@ -647,7 +647,7 @@ Scope (milestone 13): diagnostics, hover, completion, go to definition and peek,
- The port opens a workspace folder by its resolved path, so a folder under `/var` shows as `/private/var` in the prompt where the reference shows `/var`; the cause is the workspace, not the terminal.
- ui-pair of the profile picker, `exit` and the split rows (`/tmp/term/steps4.json` on the Studio): the picker sorts each list by name with the `defaultProfile.osx` profile first, shows a PATH profile by its basename (`isFromPath`) and has the "Configure Terminal Profile" gear button (copies the profile into `terminal.integrated.profiles.osx` under a new name); the tab row actions take no space until hovered (`.actions { display: none }`); the inline Split and Kill and the single tab entry follow `tabs.showActions` and `tabs.showActiveTerminal`.
- Extension host (`workbench/terminal_host.rs`, mainThreadTerminalService.ts and mainThreadTerminalShellIntegration.ts): `$createTerminal` (shell path and args or the default profile, cwd without `terminal.integrated.cwd`, env merged or `strictEnv`, `hideFromUser` terminals outside the groups until `$show`, `location` parent splits), `$show`, `$hide` (closes the view tab), `$dispose`, `$sendText`, data and command event toggles, extension pseudoterminals (`$startExtensionTerminal`, `$sendProcessData/Ready/Property/Exit`, input as `$acceptProcessInput`), the change events (opened, closed with exit reason, active, process id, title, dimensions, shell type from the foreground process, selection, interaction) and `$acceptDefaultProfile`. Environment variable collections (`terminal/environment_collection.rs`) are applied to new terminals and kept in workspace storage (`terminal.integrated.environmentVariableCollectionsV2`).
-- Shell integration: the upstream scripts are injected (`terminal/injection.rs`, bash `--init-file`, zsh through `ZDOTDIR` in `$TMPDIR/<user>-vscrs-zsh`, fish and pwsh) when `terminal.integrated.shellIntegration.enabled`, with a nonce per terminal; `terminal/shell_integration.rs` parses OSC 633/133/1337/7 in stream order and `$shellExecutionStart/Data/End`, `$cwdChange`, `$shellIntegrationChange` reach the host; `executeCommand` waits for the prompt as `runCommand` does. `runCommand` waits for the prompt input model to reach `Input`, sends ^C, then the command.
+- Shell integration: the upstream scripts are injected (`terminal/injection.rs`, bash `--init-file`, zsh through `ZDOTDIR` in `$TMPDIR/<user>-vsrustium-zsh`, fish and pwsh) when `terminal.integrated.shellIntegration.enabled`, with a nonce per terminal; `terminal/shell_integration.rs` parses OSC 633/133/1337/7 in stream order and `$shellExecutionStart/Data/End`, `$cwdChange`, `$shellIntegrationChange` reach the host; `executeCommand` waits for the prompt as `runCommand` does. `runCommand` waits for the prompt input model to reach `Input`, sends ^C, then the command.
- Undefined RPC arguments: `exthost::rpc::undefined()` as an argument is sent as `ArgType.Undefined` (`Arg::from_value`), as rpcProtocol.ts does for `undefined`; `$acceptTerminalClosed` exit codes and `$acceptTerminalSelection` need it (the api-tests compare with `undefined`).
- Task pickers (`workbench/task_quick_pick.rs`): runTask without an argument is the two-level `TaskQuickPick` (recently used from workspace storage `workbench.tasks.recentlyUsedTasks2`, configured, Configure a Task, contributed types, Show All Tasks..., Go back, the `{type}.autoDetect` entries with their confirmation), build and test (`_runTaskGroupCommand`: one default runs, else a picker), terminate (with All Running Tasks), restart, reRunTask, showTasks.
- Configuring tasks (`workbench/task_configure.rs`): Configure Task lists every task (`_runConfigureTasks`); a contributed task is customized into the folder's tasks.json (`customize`, a new file starts with the `tasksJsonComment` and follows `editor.insertSpaces`/`tabSize`), a custom one opens at its entry. Configure Default Build/Test Task sets `group.isDefault` and clears it on the others. Every task command goes through `with_task_trust` (`_trust`). The palette shows the task commands once the host sends `$registerSupportedExecutions` (the `*ExecutionSupported` context keys).
@@ -671,7 +671,7 @@ Scope (milestone 13): diagnostics, hover, completion, go to definition and peek,
Scope (milestone 18): extension management on disk with VSIX install and uninstall, add and remove in the running host; then the Open VSX gallery, the Extensions view, recommendations and language packs.
-- User extensions live in `<user data>/extensions` (`--extensions-dir` overrides it). Artur: the default user data dir is `~/.vscrs` (product.json `dataFolderName`), so extensions go to `~/.vscrs/extensions` and argv.json to `~/.vscrs/argv.json`; nothing is shared with Code - OSS. Project settings live in both `.vscode/` and `.vscrs/`, `.vscrs/` winning (milestone 10).
+- User extensions live in `<user data>/extensions` (`--extensions-dir` overrides it). Artur: the default user data dir is `~/.vsrustium` (product.json `dataFolderName`), so extensions go to `~/.vsrustium/extensions` and argv.json to `~/.vsrustium/argv.json`; nothing is shared with Code - OSS. Project settings live in both `.vscode/` and `.vsrustium/`, `.vsrustium/` winning (milestone 10).
- `exthost/src/extension_management.rs` keeps the upstream layout (extensionsScannerService.ts, extensionsProfileScannerService.ts): `extensions.json` profile entries with `relativeLocation` and metadata, `<publisher>.<name>-<version>` folders written to `.<hash>` first and renamed into place, `installedTimestamp` and `size` in `__metadata`, `.obsolete` for folders to delete at the next start, `.vsctmp` renames before a delete. A profile file that does not exist is filled from the folder (`doInitializeDefaultProfileExtensions`). A user extension replaces the built-in with its id unless the built-in is newer (`dedupExtensions`).
- VSIX files are read by `exthost/src/zip.rs` (stored and deflate entries, CRC and size checked, entries outside `extension/` refused as base/node/zip.ts). shortcut: zip64 and encrypted entries are refused; vsce writes neither.
- `exthost/src/extension_validator.rs` ports extensionValidator.ts (engine and version checks, `validateExtensionManifest`), with the table of extensionValidator.test.ts. Installs check the engine; scanning skips invalid user extensions with a log line. Built-in extensions are still loaded unvalidated (see the milestone 12 note on `engines.vscode: "*"`).
@@ -691,7 +691,7 @@ Scope (milestone 18): extension management on disk with VSIX install and uninsta
- Enablement: extensionEnablementService.ts `_computeEnablementState` over the storage lists `extensionsIdentifiers/disabled|enabled` (profile and workspace), with the cases of extensionEnablementService.test.ts the port's states reach. A disabled extension leaves the running host at the next start; disabled ones are filtered out at startup.
- Updates: `checkForUpdates` every 12 h and on demand through the latest-version resource with uuids; `extensions.autoUpdate` (true, "onlyEnabledExtensions", "onlySelectedExtensions", false) with the per-extension choice in the `extensions.autoUpdate` storage key, `extensions.autoUpdateDelay` hours after publication. The activity bar badge counts outdated enabled extensions plus those that need a restart. The extensions settings come with the reference's registry (config/core-settings.json), `extensions.verifySignature` included.
- Details editor: header (icon, name, publisher, installs, rating, description, actions, Auto Update, manage gear), Details (README through pulldown-cmark in a webview, Marketplace and Categories side bar), Features (contributions by kind), Changelog. Shortcuts in extension_editor.rs: code blocks are not syntax highlighted; Features lists ids and titles, not upstream's tables.
-- Recommendations (`extension_recommendations.rs`, `workbench/workspace_recommendations.rs`): workspaceExtensionsConfig.ts reads the workspace file's `extensions` and each folder's `extensions.json`; port decision: from `.vscode/` and `.vscrs/`, `.vscrs/` winning per key (`recommendations`, `unwantedRecommendations`). Bad ids warn as workspaceRecommendations.ts does; unwanted and globally ignored ids (`extensionsAssistant/ignored_recommendations`) are dropped. Code - OSS's product.json has no `extensionRecommendations`, tips or `configBasedExtensionTips`, so file-type, keymap, language, exe and config recommendations are empty as in the reference. The prompt 5 s after startup, Install Workspace Recommended Extensions and Configure Recommended Extensions (Workspace and Workspace Folder; the latter writes `.vscrs/` when that folder exists) are ported.
+- Recommendations (`extension_recommendations.rs`, `workbench/workspace_recommendations.rs`): workspaceExtensionsConfig.ts reads the workspace file's `extensions` and each folder's `extensions.json`; port decision: from `.vscode/` and `.vsrustium/`, `.vsrustium/` winning per key (`recommendations`, `unwantedRecommendations`). Bad ids warn as workspaceRecommendations.ts does; unwanted and globally ignored ids (`extensionsAssistant/ignored_recommendations`) are dropped. Code - OSS's product.json has no `extensionRecommendations`, tips or `configBasedExtensionTips`, so file-type, keymap, language, exe and config recommendations are empty as in the reference. The prompt 5 s after startup, Install Workspace Recommended Extensions and Configure Recommended Extensions (Workspace and Workspace Folder; the latter writes `.vsrustium/` when that folder exists) are ported.
- platform/extensionResourceLoader: the port reads an installed extension's files from disk and a gallery extension's README, changelog, manifest and icon from its asset URIs; Open VSX serves no `resourceUrlTemplate`, so there is no other resource URL to build.
- Display language (`exthost/src/language_packs.rs`, `app/src/nls.rs`, `workbench/localization.rs`): `languagepacks.json` in the user data folder is rebuilt from installed extensions with `contributes.localizations`; at startup mainImpl.ts's locale (`--locale`, argv.json `locale`, else the OS's first preferred language, Chinese as zh-cn/zh-tw) resolves to an installed pack as base/node/nls.ts does for a product build (not VSCODE_DEV: the dev reference never translates). Extension manifests take the pack's `contents.package` or `package.nls.<locale>.json`; the host gets `appLanguage`; MainThreadLocalization answers `$fetchBuiltInBundleUri` and `$fetchBundleContents`. Configure Display Language lists installed packs and Open VSX's `category:"language packs"`, installs MS-CEINTL packs (others open in the Extensions view), asks to restart, writes argv.json and restarts; Clear Display Language Preference removes the key.
- Workbench strings: upstream looks messages up by module and key. Command Palette items carry the reference call's `module#key`: port/tools/ref-commands runs the reference from an APFS clone (ref-nls-clone.ts, in the temp folder, vscode-ref untouched) whose out/vs/nls.js tags each `localize`/`localize2` result with its key and the calling module from the stack, and `nls::localize_key` reads `contents[module][key]` of the pack. The same dump's `nlsKeys` map, per menu bar menu (by `MenuId` name), view and view container id, each item text or title to its key; `nls::localize_in(scope, text)` translates the menu bar's items (in `menu_actions`), side bar titles and pane headers through it, and a text with no key in its scope (a folder name, an extension's view) stays as it is. The top-level menus, the app menu and the Window menu take electron-main/menubar.ts's own keys (`main_label` in workbench/menubar.rs). A palette item without a key falls back to build.rs's index of every `localize`/`localize2` of src/vs (module, key, message): shortcut: there a message two modules translate differently gets the first module's text. shortcut: other surfaces (context menus, dialogs, view contents) still show English.
@@ -811,23 +811,23 @@ Scope as in the M19 Work row of port/ledger.md.
- Ported, `cargo test -p app -p config stable_build only_a_stable relaunch`: setting defaults and `included` (workbench.contribution.ts, desktop.contribution.ts `window.menuStyle`, terminalConfiguration.ts and the others): `port/tools/dump-settings` writes the 14 settings a stable build changes to `config/core-settings-stable.json` (null: not registered), applied by `config::registry::use_stable_quality` at startup. update.ts `update.showUpdateReleaseNotes` and its Manage menu item. terminalEnvironment.ts `VSCODE_STABLE`. relauncher.contribution.ts: the PPE gallery setting asks to restart only off stable. abstractExtensionManagementService.ts `preferPreReleases`, extensionUrlHandler.ts and the gallery query's `includePreRelease`: pre-release versions off stable. extensions.contribution.ts: the install button's release and pre-release order (`extensions.installPreRelease` added for the stable dropdown). keybindingsExport.contribution.ts: `--export-default-keybindings` ignored on stable. localProcessExtensionHost.ts `consoleForward.includeStack`: off for a packaged stable build. contextkeys.ts `productQualityType`. Init data `quality` and `vscode.version`'s `-<quality>` suffix.
- extensionsProposedApi.ts (exthost/src/proposed_api.rs, cargo test -p exthost proposed_api): a packaged app is built (`isBuilt`), a checkout run is not and allows every proposal. port/product.json carries `extensionEnabledApiProposals` of the Microsoft VS Code 1.147.0 darwin-arm64 build (65 extensions; the OSS product.json has none). Two of its names, `agentsWindowActivation` and `timeline`, are not in 1.147.0's extensionsApiProposals.ts, so the port warns at startup as VS Code does. Each window builds its own from its environment, as each renderer does upstream, and a host restart reuses it. No `@<version>` compatibility check: 1.147.0 removed `areApiProposalsCompatible` (commit 28af4cff058, #321391); the scanner only drops the `@<version>` suffix.
- Not ported, nothing to gate: releaseNotesEditor.ts conditional blocks (`STABLE`/`INSIDERS`: the port renders the GitHub release body), extensionsWorkbenchService.ts system extension updates and the 1 hour Insiders check interval, Download VSIX actions, codeCacheCleaner.ts and languagePackCachedDataCleaner.ts (no V8 code cache), preferences.ts recommended extension lookup, issueTroubleshoot.ts, survey.contribution.ts, window.ts translation URL, telemetry and assignment services, notebook kernel marketplace query, every chat, sessions and agent host gate (AI left out), update.ts SwitchProductQualityContribution (web only).
-- Update feed (`update.rs`): product.json `updateUrl` is the GitHub releases URL of rokartur/vscrs. A release channel's feed is one static JSON file in upstream's `IUpdate` shape (the answer of update.code.visualstudio.com's `/api/update/<platform>/<quality>/<commit>`), one per platform the app is built for, VS Code's target platform names `darwin-arm64` and `darwin-x64` (`exthost::gallery::CURRENT_TARGET_PLATFORM`, from `cfg!(target_arch)`):
+- Update feed (`update.rs`): product.json `updateUrl` is the GitHub releases URL of rokartur/vsrustium. A release channel's feed is one static JSON file in upstream's `IUpdate` shape (the answer of update.code.visualstudio.com's `/api/update/<platform>/<quality>/<commit>`), one per platform the app is built for, VS Code's target platform names `darwin-arm64` and `darwin-x64` (`exthost::gallery::CURRENT_TARGET_PLATFORM`, from `cfg!(target_arch)`):
`{"version": "<commit>", "productVersion": "1.148.0", "release": 1, "timestamp": <ms since epoch>, "url": "<zip URL>", "sha256hash": "<hex SHA-256 of the zip>", "prerelease": false}`.
Channels (port addition: setting `update.releaseChannel`, `latest` or `pre-release`, default the build's quality as upstream's channel is: `latest` on a `stable` build, `pre-release` on an Insiders one; 1.148.0.2-insider and older default to `latest` and, with no release yet off pre-release, see 404 and "no updates"; so v1.148.0.2-insider is GitHub's latest release, not marked pre-release, with the `<platform>.json` feeds too, and the next release, the first with the quality default, goes there the same way): `latest` reads `<updateUrl>/latest/download/<platform>.json`, which GitHub serves from the newest release not marked pre-release; `pre-release` reads `<updateUrl>/download/pre-release/<platform>-prerelease.json` (the arm64 names are the ones the first published build, v1.147.0-insider, reads), from a release tagged `pre-release` whose asset each publish replaces (GitHub has no "latest including pre-releases" URL). Port version (Artur): product.json `version` stays VS Code's semantic version (`1.148.0`, `1.148.0-insider`, what upstream code and extensions read) and product.json `release` is the port's build of it, a positive integer in port/product.json, bumped by hand for each release and set back to 1 on every uplift; build-exthost leaves it out of the extension host's product, and `VERSION` in main.rs (what extensions see) never includes it. Users see the display version `<major>.<minor>.<patch>.<release>` with `-insider` on an Insiders build (`product::display_version`, app-files.ts `displayVersion`): `1.148.0.1`, `1.148.0.1-insider`, in About, `--version`, `--status`, the startup performance view, the update title bar and tooltip, the release notes (tag `v1.148.0.1`) and the package names. Info.plist `CFBundleShortVersionString` stays VS Code's version (Apple's three-number format; update-check reads it). The feed keeps `productVersion` semantic and adds `release`, so builds from before releases still parse the entry (they compare version and timestamp only); the port shows `productVersion` with the release. The entry is an update when its (`productVersion`, `release`, `timestamp`) is higher than the running (product.json `version`, `release`, `date`), in that order: a higher VS Code version wins whatever the releases, then a higher release whatever the timestamps; an entry or a build without `release` is release 0, a `release` that is not a non-negative integer is an error (`version`, the commit, decides nothing: builds of one commit can differ in version); a lower one never is, so switching to `latest` on a pre-release newer than the latest stable keeps it until a newer stable comes. A build without `commit` and `date` (written by package-app) has updates disabled, as upstream's without `commit`. 204, 401, 403 and 404 are no update. `url` resolves against the feed's URL and must be https (http only on 127.0.0.1 or localhost).
- Publishing a release (Artur, by hand): bump `release` in port/product.json (then `port/tools/build-exthost`: package-app refuses an extension host bundle older than port/product.json), then `port/tools/package-app` (VERSION, TAG default `v<display version>`, e.g. `v1.148.0.1`, PRERELEASE=1 for a pre-release, which is a VS Code Insiders build: product.json `quality: insider` and version `<VERSION>-insider`, as gulpfile.vscode.ts writes them; builds of one Insiders version are told apart by `date`) writes next to the app, for ARCH (`arm64` or `x64`, default the host's) `Vscrs-<display version>-darwin-<arch>.zip` (`ditto -c -k --keepParent` of the signed app; e.g. `Vscrs-1.148.0.1-insider-darwin-arm64.zip`), `darwin-<arch>-prerelease.json` and, unless PRERELEASE=1, `darwin-<arch>.json`; the feed `url` names the versioned zip. Run it once per arch (the x64 one after `cargo build --release -p app --target x86_64-apple-darwin`). Upload both zips and both `darwin-<arch>.json` to the release TAG (marked pre-release for a pre-release), and both `darwin-<arch>-prerelease.json` to the `pre-release` release, replacing its assets (a stable release goes there too, so pre-release users get it). A Linux build names its archive `Vscrs-<display version>-linux-<arch>.tar.gz` the same way, and its `Vscrs-<display version>-linux-<arch>.AppImage`, uploaded beside the archive (no feed names it). Extensions see the API version (`VERSION` in main.rs, 1.147.0, with `-<quality>` on a non-stable build), not product.json `version`: on an Insiders build `vscode.version` is `1.147.0-insider` and `env.appQuality` `insider`, what extensions test for VS Code Insiders (copilot's completions `vscode.version.endsWith('-insider')`, tunnel-forwarding's `appQuality`, a `resolvers` proposal). `env.appName` stays `Vscrs` (branding (1) below); the one `appName.includes('Insiders')` check upstream is the Copilot extension's, which the port does not ship. `engines.vscode` checks use the same string; as extensionValidator.ts, `-insider` in a range or version decides nothing, only the numbers (`cargo test -p exthost insider_engines`; update-check installs the Open VSX VSIX of `[email protected]`, engines `^1.89.0-insider`, in P and activates it, and installs the pre-release of `rust-lang.rust-analyzer` from the gallery (`installPreReleaseVersion`, publisher trust answered) and activates it as one).
-- Update service (`update.rs`, `update/install.rs`, updateService.darwin.ts with Squirrel.Mac's part): one per app, created with the first window; `update.mode` as upstream (`none` disables and drops a pending download, `manual`, `start` 30 s after startup, `default` also hourly). A check first refuses a bundle it cannot replace (App Translocation, a read-only volume, no write access) with Squirrel's message, then reads the feed; a newer build downloads at once with curl into `~/Library/Caches/com.rokartur.vscrs.ShipIt/update` (progress from the file size and Content-Length), then is verified: the zip's SHA-256 against the feed, `ditto -x -k`, exactly one `.app`, `codesign --verify --deep --strict` against the installed app's designated requirement (Squirrel's check: an Apple-issued certificate, the Team ID and the bundle id) and the same `Identifier` and `TeamIdentifier`; an ad-hoc signed installed app verifies nothing. States: Uninitialized, Disabled, Idle, CheckingForUpdates, AvailableForDownload, Downloading, Downloaded, Ready, Restarting; an error goes back to Idle, with its message only for an explicit check (upstream). On a metered connection (`network.meteredConnection` or the OS's) an automatic check is skipped, and an update an automatic check found waits as AvailableForDownload; both resume once the connection is not metered (abstractUpdateService.ts). Not reached: Updating (Windows), Overwriting, Cancelling.
- ShipIt (`vscrs --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 `.Vscrs.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 Vscrs 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 Vscrs 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`): Vscrs.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, dev ones included (markdown-language-features loads its devDependency `@vscode/hubrpc`, which upstream's bundle inlines; issue 23), 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 `vscrs` 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` (Vscrs), 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 Vscrs; 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 Vscrs there too (the Dock's label keeps the executable name, `vscrs`). `--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 Vscrs.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`.
-- Rename (Artur): the port was VSRustium until 1.148.0.x and is Vscrs (binary, data folder, bundle id, URL protocol and repository `vscrs`). `default_user_data` moves `~/.vsrustium` to `~/.vscrs` once, while `~/.vscrs` does not exist (`main.rs` `user_data_moves_from_vsrustium_once`); a folder's `.vsrustium/` stays read and written, under `.vscrs/` (`config::service::FOLDER_CONFIG_DIRS`, `vsrustium_is_read_and_written_until_vscrs_exists`), without a jsonValidation schema. The bundle id changed with the name, so an installed VSRustium.app cannot verify a Vscrs update (`update/install.rs` checks the `Identifier`): users download the first Vscrs release by hand. Policies set for `com.rokartur.vsrustium` and `vsrustium://` links stop working.
+ Publishing a release (Artur, by hand): bump `release` in port/product.json (then `port/tools/build-exthost`: package-app refuses an extension host bundle older than port/product.json), then `port/tools/package-app` (VERSION, TAG default `v<display version>`, e.g. `v1.148.0.1`, PRERELEASE=1 for a pre-release, which is a VS Code Insiders build: product.json `quality: insider` and version `<VERSION>-insider`, as gulpfile.vscode.ts writes them; builds of one Insiders version are told apart by `date`) writes next to the app, for ARCH (`arm64` or `x64`, default the host's) `VSRustium-<display version>-darwin-<arch>.zip` (`ditto -c -k --keepParent` of the signed app; e.g. `VSRustium-1.148.0.1-insider-darwin-arm64.zip`), `darwin-<arch>-prerelease.json` and, unless PRERELEASE=1, `darwin-<arch>.json`; the feed `url` names the versioned zip. Run it once per arch (the x64 one after `cargo build --release -p app --target x86_64-apple-darwin`). Upload both zips and both `darwin-<arch>.json` to the release TAG (marked pre-release for a pre-release), and both `darwin-<arch>-prerelease.json` to the `pre-release` release, replacing its assets (a stable release goes there too, so pre-release users get it). A Linux build names its archive `VSRustium-<display version>-linux-<arch>.tar.gz` the same way, and its `VSRustium-<display version>-linux-<arch>.AppImage`, uploaded beside the archive (no feed names it). Extensions see the API version (`VERSION` in main.rs, 1.147.0, with `-<quality>` on a non-stable build), not product.json `version`: on an Insiders build `vscode.version` is `1.147.0-insider` and `env.appQuality` `insider`, what extensions test for VS Code Insiders (copilot's completions `vscode.version.endsWith('-insider')`, tunnel-forwarding's `appQuality`, a `resolvers` proposal). `env.appName` stays `VSRustium` (branding (1) below); the one `appName.includes('Insiders')` check upstream is the Copilot extension's, which the port does not ship. `engines.vscode` checks use the same string; as extensionValidator.ts, `-insider` in a range or version decides nothing, only the numbers (`cargo test -p exthost insider_engines`; update-check installs the Open VSX VSIX of `[email protected]`, engines `^1.89.0-insider`, in P and activates it, and installs the pre-release of `rust-lang.rust-analyzer` from the gallery (`installPreReleaseVersion`, publisher trust answered) and activates it as one).
+- Update service (`update.rs`, `update/install.rs`, updateService.darwin.ts with Squirrel.Mac's part): one per app, created with the first window; `update.mode` as upstream (`none` disables and drops a pending download, `manual`, `start` 30 s after startup, `default` also hourly). A check first refuses a bundle it cannot replace (App Translocation, a read-only volume, no write access) with Squirrel's message, then reads the feed; a newer build downloads at once with curl into `~/Library/Caches/com.rokartur.vsrustium.ShipIt/update` (progress from the file size and Content-Length), then is verified: the zip's SHA-256 against the feed, `ditto -x -k`, exactly one `.app`, `codesign --verify --deep --strict` against the installed app's designated requirement (Squirrel's check: an Apple-issued certificate, the Team ID and the bundle id) and the same `Identifier` and `TeamIdentifier`; an ad-hoc signed installed app verifies nothing. States: Uninitialized, Disabled, Idle, CheckingForUpdates, AvailableForDownload, Downloading, Downloaded, Ready, Restarting; an error goes back to Idle, with its message only for an explicit check (upstream). On a metered connection (`network.meteredConnection` or the OS's) an automatic check is skipped, and an update an automatic check found waits as AvailableForDownload; both resume once the connection is not metered (abstractUpdateService.ts). Not reached: Updating (Windows), Overwriting, Cancelling.
+ 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, dev ones included (markdown-language-features loads its devDependency `@vscode/hubrpc`, which upstream's bundle inlines; issue 23), 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 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`.
+- Name (Artur): the port is VSRustium (binary, data folder, bundle id, URL protocol and repository `vsrustium`). The rename to Vscrs (#92) was reverted before any release shipped it, so no `~/.vscrs` or `.vscrs/` is read or moved.
- 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.
- Process explorer (`workbench/process_explorer.rs`, processExplorerControl.ts on top of ps.rs): Developer: Open Process Explorer and Help > Open Process Explorer open a floating window (an auxiliary editor window upstream, which the port does not have) with the process tree under the app's pid, refreshed 1000 ms after each listing, Kill Process, Force Kill Process, Copy, Copy All and Alt+E; bounds stored as upstream. Debug is left out: `debug.startFromConfig` is not registered. The command opens the window deferred: its first render reads the workbench, which the command handler is still updating (opening it inline aborted the app, found by port/tools/shell-gui-check).
- Product shell checks: port/tools/shell-check runs port/fixtures/extensions/shell-tests (the environmentPower and envIsConnectionMetered proposals) for the MainThreadPower and MainThreadMeteredConnection round trips and the product values the host sees; port/tools/shell-gui-check covers the update notification (updateUrl at a local server), the restart prompt (window.nativeTabs) and Help > Open Process Explorer. A prevent-display-sleep blocker shows in `pmset -g assertions` as NoDisplaySleepAssertion named Electron (the legacy type Chromium also creates).
- Timer service (`timer.rs`, timerService.ts `_computeStartupMetrics`): main.rs sets the upstream marks where the port has the phase (mainAppReady, Nls, CodeWindow, OpenNewWindow, InitStorage, InitWorkspaceService, LoadExtensions, RestoreEditors, CreateWorkbenchContributions, StartWorkbench); Developer: Startup Performance's Performance Marks table shows those phases with the upstream names, order and info, and leaves out the Electron-only ones (main bundle, crash reporter, main IPC, renderer bundle, window config, shared process).
-- Signing (`port/tools/package-app`): with IDENTITY a Developer ID, codesign runs from a `.command` script opened in the GUI session with `--keychain ~/Library/Keychains/login.keychain-db` (the login keychain is locked over ssh); NOTARIZE=1 submits with the notarytool profile `vscrs-notary` and staples. Artur runs once in a Studio GUI Terminal: `xcrun notarytool store-credentials vscrs-notary --apple-id <apple-id> --team-id N529W98U62` (it asks for an app-specific password). Result on 2026-11-25: `IDENTITY="Developer ID Application: Artur Rok (N529W98U62)" port/tools/package-app` signed 8 Mach-Os, `codesign --verify --deep --strict` ok; `codesign -dv`: Authority Developer ID Application: Artur Rok (N529W98U62), Developer ID Certification Authority, Apple Root CA, a secure Timestamp, TeamIdentifier N529W98U62, flags runtime; port/tools/app-smoke on the signed app: exit 0 (host from the bundled bun); `spctl -a -vv`: accepted only because the Studio has assessments disabled (`override=security disabled`), `source=Unnotarized Developer ID`, so the spctl check waits for notarization.
+- Signing (`port/tools/package-app`): with IDENTITY a Developer ID, codesign runs from a `.command` script opened in the GUI session with `--keychain ~/Library/Keychains/login.keychain-db` (the login keychain is locked over ssh); NOTARIZE=1 submits with the notarytool profile `vsrustium-notary` and staples. Artur runs once in a Studio GUI Terminal: `xcrun notarytool store-credentials vsrustium-notary --apple-id <apple-id> --team-id N529W98U62` (it asks for an app-specific password). Result on 2026-11-25: `IDENTITY="Developer ID Application: Artur Rok (N529W98U62)" port/tools/package-app` signed 8 Mach-Os, `codesign --verify --deep --strict` ok; `codesign -dv`: Authority Developer ID Application: Artur Rok (N529W98U62), Developer ID Certification Authority, Apple Root CA, a secure Timestamp, TeamIdentifier N529W98U62, flags runtime; port/tools/app-smoke on the signed app: exit 0 (host from the bundled bun); `spctl -a -vv`: accepted only because the Studio has assessments disabled (`override=security disabled`), `source=Unnotarized Developer ID`, so the spctl check waits for notarization.
## Milestones 5 to 7: the remaining rows
@@ -855,7 +855,7 @@ Scope as in the M19 Work row of port/ledger.md.
- MainThread* methods answering `undefined` (exthost/session.rs fallback and, since M27, the `not_ported` arms of app/src/main_thread_commands.rs `route`), audited against extHost.protocol.ts 1.147.0: the ones an extension observes are gap entries of their MainThread* rows in port/ledger.md. The rest by reason: proposals no built-in enables (`$createNotebookExecution`, `$beginNotebookExecution`, `$completeNotebookExecution`, kernel detection tasks and source actions, `$variablesUpdated`, debug visualizers, structural diff, new symbol names, inline completion model and option events); consumers removed by decision (canonical URI and edit session identity providers: edit sessions, Authentication, GitHub accounts, chat, language models, MCP, speech, AI search, share, tunnels, browsers, git extension service, label formatters of remote resolvers, profile content handlers, search providers); one extension host (`$activateExtension` of a host extension); the session evaluates `workspaceContains` itself (`$checkExists`); telemetry (`$logResolveTreeNodeFailure`, `$handleTelemetry`); tracked by views rows (`$setWebviewViewBadge`: workbench/contrib/webviewView; `$emitInlineValuesEvent`, evaluatable expressions: workbench/contrib/debug).
- workbench/services/sharedProcess and workbench/services/utilityProcess: the port has no shared process and no utility process workers; each channel a kept feature opened to them runs in the app process, checked in its own row. `ISharedProcessService.getChannel`: `extensions` (NativeExtensionManagementService) is exthost/src/extension_management.rs (platform/extensionManagement, port/tools/extensions-check), `extensionGalleryManifest` is the Open VSX gallery (gallery/open-vsx), `extensionTipsService` is app/src/extension_recommendations.rs (platform/extensionRecommendations), `languagePacks` is exthost/src/language_packs.rs (platform/languagePacks), `checksum` is n/a (platform/checksum); `telemetryAppender`, `customEndpointTelemetry`, `userDataSync*`, `userDataAutoSync`, `mcpManagement`, `mcpGalleryManifest`, `remoteTunnel`, `sharedProcessTunnel`, `localGit`, `playwright` and `sharedWebContentExtractor` serve removed features. `IUtilityProcessWorkerWorkbenchService.createWorker`: its one kept client, the universal file watcher of diskFileSystemProvider.ts, is files/src/watcher.rs on an FSEvents thread (platform/files, api-tests `vscode API - workspace-watcher`); localTranscription is AI (removed). `notifyRestored`'s barrier (connect after the Restored phase or 2 s) has nothing to delay: no process starts.
- Sticky scroll from the outline model (stickyScrollModelProvider.ts): with `editor.stickyScroll.defaultModel` `outlineModel` (the default) the active editor's scopes come from its document symbols (workbench/sticky_outline.rs, 300 ms `Delayer`, plus the 50 ms content-change scheduler), the folding regions only when the outline has no symbols. Cmd+click on a sticky line's text runs the muted Go to Definition of the projected span (Alt to the side), anchored at the span's start without moving the cursor, the peek over the span (`go_to_definition_with_location`, inlayHintsLocations.ts `goToDefinitionWithLocation`); with several candidates the clicked line is revealed first. Cmd+hover underlines a span with definitions.
-- Save conflict editor (textFileSaveErrorHandler.ts): Compare in the "content of the file is newer" message opens `conflictResolution:<path>` (the file on disk in the model's encoding and language, following the file while open) against the model, pinned, labeled "<name> (in file) ↔ <name> (in Vscrs) - Resolve save conflict", with the Info help message (Learn More, Don't Show Again as `neverShowAgain` `learnMoreDirtyWriteError`). `saveConflictResolutionContext` shows the title's "Use your changes and overwrite file contents" (check) and "Discard your changes and revert to file contents" (discard): they close the help messages, save with `ignoreModifiedSince` or revert, open the file's editor and close the conflict editor. A save from the conflict editor that conflicts again shows the help as an error. cargo test -p app compare_opens_the_save_conflict_editor.
+- Save conflict editor (textFileSaveErrorHandler.ts): Compare in the "content of the file is newer" message opens `conflictResolution:<path>` (the file on disk in the model's encoding and language, following the file while open) against the model, pinned, labeled "<name> (in file) ↔ <name> (in VSRustium) - Resolve save conflict", with the Info help message (Learn More, Don't Show Again as `neverShowAgain` `learnMoreDirtyWriteError`). `saveConflictResolutionContext` shows the title's "Use your changes and overwrite file contents" (check) and "Discard your changes and revert to file contents" (discard): they close the help messages, save with `ignoreModifiedSince` or revert, open the file's editor and close the conflict editor. A save from the conflict editor that conflicts again shows the help as an error. cargo test -p app compare_opens_the_save_conflict_editor.
- Floating comment threads (`comments.thread.experimental.style: floating`; commentThreadFloatingWidget.ts, commentThreadFloatingWidgetLayout.ts, commentThreadConnector.ts): the layout functions and `FloatingWidgetSizeModel` are ported 1:1 with their tests (workbench/comment_thread_floating_layout.rs); the widget (workbench/comment_thread_floating.rs) is laid out before each render, where the content is measured with the window's text system: widths from the label, action, button and comment line text widths, heights from the port's comment constants with body lines wrapped at the widget's width. `layout.left` is kept from the code area's left, not the editor's. The connector is active while the thread's reply input has focus (the port's widget takes no focus itself). The comments scroll as a list (`ListId::CommentThread`, list_scroll.rs: the fading scrollbar and top shadow); a wheel they cannot take goes on to the widget, which scrolls the editor. Range decorations (commentThreadRangeDecorator.ts) draw on every line of a shown thread's range at zIndex 20, a second layer while the pointer is over its widget or its reply has the focus; a floating thread's empty range highlights its line. Comments in diff and multi diff editors, with `FloatingWidgetRoom`: see the diff editors bullet below. The Studio mirror needed `port/tools/fetch-builtin-extensions` again for configuration-editing's 18 (js-debug); extension-tests now runs it.
- Comment Escape (workbench/comments.rs `Thread::revealed`): a new empty template shows through `shouldReveal` and stays open on Escape (`workbench.action.hideComment`) in the reference, empty or with text typed, without the confirmation `collapse(true)` asks for with unsubmitted text (`steps-comment-escape-typed.json`; `steps-comment-escape-f1-palette.json`: F1 after Escape opens the palette, so the keybinding hold mode was released). Reading the source, ReviewZoneWidget `show()` sets the thread Expanded and the extension host echoes `collapseState: 1`, so a reached `doCollapse` would hide it; since the dialog never shows, the reference's collapse is not reached. The port keeps such a thread `revealed` (the Expanded echo keeps it; Collapse All and the gutter toggle close it) and its Dismiss Comment does nothing. ui-pair `steps-comment-escape-typed.json`: both keep the "Start discussion" zone with "x" typed. cargo test -p app dismissing_a_new_template_keeps_it_open.
- Comments in diff editors: each side of a diff and of every multi diff file is its own code editor upstream, with its own comments controller, so each asks for its commenting ranges and reserves its comment lane. Floating widgets lay out against a `FloatingHost` (the code area, its scroll and per-line tops), so the normal editor, a diff's hand-drawn original pane and a multi diff file side share one path. A multi diff file side's host spans the whole file and its view is the part the list shows; `FloatingWidgetRoom` adds room after the side's last line (it measures from `getBottomForLineNumber(lineCount)`, so the room never counts itself), stored on `FileDiff.room` and recomputed each layout pass. ui-pair `portComments.openDiff: multi` with the floating style: widget, room fill and comment lanes match. Multi diff files have the 35px `DiffEditorGutter` (Revert Block where the modified side is writable, `diffEditorModifiedWritable`; the revert edits the file's model by URI with undo stops, since no editor is open on it) and the DiffEditorWidget line number lane (`lineNumbersMinChars` 5, `lineDecorationsWidth` 10, where the text editor sets 3 and folding adds 16). ui-pair mp1/mp2 (`steps-comment-diff-multi.json`) against mu1/mf1: line numbers, the split, the code and the floating widget line up. The layout is the default `multiDiffEditor.experimental.variant` `noCards`: 32px headers, 8px `contentBottomPadding`, original line numbers hidden unless `diffEditor.hideOriginalLineNumbers` is false. Opening runs "Initialize first change": without a reveal it activates the first change (modified cursor on its start line, `_goToFile` scrolls the list to the file's top) and focuses the editor, so the active file's header takes `list.inactiveSelectionBackground` and its toolbar shows. ui-pair mp5 against mf1: AE 15513 (diff) and 24838 (thread), from 43068 and 55350. Since the multi-instance code editor (port/ledger.md, M20) each file side is its own `OpenEditor` drawn through `text_area`: the modified side edits in place, the color detector keeps one detector per drawn code editor (`ColorDetector.editors`), and a file that turns dirty without a text editor opens as an inactive pinned tab 800ms later (workbench/text_file_editor_tracker.rs). ui-pair `steps-multi-diff-edit.json` (Studio /tmp/me-medit, one run): typed AE 11900, undone 10447, find 11025 at `-fuzz 10%`; what is left is the reference's TypeScript diagnostics on `a.ts` (red tab label, Problems) and the Explorer selection, outside the multi diff editor.
@@ -912,7 +912,7 @@ Scope as in the M19 Work row of port/ledger.md.
- Hot exit (`backups.rs`, `workbench/backup_tracker.rs`; workingCopyBackupService.ts, backupMainService.ts, workingCopyBackupTracker.ts): backups in `<user data>/Backups/<workspace id>/<scheme>/<hashIdentifier>` with the `<resource> <meta>\n` preamble (meta left out past 10000 characters, file meta `mtime`, `ctime`, `size`, `etag`, `orphaned`), written to `.vsctmp` then renamed; `Backups/workspaces.json` registers folders, workspaces and empty windows (an empty window takes the first empty window backup folder that still has backups, else `Date.now()` plus up to 1000). Dirty files and untitled editors back up 1000 ms after a change and lose the backup once clean; `files.hotExit` (`onExit`, `onExitAndWindowClose`, `off`) decides `shouldBackupBeforeShutdown` (quit and reload always, close and load only with `onExitAndWindowClose` in a folder, since closing a window does not quit on macOS); a failed backup asks with OK / Quit Anyway; with nothing modified the window's backups go. At start the backups open pinned in the background with their text, dirty. No backups while developing an extension. shortcut: a backup of a file that no longer exists stays on disk (upstream opens it orphaned). Tests: `cargo test -p app backup`.
- Windows (`main.rs` `AppState`, `WindowRequest`, `open_window`; `workbench/host.rs`): every window is a GPUI window of the one process with its own settings, storage, trust, extension host thread and workbench, as each reference window has its renderer and host. The menu bar runs its items in the active window, else the frontmost; with none, Quit quits and the other items open an empty window first; a Dock click without windows opens one (`app.on('activate')`). Closing the last window does not quit (macOS).
- Window state (`windows_state.rs`): `windowsState` in `User/globalStorage/storage.json`, the same key and shape as the reference (`lastActiveWindow`, `openedWindows`, `uiState` with `mode`, `display`, bounds). Display ids are the CGDirectDisplayID GPUI reports; bounds are points from the display's top left, so a window on a display that is gone opens centered.
-- Launch (`launch.rs`): a Unix socket in the user data folder, one JSON line per second instance (`args`, `cwd`) answered with `ok` once taken. Tools that start the port with their own `--user-data-dir` get their own instance; a start from the checkout with the default `~/.vscrs` hands its arguments to a running Vscrs.
+- Launch (`launch.rs`): a Unix socket in the user data folder, one JSON line per second instance (`args`, `cwd`) answered with `ok` once taken. Tools that start the port with their own `--user-data-dir` get their own instance; a start from the checkout with the default `~/.vsrustium` hands its arguments to a running VSRustium.
- Inactive window (workbench.rs `title_bar`, `shell_background`; opener.rs re-renders on activation): `titleBar.inactiveBackground` and `inactiveForeground`, `commandCenter.inactiveBorder`, the title bar contents at 0.6 opacity (titlebarpart.css `.inactive > *`), and the modern UI shell in `modernUI.inactiveShellBackground`; both backgrounds are made opaque over WORKBENCH_BACKGROUND as titlebarPart.ts does.
- Open in this list, each waiting on another owner or a decision: `workbench/contrib/limitIndicator` needs the language status item (milestone 13). Window zoom (`window.zoomLevel`) is n/a by Artur's decision: GPUI has no window-wide scale outside its test build.
- Editor windows (`workbench/auxiliary_windows.rs`; auxiliaryEditorPart.ts, auxiliaryWindowService.ts, editorParts.ts, editorActions.ts): Move/Copy Editor and Editor Group into New Window (Command Palette, the tab menu's Move/Copy into New Window, View > Editor Layout), New Empty Editor Window, Restore Editors into Main Window. A part is a grid of groups in the workbench's `Editors`; `EditorGroups` holds the active group's part layout in its fields and parks the others' (`PartLayout`, `switch_part`, `in_part`), so the group commands act on the active part. `groups_in_grid_order` is every part's groups, main first. The window is a GPUI window whose root `AuxiliaryWindow` asks the workbench to draw the part (no card), the title bar (command center, Turn On/Off Always on Top, `titleBar.border`) and the part's editor status items. The window that turns active makes its part's most recent group the active one (editorParts.ts `activePart`); the overlays (quick input, menus, dialogs, hovers) draw in the active window; keys reach the workbench of the window they come from (the keystroke interceptor was app-wide: every workbench window took every window's keys). Closing the window (its button, Cmd+Shift+W, Close Group on its last group) moves the editors that would ask (dirty ones) to the main part's active group and closes the others; its last editor closed closes it; the main window takes its editor windows with it. `editorparts.state` (each part's grid and editors, bounds, part MRU) is saved on every editor change and restores at start when the main part restored its state. Compact mode (auxiliaryEditorPart.ts `updateCompact`; Toggle Window Compact Mode, the title's Turn On/Off Compact Mode): the part draws no tabs and no breadcrumbs, the window no status bar, the title bar the window title and a diff's Previous/Next Change (`MenuId.CompactWindowEditorTitle`); a split from it goes to the main part (`getAddGroupLocation`); a second group in the part, or another editor shown while its group has several, ends it; `compact` is stored with the window. Not ported: zoom per window. Tests: `cargo test -p app auxiliary_windows`; ui-pair port/results/auxiliary-windows.md.
@@ -963,9 +963,9 @@ What to do (milestone 21, in order):
- The Studio mirror of this branch had an `out-exthost` from Nov 23 that `port/tools/build-exthost` had not inlined (its `BUILD_INSERT_PRODUCT_CONFIGURATION` markers still there), so the extension host asked for `../product.json` and failed to start; `bun port/tools/build-exthost` in the mirror fixed it. The bundle is not affected: build-exthost inlines the product and package-app writes `product.json` into the app.
- Scroll frame costs, the second GUI round (branch port-fix-settings-scroll): logging `Context::notify` callers on the Workbench with `#[track_caller]` while scrolling each surface found two more answers that redrew every part: a file decoration answer (137 times in an Explorer scroll up) and a gallery icon (149 times in the Extensions @builtin list). Each answer now notifies the view that drew the asking label or row (`window.current_view()` at the request), so every view that draws labels sends its own decoration requests at the end of its render: the Workbench root, each cached part view and each editor window. The Explorer's frame then showed the collapsed Outline (17%, a clone of the whole outline model) and Timeline (13%, its menu's context keys) building bodies the pane view drops; they now return their header only while `is_view_visible` is false. Settings opens on the lane through a user keybinding (`f19` to `workbench.action.openSettings2`, a plain key the probe posts), where the probe's Cmd+, and Cmd+Shift+P did not reach the app. It opens as the modal editor (with `workbench.editor.useModal` `off` too), and in two runs a scroll over it moved the text editor below (line 36 to 2508) while the settings list stayed at Commonly Used, so the GUI cannot measure Settings until the modal takes the wheel (ledger workbench/parts/editor). Cause: `swapped_group_body`'s guard took the wheel, press and move of an inactive group in the capture phase by its bounds, under the modal's overlay too; it now asks its hitbox, which the overlay's `occlude` hides (cargo test -p app a_wheel_over_the_settings_modal_scrolls_the_settings_list), and Settings follows `useModal` `off`.
- How others compare Zed and VS Code, before measuring ours: (1) Zed's team (zed-industries/zed#2040, 2023) filmed the screen with Is It Snappy and took 10 samples less 2 outliers: startup until restored buffers are highlighted, typing latency, tab switching, and footprint after the language server loaded. It measures pixels the user sees, but by hand: the thread asked how to script it and got no answer. (2) Typometer (pavelfatin/typometer) posts keystrokes and reads screen pixels: typing latency only. (3) Zed's own tools (zed.dev/docs/performance: samply, Tracy, the task profiler) profile Zed from inside and cannot run another app. `port/tools/bench` stays: scripted, the same outside measurement for any macOS app, the whole process tree, medians over alternating runs. None of the three is better for what it measures; Typometer is the candidate for typing latency, which `bench` does not measure.
-- Zed comparison (Zed 1.30.2 stable, the official darwin-aarch64 build from zed.dev, notarized, in `/Applications/Zed.app` on the Studio): one run of `port/tools/bench` with Vscrs (release build and `port/tools/package-app` of 3a73e3dfa53, main then), VS Code 1.148.0 and Zed, 5 runs after one warm-up, alternating, on the Studio host lane on 2026-12-01 from 22:07. Zed takes none of VS Code's arguments, so `bench` passes its own to a command that names `$FOLDER`: `port/tools/bench-zed "$BENCH_DATA" "$FOLDER"` writes `{"disable_ai": true, "auto_update": false, "telemetry": {"diagnostics": false, "metrics": false}}` to `<data dir>/config/settings.json` (where Zed reads it with `--user-data-dir`) and execs `zed --user-data-dir <data dir> <folder>`. Definitions for Zed are the ones of the other two: window is launch to the first on-screen layer-0 window wider than 400 pt of the launched process (a fresh data dir opens the workspace window titled `vscode-ref-1.148.0`, no onboarding, checked with System Events; for all three it is the window in the window server's list, not proof that its first frame has content); ready is the start of the first 2 s with the tree under 10% of a core, which for Zed includes the scan of the 21,627 files and git; memory is the tree of `zed` and its children (git; no language server starts, as no file is open). Zed has no extension host process (extensions run as wasm in `zed`), so `exthost_mib` is 0 and only whole-tree rows compare. The load was high: the bench waited 30 min for a 1-minute load under 20 and did not get one (20.8 to 74.6), and the runs had 16.3 to 67.7; memory pressure stayed normal (level 1), compressor 2.1 to 2.7 GiB, swap 1.8 GiB.
+- Zed comparison (Zed 1.30.2 stable, the official darwin-aarch64 build from zed.dev, notarized, in `/Applications/Zed.app` on the Studio): one run of `port/tools/bench` with VSRustium (release build and `port/tools/package-app` of 3a73e3dfa53, main then), VS Code 1.148.0 and Zed, 5 runs after one warm-up, alternating, on the Studio host lane on 2026-12-01 from 22:07. Zed takes none of VS Code's arguments, so `bench` passes its own to a command that names `$FOLDER`: `port/tools/bench-zed "$BENCH_DATA" "$FOLDER"` writes `{"disable_ai": true, "auto_update": false, "telemetry": {"diagnostics": false, "metrics": false}}` to `<data dir>/config/settings.json` (where Zed reads it with `--user-data-dir`) and execs `zed --user-data-dir <data dir> <folder>`. Definitions for Zed are the ones of the other two: window is launch to the first on-screen layer-0 window wider than 400 pt of the launched process (a fresh data dir opens the workspace window titled `vscode-ref-1.148.0`, no onboarding, checked with System Events; for all three it is the window in the window server's list, not proof that its first frame has content); ready is the start of the first 2 s with the tree under 10% of a core, which for Zed includes the scan of the 21,627 files and git; memory is the tree of `zed` and its children (git; no language server starts, as no file is open). Zed has no extension host process (extensions run as wasm in `zed`), so `exthost_mib` is 0 and only whole-tree rows compare. The load was high: the bench waited 30 min for a 1-minute load under 20 and did not get one (20.8 to 74.6), and the runs had 16.3 to 67.7; memory pressure stayed normal (level 1), compressor 2.1 to 2.7 GiB, swap 1.8 GiB.
- | median (min to max) | Vscrs | VS Code 1.148.0 | Zed 1.30.2 |
+ | median (min to max) | VSRustium | VS Code 1.148.0 | Zed 1.30.2 |
|---|---|---|---|
| window | 1.16 s (0.87 to 2.88) | 1.24 s (0.46 to 2.61) | 1.34 s (0.39 to 1.91) |
| ready | 3.44 s (2.57 to 9.23) | 12.98 s (4.75 to 14.01) | 2.93 s (1.57 to 3.80) |
@@ -978,11 +978,11 @@ What to do (milestone 21, in order):
| quit | 0.15 s (0.12 to 0.26) | 0.23 s (0.18 to 23.81) | 0.33 s (0.28 to 0.49) |
| 1-minute load | 31.5 (21.5 to 60.9) | 26.3 (16.3 to 67.7) | 28.7 (16.8 to 57.9) |
- The port is behind Zed on peak footprint by 111 MiB (29%), peak RSS by 192 MiB (34%) and RSS at 90 s by 93 MiB (34%); footprint at 90 s and idle CPU are level, CPU until ready (21% less) and quit are ahead. The times are no result at this load: the port's ready is 0.51 s behind at the median with two runs at 8.45 and 9.23 s (loads 31.5 and 60.9), and in the quietest run (run 5, load 16 to 22) its window came at 0.93 s against Zed's 0.39 and VS Code's 0.46, so window and ready against Zed need a quiet machine. VS Code's quit of 23.81 s in run 4 is one sample. `bun port/tools/bench-check.ts run.tsv vscrs zed` on this run: BEHIND on `peak_footprint_mib` and `peak_rss_mib`, `window_s` over its budget at load 31.5. Not measured: typing latency, scroll frames and memory with files open (language servers) in Zed. The command, on the Studio host lane after the release build and package-app, VS Code unpacked in `/tmp/vscode`:
+ The port is behind Zed on peak footprint by 111 MiB (29%), peak RSS by 192 MiB (34%) and RSS at 90 s by 93 MiB (34%); footprint at 90 s and idle CPU are level, CPU until ready (21% less) and quit are ahead. The times are no result at this load: the port's ready is 0.51 s behind at the median with two runs at 8.45 and 9.23 s (loads 31.5 and 60.9), and in the quietest run (run 5, load 16 to 22) its window came at 0.93 s against Zed's 0.39 and VS Code's 0.46, so window and ready against Zed need a quiet machine. VS Code's quit of 23.81 s in run 4 is one sample. `bun port/tools/bench-check.ts run.tsv vsrustium zed` on this run: BEHIND on `peak_footprint_mib` and `peak_rss_mib`, `window_s` over its budget at load 31.5. Not measured: typing latency, scroll frames and memory with files open (language servers) in Zed. The command, on the Studio host lane after the release build and package-app, VS Code unpacked in `/tmp/vscode`:
```
FOLDER=$HOME/Developer/vscode-ref-1.148.0 SETTINGS='{"chat.disableAIFeatures": true}' \
- APPS='vscrs=native/target/Vscrs.app/Contents/MacOS/vscrs;vscode="/tmp/vscode/Visual Studio Code.app/Contents/MacOS/Code" --disable-extension GitHub.copilot-chat;zed=port/tools/bench-zed "$BENCH_DATA" "$FOLDER"' \
+ APPS='vsrustium=native/target/VSRustium.app/Contents/MacOS/vsrustium;vscode="/tmp/vscode/Visual Studio Code.app/Contents/MacOS/Code" --disable-extension GitHub.copilot-chat;zed=port/tools/bench-zed "$BENCH_DATA" "$FOLDER"' \
port/tools/bench > run.tsv
```
@@ -991,7 +991,7 @@ What to do (milestone 21, in order):
- Every app launch takes focus, so GUI tools on the Studio desktop take turns behind `/tmp/port-gui.lock` (`gui-lock.sh`). Two tart macOS VMs add lanes with their own desktop, focus and pasteboard (Apple allows two macOS VMs per host): `port/tools/studio --lane 'FILE=notes.txt port/tools/ui-pair /tmp/out port/fixtures/ui-pair/m12/compare.json'` runs the command in the first free lane (host, `gui-vm1`, `gui-vm2`; `port/tools/gui-lane` on the Studio). Tools called without it behave as before.
- 2026-11-29 (Artur): gui-vm1 and gui-vm2 are deleted, so `--lane` runs on the host desktop only (gui-lane lists running VMs). `port/tools/gui-vm gui-vm1` recreates one; the base image downloads again.
- In a VM the command runs over ssh in the same mirror path; `~/Developer/vscode-gpui-work`, `~/Developer/vscode-ref-1.148.0` and `~/Developer/vscode-ref` are tart `--dir` shares (`port/tools/gui-vm`; a VM started before the 1.148.0 share sees only the 1.147.0 one), read-only, linked at the host's paths. Outputs go to `/tmp`: `/tmp` paths in the command are copied into the VM before the run and back after it, also when the caller's timeout cuts its ssh. The reference cache of `ui-pair` is per machine (`~/Library/Caches` of the VM user).
-- `port/tools/gui-vm gui-vm1` (on the Studio) creates, starts and provisions a VM, and can run again: the Cirrus Labs `macos-golden-gate-base` image (SIP off), 4 CPUs, 6 GB, the host's 1814x910 pt display at 2x and global defaults (dark appearance and glass tint change the window chrome) and time zone, automatic updates off, cua-driver granted Accessibility and Screen Recording through TCC.db and replayd's approvals without a click. `port/tools/gui-vm gui-vm2 gui-vm1` clones a stopped gui-vm1, so both run the same build (27.2.1, 26B131, as the host). The VMs run as launchd jobs `org.vscrs.gui-vm*`: `tart run` from an ssh session stops with it.
+- `port/tools/gui-vm gui-vm1` (on the Studio) creates, starts and provisions a VM, and can run again: the Cirrus Labs `macos-golden-gate-base` image (SIP off), 4 CPUs, 6 GB, the host's 1814x910 pt display at 2x and global defaults (dark appearance and glass tint change the window chrome) and time zone, automatic updates off, cua-driver granted Accessibility and Screen Recording through TCC.db and replayd's approvals without a click. `port/tools/gui-vm gui-vm2 gui-vm1` clones a stopped gui-vm1, so both run the same build (27.2.1, 26B131, as the host). The VMs run as launchd jobs `org.vsrustium.gui-vm*`: `tart run` from an ssh session stops with it.
- Fidelity (m12/compare, FILE=notes.txt): two host runs and two VM runs are each bit-identical; host against VM differs by at most 2/255 in shadows and blending, and up to 24/255 on 361 px of the traffic lights. Parallel runs on gui-vm1 and gui-vm2 give the port's shots of a serial run, 0 px.
- Disk: each VM disk grows to 64 GB in `~/.tart/vms`, next to the 38 GB image in `~/.tart/cache`.
@@ -1034,7 +1034,7 @@ What to do (milestone 21, in order):
- Run: `port/tools/linux-build port/tools/linux/smoke` starts the release build under Xvfb (mesa lavapipe for Vulkan) on a git copy of port/fixtures/workspace and runs `port/fixtures/extensions/linux-smoke-tests`: git opens the repository, emmet activates, an edit saves to disk. The startup "eager extensions activated" line can miss vscode.git on the 2-CPU container, so the test activates it itself.
- Tests that read the platform: readdir order (APFS sorts, ext4 and overlayfs do not), the default shell's profile icon (`terminal` for zsh, `terminal-bash` for bash), GPUI's `super` for the platform key, and the settings import fixture's `.config` link to its `Library/Application Support`.
- Local history date labels use chrono's `%B %-d, %Y at %-I:%M %p` on both systems, the text V8's `Intl.DateTimeFormat('en')` prints (NSDateFormatter needed U+202F and `/` fixes); `date_labels_read_as_the_english_intl_format` checks it.
-- Package (`port/tools/package-linux`, the app files from `port/tools/app-files.ts`): `Vscrs-linux-<arch>/` as VS Code's Linux archive lays it out, the release binary named `applicationName` (debug info stripped: `debug = "limited"` stays in the ELF on Linux, 571 MB with it) beside bun, `bin/vscrs` from upstream's `resources/linux/bin/code.sh`, `com.rokartur.vscrs.desktop` from upstream's `resources/linux/code.desktop` (Exec is `vscrs` on PATH, as an archive does not know where it is unpacked; `StartupWMClass` is `product.linuxDesktopName`, which the windows set as their X11 WM_CLASS and Wayland app id) with `vscrs.png` (`port/AppIcon.png`, ictool's 512 px render of `port/AppIcon.icon`), the app files in `resources/app` (`product::BUNDLED_APP`, which the binary takes as its root when it is there). Native modules built for another system or arch are rebuilt with node-gyp from their source; a binding.gyp that builds nothing on Linux (@vscode/fs-copyfile) leaves the module out, any other foreign binary fails the package. It writes `Vscrs-<version>-linux-<arch>.tar.gz` and the `linux-<arch>.json` and `linux-<arch>-prerelease.json` feed entries (`gallery::CURRENT_TARGET_PLATFORM` is `linux-<arch>` on Linux, for the gallery and the update feed). arm64 1.147.0: folder 412 MB, archive 131 MB; the extracted archive passes `port/tools/linux/smoke` with `APP=<folder>/vscrs` in a container without the reference mounted. linux-x64 builds on GitHub Actions (`.github/workflows/linux.yml`, run by hand, the README's build steps with upstream's pnpm install building the native modules for Linux). The binary needs the glibc it links: GLIBC_2.39 for both (Debian 13's container, the ubuntu-24.04 runner; ubuntu-latest, 26.04, asked for 2.43 and the x64 package did not start on Debian 13). The same folder is also `Vscrs-<version>-linux-<arch>.AppImage` (`port/tools/linux/appimage`, run by package-linux): the folder is the AppDir as it is (the desktop file and its icon at the top), `AppRun` a link to the binary added in the image only, in a zstd squashfs behind AppImage's static type 2 runtime (type2-runtime release 20251108, pinned by SHA-256), which needs `fusermount` or `fusermount3` and no libfuse. It bundles no library: the system libraries are the archive's (WebKitGTK 4.1, GTK 3, OpenSSL 3), so on Fedora 45, which has OpenSSL 4 only, neither starts without `libssl.so.3` (`openssl3-libs`). From the AppImage the app runs in the mount and counts as installed (its executable sits beside `resources/app`) and Download opens what the archive's build opens (`downloadUrl`, else the feed's archive); Shell Command: Install links `~/.local/bin/<applicationName>` to the mount's `bin/<applicationName>`, which goes away when the app quits (open gap). x64 1.148.0-insider: AppImage 115 MB (archive 137 MB), made in 3 s on 24 cores; on Fedora 45 with `openssl3-libs` it prints `--version` and, in a Wayland session, opens a folder with the binary and the extension host's bun running from the mount (`handshake done`), and the mount goes away when the app quits.
+- Package (`port/tools/package-linux`, the app files from `port/tools/app-files.ts`): `VSRustium-linux-<arch>/` as VS Code's Linux archive lays it out, the release binary named `applicationName` (debug info stripped: `debug = "limited"` stays in the ELF on Linux, 571 MB with it) beside bun, `bin/vsrustium` from upstream's `resources/linux/bin/code.sh`, `com.rokartur.vsrustium.desktop` from upstream's `resources/linux/code.desktop` (Exec is `vsrustium` on PATH, as an archive does not know where it is unpacked; `StartupWMClass` is `product.linuxDesktopName`, which the windows set as their X11 WM_CLASS and Wayland app id) with `vsrustium.png` (`port/AppIcon.png`, ictool's 512 px render of `port/AppIcon.icon`), the app files in `resources/app` (`product::BUNDLED_APP`, which the binary takes as its root when it is there). Native modules built for another system or arch are rebuilt with node-gyp from their source; a binding.gyp that builds nothing on Linux (@vscode/fs-copyfile) leaves the module out, any other foreign binary fails the package. It writes `VSRustium-<version>-linux-<arch>.tar.gz` and the `linux-<arch>.json` and `linux-<arch>-prerelease.json` feed entries (`gallery::CURRENT_TARGET_PLATFORM` is `linux-<arch>` on Linux, for the gallery and the update feed). arm64 1.147.0: folder 412 MB, archive 131 MB; the extracted archive passes `port/tools/linux/smoke` with `APP=<folder>/vsrustium` in a container without the reference mounted. linux-x64 builds on GitHub Actions (`.github/workflows/linux.yml`, run by hand, the README's build steps with upstream's pnpm install building the native modules for Linux). The binary needs the glibc it links: GLIBC_2.39 for both (Debian 13's container, the ubuntu-24.04 runner; ubuntu-latest, 26.04, asked for 2.43 and the x64 package did not start on Debian 13). The same folder is also `VSRustium-<version>-linux-<arch>.AppImage` (`port/tools/linux/appimage`, run by package-linux): the folder is the AppDir as it is (the desktop file and its icon at the top), `AppRun` a link to the binary added in the image only, in a zstd squashfs behind AppImage's static type 2 runtime (type2-runtime release 20251108, pinned by SHA-256), which needs `fusermount` or `fusermount3` and no libfuse. It bundles no library: the system libraries are the archive's (WebKitGTK 4.1, GTK 3, OpenSSL 3), so on Fedora 45, which has OpenSSL 4 only, neither starts without `libssl.so.3` (`openssl3-libs`). From the AppImage the app runs in the mount and counts as installed (its executable sits beside `resources/app`) and Download opens what the archive's build opens (`downloadUrl`, else the feed's archive); Shell Command: Install links `~/.local/bin/<applicationName>` to the mount's `bin/<applicationName>`, which goes away when the app quits (open gap). x64 1.148.0-insider: AppImage 115 MB (archive 137 MB), made in 3 s on 24 cores; on Fedora 45 with `openssl3-libs` it prints `--version` and, in a Wayland session, opens a folder with the binary and the extension host's bun running from the mount (`handshake done`), and the mount goes away when the app quits.
- Desktop services over D-Bus (zbus 5, the one gpui_linux's ashpd and oo7 build; blocking proxies on their own threads, each service optional): power (`power/linux.rs`) takes idle time from Mutter's IdleMonitor, else the ScreenSaver service's `GetSessionIdleTime`; the lock state from logind's session `LockedHint`; the power source from UPower's `OnBattery`; `prevent-display-sleep` is a ScreenSaver `Inhibit` cookie and `prevent-app-suspension` a logind `sleep` inhibitor fd; the events are logind's `PrepareForSleep` and `PrepareForShutdown`, as Electron has no lock, battery, thermal or speed limit events on Linux. A blocker the bus refuses still counts as started, as Electron's map of ids. Metered is NetworkManager's `Metered` (`YES` or `GUESS_YES`), the screen reader AT-SPI's `org.a11y.Status` `ScreenReaderEnabled`, reduced motion the portal's `org.gnome.desktop.interface` `enable-animations` (Chromium follows GTK's `gtk-enable-animations`). None of these ran against a desktop session yet: the container has no session or system bus.
- Secrets (`exthost/src/main_thread_secret_state.rs`) are Secret Service items of the default collection through oo7 (gpui_linux's version and features), with keytar's `service` and `account` attributes; the test runs the flow on oo7's file keyring.
- Webviews (`app/src/webview/linux.rs`, the host page and its answers shared with macOS in `webview.rs`) are WebKitGTK 4.1 views, each in an undecorated GTK popup window whose X window is reparented into GPUI's; a notebook's back layer webview sits in a clip window whose X input shape passes presses through to GPUI outside the outputs. GTK runs on GPUI's main thread, iterated every 8 ms (`pump_gtk`). Keyboard focus moves with `XSetInputFocus` (a reparented window gets none from the window manager); Cut, Copy and Paste run WebKitGTK's editing commands. WebKitGTK refuses a URI scheme handler on `https`, so each view's ephemeral context sets a loopback proxy as its https proxy: `CONNECT` to `*.vscode-webview.vscode-cdn.net` and `*.vscode-resource.vscode-cdn.net` is answered over TLS with a process-local self-signed certificate the context trusts for those hosts only (the host page's files, and resources as the macOS scheme handler reads them), every other host is tunneled. OpenSSL serves that TLS: GnuTLS, glib-networking's backend, refuses a resource host's SNI (`file+.vscode-resource...`, the `+` is no DNS character). The proxy answers only connections /proc/net/tcp shows as the app user's. WebKit (WebKitGTK 2.54, WKWebView on macOS 27) blocks every http load in the https host page as mixed content, loopback included, where Chromium lets loopback through (the Simple Browser's `http://localhost` dev servers), and has no per-host setting: both platforms register `http` as a secure scheme and add content rules (`HTTP_LOOPBACK_ONLY_RULES`) that block http except `localhost`, `*.localhost`, `127.*` and `[::1]`. Unlike Chromium, a network http image is blocked rather than upgraded to https. Wayland sessions show no webview (GPUI has no X window there; the open M23 row).
@@ -1217,9 +1217,9 @@ Work the port does at another time than 1.147.0, accepted with a measured same r
## Built-in extensions of the port
-- Decision (Artur, 2026-12-04): Vscrs ships built-in extensions upstream does not have, enabled by default and disabled like any built-in (Extensions view, Disable). Two come from Open VSX, two are the port's own.
+- Decision (Artur, 2026-12-04): VSRustium ships built-in extensions upstream does not have, enabled by default and disabled like any built-in (Extensions view, Disable). Two come from Open VSX, two are the port's own.
- Open VSX, listed in port/product.json `portBuiltInExtensions` (a key upstream's product.json does not have, so upstream's `builtInExtensions` stays its own list): `tombi-toml.tombi` 1.11.4 (MIT, TOML completion, hovers, diagnostics and formatting from a native Rust language server, one VSIX per target platform, about 20 MB) over `tamasfe.even-better-toml` 0.21.2 (taplo as wasm in the extension host, 69 MB universal): a native server costs less time and memory. `christian-kohler.path-intellisense` 2.8.0 (MIT, file and folder completions in strings). Tombi reads the JSON Schema Store catalog (`https://www.schemastore.org/api/json/catalog.json`) to complete known files such as Cargo.toml and pyproject.toml, as upstream's json extension does with `json.schemaDownload.enable`.
-- The port's own, in port/extensions (CommonJS, no build step; the logic without the vscode API in each `lib.js`, tested by `bun test port/extensions`): `vscrs.apache`, the language `apacheconf` with the grammar of `mrmlnc.vscode-apache` 1.2.0 (MIT), whose manifest also claims every `.conf` file, which upstream's ini extension owns: this one claims `.htaccess`, `httpd.conf`, `apache2.conf` and the `*.conf` files under `apache`, `apache2`, `httpd` and `sites-*` folders instead; directive completions and hovers come from `directives.json`, the 733 rows of the Apache HTTP Server 2.4 directive quick reference (Apache-2.0). `vscrs.dotenv-intellisense`: the variable names of the `.env` and `.env.*` files in the document's folder and its parents up to the workspace folder, completed where code reads the environment (`process.env.`, `import.meta.env.`, `os.environ[`, `os.getenv(`, `ENV[`, `os.Getenv(`, `env::var(`, `getenv(`, `$_ENV[`) and after `${` in a .env file; upstream's dotenv extension keeps the .env syntax. The files are read on each completion request, in the extension host, with no cache and no watcher. Values are never shown, only the files that define a name.
+- The port's own, in port/extensions (CommonJS, no build step; the logic without the vscode API in each `lib.js`, tested by `bun test port/extensions`): `vsrustium.apache`, the language `apacheconf` with the grammar of `mrmlnc.vscode-apache` 1.2.0 (MIT), whose manifest also claims every `.conf` file, which upstream's ini extension owns: this one claims `.htaccess`, `httpd.conf`, `apache2.conf` and the `*.conf` files under `apache`, `apache2`, `httpd` and `sites-*` folders instead; directive completions and hovers come from `directives.json`, the 733 rows of the Apache HTTP Server 2.4 directive quick reference (Apache-2.0). `vsrustium.dotenv-intellisense`: the variable names of the `.env` and `.env.*` files in the document's folder and its parents up to the workspace folder, completed where code reads the environment (`process.env.`, `import.meta.env.`, `os.environ[`, `os.getenv(`, `ENV[`, `os.Getenv(`, `env::var(`, `getenv(`, `$_ENV[`) and after `${` in a .env file; upstream's dotenv extension keeps the .env syntax. The files are read on each completion request, in the extension host, with no cache and no watcher. Values are never shown, only the files that define a name.
- Read before writing them: `dotenv.dotenv-vscode` 1.5.8 (the same completion, but it activates on `*` and makes a webview editor the default editor of .env files, so it is not shipped), `mrmlnc.vscode-apache` (grammar only; no Apache completion extension exists on Open VSX) and `christian-kohler.path-intellisense` (the completion provider's shape).
-- Activation (Artur: nothing runs that the session does not need): `vscrs.apache` on `onLanguage:apacheconf`; `vscrs.dotenv-intellisense` on `workspaceContains:.env`, `.env.local` or `.env.example` (plain names, a stat per folder, no search) or on opening a .env file, so a monorepo whose .env files sit only in subfolders gets the completions once one of them is opened. The Open VSX manifests are narrowed by port/product.json `activationEvents`, which `fetch-builtin-extensions` writes into the fetched package.json: tombi on `onLanguage:toml` and `onLanguage:cargoLock` instead of `workspaceContains:**/*.toml`, which ran a file search in every opened folder and started its server with no TOML file open; path-intellisense on `onLanguage` (the first opened editor, languageService.ts) instead of `*`, which at the start of every window with a folder ran a file search for its tsconfig.json and jsconfig.json and set up their watchers, before any file was open.
+- Activation (Artur: nothing runs that the session does not need): `vsrustium.apache` on `onLanguage:apacheconf`; `vsrustium.dotenv-intellisense` on `workspaceContains:.env`, `.env.local` or `.env.example` (plain names, a stat per folder, no search) or on opening a .env file, so a monorepo whose .env files sit only in subfolders gets the completions once one of them is opened. The Open VSX manifests are narrowed by port/product.json `activationEvents`, which `fetch-builtin-extensions` writes into the fetched package.json: tombi on `onLanguage:toml` and `onLanguage:cargoLock` instead of `workspaceContains:**/*.toml`, which ran a file search in every opened folder and started its server with no TOML file open; path-intellisense on `onLanguage` (the first opened editor, languageService.ts) instead of `*`, which at the start of every window with a folder ran a file search for its tsconfig.json and jsconfig.json and set up their watchers, before any file was open.
- Shipping: `port/tools/fetch-builtin-extensions [<folder> <target>]` downloads both product lists, a platform-specific VSIX for the target platform. A checkout run scans them from `.build/builtInExtensions` (`exthost::scan::scan_dev_system_extensions`) and port/extensions from the source tree (`scan_system_extensions`, not in a package). A package (`port/tools/app-files.ts` `copyAppFiles`, through `port/tools/shipped-files.ts` `portBuiltins`) fetches them into `native/target/builtInExtensions-<target>` and copies them with port/extensions into the app's `extensions` folder. Upstream's own `builtInExtensions` (js-debug and its companions) are still not copied into a package.
diff --git a/port/patches/extensions-configuration-editing.patch b/port/patches/extensions-configuration-editing.patch
index 0b0603a4ada..f37fa3a87f4 100644
--- a/port/patches/extensions-configuration-editing.patch
+++ b/port/patches/extensions-configuration-editing.patch
@@ -7,7 +7,7 @@ index 1b1326f4f4c..aac26eeaba1 100644
"url": "vscode://schemas/settings/folder"
},
+ {
-+ "fileMatch": "/.vscrs/settings.json",
++ "fileMatch": "/.vsrustium/settings.json",
+ "url": "vscode://schemas/settings/folder"
+ },
{
@@ -15,7 +15,7 @@ index 1b1326f4f4c..aac26eeaba1 100644
"url": "vscode://schemas/launch"
},
+ {
-+ "fileMatch": "/.vscrs/launch.json",
++ "fileMatch": "/.vsrustium/launch.json",
+ "url": "vscode://schemas/launch"
+ },
{
@@ -23,7 +23,7 @@ index 1b1326f4f4c..aac26eeaba1 100644
"url": "vscode://schemas/tasks"
},
+ {
-+ "fileMatch": "/.vscrs/tasks.json",
++ "fileMatch": "/.vsrustium/tasks.json",
+ "url": "vscode://schemas/tasks"
+ },
{
@@ -31,7 +31,7 @@ index 1b1326f4f4c..aac26eeaba1 100644
"url": "vscode://schemas/mcp"
},
+ {
-+ "fileMatch": "/.vscrs/mcp.json",
++ "fileMatch": "/.vsrustium/mcp.json",
+ "url": "vscode://schemas/mcp"
+ },
{
@@ -42,7 +42,7 @@ index 1b1326f4f4c..aac26eeaba1 100644
"url": "vscode://schemas/extensions"
},
+ {
-+ "fileMatch": "/.vscrs/extensions.json",
++ "fileMatch": "/.vsrustium/extensions.json",
+ "url": "vscode://schemas/extensions"
+ },
{
diff --git a/port/patches/src-extHostInertModules.patch b/port/patches/src-extHostInertModules.patch
index 8ef624d5cf1..e001e24eb3e 100644
--- a/port/patches/src-extHostInertModules.patch
+++ b/port/patches/src-extHostInertModules.patch
@@ -13,7 +13,7 @@ index 00000000000..9d8701bf36c
+import { URI } from '../../../base/common/uri.js';
+import type { INodeModuleFactory } from './extHostRequireInterceptor.js';
+
-+// Vscrs sends no telemetry (port/notes.md, milestone 19): the telemetry and experimentation client packages
++// VSRustium sends no telemetry (port/notes.md, milestone 19): the telemetry and experimentation client packages
+// built-in extensions require are served as inert modules, so their network code is never loaded.
+
+class InertTelemetryReporter {
diff --git a/port/plans/uplift-1.147.0-to-1.148.0.md b/port/plans/uplift-1.147.0-to-1.148.0.md
index 08bc3687cc1..9eab6ea9c05 100644
--- a/port/plans/uplift-1.147.0-to-1.148.0.md
+++ b/port/plans/uplift-1.147.0-to-1.148.0.md
@@ -2,7 +2,7 @@
## 1. Summary
-Vscrs follows 1.147.0 (`package.json`, `VERSION` in `native/crates/app/src/main.rs`); the newest upstream release is 1.148.0 (tag 661626d0e72, 2026-11-24). Upstream changes 2,753 files (+160,130/-49,131), 2,583 of them in `src/vs`, `src/vscode-dts`, `extensions` and `product.json`. Stable `vscode.d.ts` is unchanged.
+VSRustium follows 1.147.0 (`package.json`, `VERSION` in `native/crates/app/src/main.rs`); the newest upstream release is 1.148.0 (tag 661626d0e72, 2026-11-24). Upstream changes 2,753 files (+160,130/-49,131), 2,583 of them in `src/vs`, `src/vscode-dts`, `extensions` and `product.json`. Stable `vscode.d.ts` is unchanged.
Refreshed on branch `port-m21-plan` (f30c69689bf) against this branch's ledger: 594 rows, 422 `verified`, 126 `removed`, 28 `n/a`, and 17 not closed yet (12 `ported`, 1 `partial`, 4 `todo`; notebooks, auxiliary windows, modernUI, welcome walkthrough), which other sessions are closing on 1.147.0. Three rows the diff touches are among them: `workbench/contrib/modernUI` (todo), `workbench/contrib/files` (ported) and `workbench/contrib/notebook` (ported).
diff --git a/port/product.json b/port/product.json
index d65549b1617..a92eacb31df 100644
--- a/port/product.json
+++ b/port/product.json
@@ -1,14 +1,14 @@
{
- "nameShort": "Vscrs",
- "nameLong": "Vscrs",
- "applicationName": "vscrs",
- "dataFolderName": ".vscrs",
- "darwinBundleIdentifier": "com.rokartur.vscrs",
- "linuxDesktopName": "com.rokartur.vscrs",
- "linuxIconName": "vscrs",
- "urlProtocol": "vscrs",
- "updateUrl": "https://github.com/rokartur/vscrs/releases",
- "releaseNotesUrl": "https://github.com/rokartur/vscrs/releases",
+ "nameShort": "VSRustium",
+ "nameLong": "VSRustium",
+ "applicationName": "vsrustium",
+ "dataFolderName": ".vsrustium",
+ "darwinBundleIdentifier": "com.rokartur.vsrustium",
+ "linuxDesktopName": "com.rokartur.vsrustium",
+ "linuxIconName": "vsrustium",
+ "urlProtocol": "vsrustium",
+ "updateUrl": "https://github.com/rokartur/vsrustium/releases",
+ "releaseNotesUrl": "https://github.com/rokartur/vsrustium/releases",
"release": 2,
"extensionEnabledApiProposals": {
"mrleemurray.theme-2026": [
diff --git a/port/results/api-tests.md b/port/results/api-tests.md
index b98ef258576..ea77a90d67e 100644
--- a/port/results/api-tests.md
+++ b/port/results/api-tests.md
@@ -63,11 +63,11 @@ On the Studio at 3f4cfaea1d0 (branch port-m20-check), `cargo build --release -p
| the target's suites | 318 | 28 | 0 | 0 |
| api-workspace (exit 0 after 1 s) | 4 | 0 | 0 | 0 |
-The target is met exactly: #49125 is pending again, as in the reference run, because the Studio window had no focus. The first run gave 321/45/36: `custom root certificate` failed ("self signed certificate") in three runs of `MOCHA_GREP='network proxy'`. The binary ran the extension host bundle of another mirror: this mirror was seeded as a copy of port-src-integrate, and the copied build scripts of app, diff and files kept that mirror's `VSCODE_SRC` (their dep info watches its `native/vscode_src.rs`), so `exthost_entry` loaded port-src-integrate's stale `out-exthost/`. `port/tools/studio` now drops those build script dirs when it seeds a mirror; after that `strings vscrs` names only this mirror, and the test passes (2 passing, 1 pending, 0 failing).
+The target is met exactly: #49125 is pending again, as in the reference run, because the Studio window had no focus. The first run gave 321/45/36: `custom root certificate` failed ("self signed certificate") in three runs of `MOCHA_GREP='network proxy'`. The binary ran the extension host bundle of another mirror: this mirror was seeded as a copy of port-src-integrate, and the copied build scripts of app, diff and files kept that mirror's `VSCODE_SRC` (their dep info watches its `native/vscode_src.rs`), so `exthost_entry` loaded port-src-integrate's stale `out-exthost/`. `port/tools/studio` now drops those build script dirs when it seeds a mirror; after that `strings vsrustium` names only this mirror, and the test passes (2 passing, 1 pending, 0 failing).
### Second completion check, milestone 20
-On the Studio at d9dfa874f63 (vscrs/main after the Linux platform, debug memory, custom editor diff, testing results and breadcrumbs merges) with the Go Back color fix (port/results/pixels.md), `cargo build --release -p app && port/tools/build-exthost && port/tools/api-tests`, no MOCHA_GREP, host lane.
+On the Studio at d9dfa874f63 (vsrustium/main after the Linux platform, debug memory, custom editor diff, testing results and breadcrumbs merges) with the Go Back color fix (port/results/pixels.md), `cargo build --release -p app && port/tools/build-exthost && port/tools/api-tests`, no MOCHA_GREP, host lane.
| suites | passing | pending | failing | not reached |
|--------|---------|---------|---------|-------------|
@@ -81,7 +81,7 @@ The target is met: every test of the target's suites ran and none fails. The one
### Third completion check, milestone 20
-On the Studio at 99caa36b7ed (vscrs/main after testing results, inline and view coverage, the Windows seams and the README and benchmark), `port/tools/build-exthost && cargo gc build --release -p app` in a build slot, then `port/tools/api-tests` in the host lane, no MOCHA_GREP.
+On the Studio at 99caa36b7ed (vsrustium/main after testing results, inline and view coverage, the Windows seams and the README and benchmark), `port/tools/build-exthost && cargo gc build --release -p app` in a build slot, then `port/tools/api-tests` in the host lane, no MOCHA_GREP.
| suites | passing | pending | failing | not reached |
|--------|---------|---------|---------|-------------|
@@ -93,11 +93,11 @@ On the Studio at 99caa36b7ed (vscrs/main after testing results, inline and view
The target is met exactly, as in the first completion check: #49125 is pending, the Studio window had no focus.
-Rerun at 2cb63eb702e (vscrs/main after pill tabs, the settings import layout and the top bar's extension icons, which touch the extension host pipe), same build steps, `port/tools/api-tests` under `port/tools/gui-lock.sh` on the host desktop (the VM lane has no cargo): api-folder 322/45/35 (exit 1 after 66 s), the removed features and `env.remoteName` as above, the target's suites 319/27/0 with #49125 passing (the window had focus, as in the second completion check); api-workspace 4/0/0 (exit 0 after 1 s).
+Rerun at 2cb63eb702e (vsrustium/main after pill tabs, the settings import layout and the top bar's extension icons, which touch the extension host pipe), same build steps, `port/tools/api-tests` under `port/tools/gui-lock.sh` on the host desktop (the VM lane has no cargo): api-folder 322/45/35 (exit 1 after 66 s), the removed features and `env.remoteName` as above, the target's suites 319/27/0 with #49125 passing (the window had focus, as in the second completion check); api-workspace 4/0/0 (exit 0 after 1 s).
### Against the 1.148.0 reference, milestone 21
-On the Studio at 6b7abc0a66c (the uplift rebased onto vscrs/main f488ba6ac98), `port/tools/build-exthost && cargo gc build --release -p app` in a build slot with the mirror's `upstream` on `~/Developer/vscode-ref-1.148.0`, then `REF=~/Developer/vscode-ref-1.148.0 port/tools/api-tests` under `port/tools/gui-lock.sh` on the host desktop, no MOCHA_GREP.
+On the Studio at 6b7abc0a66c (the uplift rebased onto vsrustium/main f488ba6ac98), `port/tools/build-exthost && cargo gc build --release -p app` in a build slot with the mirror's `upstream` on `~/Developer/vscode-ref-1.148.0`, then `REF=~/Developer/vscode-ref-1.148.0 port/tools/api-tests` under `port/tools/gui-lock.sh` on the host desktop, no MOCHA_GREP.
| suites | passing | pending | failing | not reached |
|--------|---------|---------|---------|-------------|
@@ -310,7 +310,7 @@ webview.test.ts ("loads many local resources concurrently without crashing") pas
## M10 settings and storage
-On the Studio at 1ed0e932 (settings.json reload in the workbench, `.vscrs` folders). `MOCHA_GREP="vscode API - configuration|vscode API - globalState" SUITE_TIMEOUT=300 port/tools/api-tests`: api-folder 5/0/0/397 (exit 0 after 1s), api-workspace 0/0/0/4. All three `configuration` tests and both `globalState / workspaceState` tests pass.
+On the Studio at 1ed0e932 (settings.json reload in the workbench, `.vsrustium` folders). `MOCHA_GREP="vscode API - configuration|vscode API - globalState" SUITE_TIMEOUT=300 port/tools/api-tests`: api-folder 5/0/0/397 (exit 0 after 1s), api-workspace 0/0/0/4. All three `configuration` tests and both `globalState / workspaceState` tests pass.
## M12 workspace trust
diff --git a/port/results/auxiliary-windows.md b/port/results/auxiliary-windows.md
index c2981eab1a4..9bd467a35fa 100644
--- a/port/results/auxiliary-windows.md
+++ b/port/results/auxiliary-windows.md
@@ -7,7 +7,7 @@ Compact mode and locked groups, `port/fixtures/ui-pair/m11/editor-window-compact
Editor menus and the watermark, `port/fixtures/ui-pair/m11/editor-menus.json` (`FILE=notes.txt`, dark) and `port/fixtures/ui-pair/m11/watermark-tips.json` (`FOLDER=` and `SETTINGS={"workbench.tips.enabled":true}`): the editor title's `...` menu with Reopen Editor With and the button's active background, Two Columns Editor Layout (the empty groups' watermarks centered as the reference's, dimmed alike when inactive), the empty group's context menu, a new empty editor window (its group drawn 16px up, half under the title bar's border) and the same window in compact mode (the toolbar back in the group's top 35px, the title at the reference's y), the empty window's watermark shortcuts with their key caps. `magick compare -metric AE -fuzz 3%` on the 2048x1536 captures: title-more 2181, two-columns 2134, empty-menu 8184, empty-aux 1254, empty-aux-compact 300 pixels; the watermark 329 in its 700x260 crop. `cargo test -p app editor_menus editor_type_picker auxiliary_windows`.
Differences left:
-- The letterpress is Vscrs's, not Code - OSS's (branding).
+- The letterpress is VSRustium's, not Code - OSS's (branding).
- In `moved` of auxiliary-windows.json the two apps list the same two windows in the other order (z-order after the move: the port lists the main window first, the reference the editor window); one of two runs.
- While a tab drags over another window the port draws its drag image (the tab label) in that window; Chromium's native drag image is a window of its own the captures leave out.
- With a file on the command line neither app restores the editor windows (editorParts.ts restores them only when the main part restores its state); the restore itself is covered by the test above, not by the pair.
diff --git a/port/results/benchmark.md b/port/results/benchmark.md
index f9147e95555..70297defad9 100644
--- a/port/results/benchmark.md
+++ b/port/results/benchmark.md
@@ -1,8 +1,8 @@
# Benchmark
-Vscrs against VS Code 1.148.0, both packaged release builds, opening the VS Code 1.148.0 checkout (21627 files, a git repository with its `node_modules`), measured from outside with `port/tools/bench`. Median of 5 runs after one warm-up run per app, runs alternating between the apps.
+VSRustium against VS Code 1.148.0, both packaged release builds, opening the VS Code 1.148.0 checkout (21627 files, a git repository with its `node_modules`), measured from outside with `port/tools/bench`. Median of 5 runs after one warm-up run per app, runs alternating between the apps.
-| | Vscrs | VS Code 1.148.0 |
+| | VSRustium | VS Code 1.148.0 |
|---|---|---|
| Window with the folder | 0.66 s | 0.67 s |
| Ready (CPU settled) | 2.89 s | 5.13 s |
@@ -20,7 +20,7 @@ Vscrs against VS Code 1.148.0, both packaged release builds, opening the VS Code
Setup:
- Machine: Mac Studio, Apple M1 Max (10 cores), 32 GB, macOS 27.2.1. The Studio is shared with other build and test jobs: its load did not fall under 10 in the 20 minutes before the runs, and the highest 1-minute load average of each run was 22 to 62. Memory pressure stayed normal (level 1) in every run, the compressor held 3.8 to 7.6 GiB of other processes' memory and swap was 562 to 578 MiB, so neither app was squeezed; single runs vary with the load, the medians are steadier.
-- Vscrs: `port/tools/package-app` of `vscrs/main` at 7f83fce8753 (a release build, ad-hoc signed, the reference's built-in extensions).
+- VSRustium: `port/tools/package-app` of `vsrustium/main` at 7f83fce8753 (a release build, ad-hoc signed, the reference's built-in extensions).
- VS Code: the official 1.148.0 darwin-arm64 build from `update.code.visualstudio.com`, started with `--disable-extension GitHub.copilot-chat`: the port leaves Copilot Chat out by decision (`port/notes.md`), so both run the same built-in extensions.
- Both: default settings except `"chat.disableAIFeatures": true` (without it VS Code opens its Copilot sign-in dialog on every start of a fresh profile and keeps a core busy drawing it), `--disable-workspace-trust` (otherwise both open the folder in Restricted Mode, without git and most extensions), an empty extensions folder, and one user data folder per app for all its runs, so caches are warm after the warm-up.
@@ -36,12 +36,12 @@ Memory, plainly:
Read with care:
-- Vscrs's tree peaks at about twice its settled footprint (488 against 223 MiB), VS Code's at about 1.8 times (1042 against 584 MiB). When in the 90 s the peaks happen was not traced.
-- VS Code's ready is bimodal (a 2 s pause at about 5 s passes as settled: 4.58 to 5.13 s in 3 runs, 11.79 and 16.02 s in 2); Vscrs's run 5 (window 2.00 s, ready 8.96 s) ran at a load of 62. All stay in the samples.
+- VSRustium's tree peaks at about twice its settled footprint (488 against 223 MiB), VS Code's at about 1.8 times (1042 against 584 MiB). When in the 90 s the peaks happen was not traced.
+- VS Code's ready is bimodal (a 2 s pause at about 5 s passes as settled: 4.58 to 5.13 s in 3 runs, 11.79 and 16.02 s in 2); VSRustium's run 5 (window 2.00 s, ready 8.96 s) ran at a load of 62. All stay in the samples.
Samples (s, %, MiB), in run order:
-| metric | Vscrs | VS Code 1.148.0 |
+| metric | VSRustium | VS Code 1.148.0 |
|---|---|---|
| window | 0.62 0.57 0.66 1.41 2.00 | 0.67 0.51 0.44 0.78 1.12 |
| ready | 2.89 2.26 2.31 4.52 8.96 | 4.58 16.02 11.79 4.71 5.13 |
@@ -64,7 +64,7 @@ To rerun, on the Studio after a release build and `port/tools/package-app`, with
```
FOLDER=$HOME/Developer/vscode-ref-1.148.0 SETTINGS='{"chat.disableAIFeatures": true}' \
-APPS='vscrs=native/target/Vscrs.app/Contents/MacOS/vscrs;vscode="/tmp/vscode/Visual Studio Code.app/Contents/MacOS/Code" --disable-extension GitHub.copilot-chat' \
+APPS='vsrustium=native/target/VSRustium.app/Contents/MacOS/vsrustium;vscode="/tmp/vscode/Visual Studio Code.app/Contents/MacOS/Code" --disable-extension GitHub.copilot-chat' \
port/tools/bench
```
diff --git a/port/results/extensions.md b/port/results/extensions.md
index b665052db65..1517813c424 100644
--- a/port/results/extensions.md
+++ b/port/results/extensions.md
@@ -34,10 +34,10 @@ Open VSX gallery (item 1): exthost 51 passed (baseline 34: +3 request, +5 sign,
Run on the Mac Studio from the m18b-gallery mirror.
-- `cargo test -p app -- nls localization recommendation extension`: 49 passed (extensionsViews.test.ts and extensionQuery.test.ts queries, extensionEnablementService.test.ts states, extensions.json from `.vscode/` and `.vscrs/`, prompt text, NLS index, Configure Display Language items). `cargo test -p exthost -- language_packs scan`: 5 passed.
+- `cargo test -p app -- nls localization recommendation extension`: 49 passed (extensionsViews.test.ts and extensionQuery.test.ts queries, extensionEnablementService.test.ts states, extensions.json from `.vscode/` and `.vsrustium/`, prompt text, NLS index, Configure Display Language items). `cargo test -p exthost -- language_packs scan`: 5 passed.
- `ONLY=port port/tools/ui-pair /tmp/m18-port port/fixtures/extensions/ui-view.json dark` against the reference shots of `REF=~/Developer/vscode-ref-openvsx` (product.overrides.json pointing at open-vsx.org): default views (Installed 0, Popular, Recommended), the `yaml` search (Marketplace view, rows with installs, rating, Install and Install Pre-Release) and the YAML details editor (header, Details README, Marketplace, Categories, Resources) match; the port wraps the Marketplace table's values at a different width.
- Workspace recommendations: `.vscode/extensions.json` with `redhat.vscode-yaml` and `rust-lang.rust-analyzer`, `port/fixtures/extensions/ui-recommendations.json`. Reference and port (`ONLY=port` against the reference shots) both show the prompt "Do you want to install the recommended extensions from rust-lang and Red Hat for this repository?" (Install, Show Recommendations, gear) 8 s after start and the Recommended view with 2 entries, YAML then rust-analyzer. The port's Popular view takes less height above it than the reference's; with the views as view panes (audit of view panes) the default views match the reference's (`port/fixtures/extensions/ui-view.json`: Installed 0, Popular, Recommended collapsed at the same height). cua-driver cannot type `@`, so the `@recommended` search is covered by `cargo test -p app extension` only.
- Display language: with MS-CEINTL.vscode-language-pack-de from Open VSX in `--extensions-dir`, the first start writes `languagepacks.json` (`["de"]`); `--locale de` then shows the Command Palette in German ("Alle Befehle anzeigen", "Ansehen: Erweiterungen anzeigen") and the Outline and Timeline panes as "Gliederung" and "Zeitachse". The dev reference cannot be compared: base/node/nls.ts keeps English for builds without a commit.
-- Configure Display Language (`port/fixtures/extensions/ui-display-language.json`, both apps): the picker matches the reference row for row (English (en) (Current) under Installed, then the Open VSX packs under Available with locale and install count: 中文(简体) (zh-cn) 4M, 日本語 (ja) 1.7M, ...). Picking Deutsch: the reference first asks "Do you trust the publisher "MS-CEINTL"?" (Learn More, Cancel, Trust Publisher & Install); the port has no trusted publisher check yet, installs at once ("Installing Deutsch language support...") and asks "Restart Vscrs to switch to Deutsch?" (Cancel, Restart).
+- Configure Display Language (`port/fixtures/extensions/ui-display-language.json`, both apps): the picker matches the reference row for row (English (en) (Current) under Installed, then the Open VSX packs under Available with locale and install count: 中文(简体) (zh-cn) 4M, 日本語 (ja) 1.7M, ...). Picking Deutsch: the reference first asks "Do you trust the publisher "MS-CEINTL"?" (Learn More, Cancel, Trust Publisher & Install); the port has no trusted publisher check yet, installs at once ("Installing Deutsch language support...") and asks "Restart VSRustium to switch to Deutsch?" (Cancel, Restart).
- `PORT_GALLERY=1 port/tools/extensions-check`: 5 ok, exit 0.
- api-tests `MOCHA_GREP="vscode server cli"` (extensions.test.ts): api-folder 0 passing, 1 pending, 0 failing; the test skips itself outside a remote integration build, as in the reference.
diff --git a/port/results/inlay-hints.md b/port/results/inlay-hints.md
index 7c3f4d648b9..cf3336ec3bb 100644
--- a/port/results/inlay-hints.md
+++ b/port/results/inlay-hints.md
@@ -1,6 +1,6 @@
# Inlay hints, color decorators, inline completions
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven by `port/tools/ui-pair`, Dark Modern, fixtures in `port/fixtures/language-features`. Pairs in `raw/inlay-hints/` (ignored), reference above, port below.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Both driven by `port/tools/ui-pair`, Dark Modern, fixtures in `port/fixtures/language-features`. Pairs in `raw/inlay-hints/` (ignored), reference above, port below.
## Inlay hints and color picker
diff --git a/port/results/language-features.md b/port/results/language-features.md
index 9b7e2e2580e..8bdc2886e40 100644
--- a/port/results/language-features.md
+++ b/port/results/language-features.md
@@ -1,6 +1,6 @@
# Language features: outline, signature help, code actions, comments, type hierarchy, TypeScript
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven by `port/tools/ui-pair`, Dark Modern, fixtures in `port/fixtures/language-features` (`FOLDER` a folder with `a.ts`, `FILE=a.ts`). Pairs in `raw/language-features/` (ignored), reference left, port right.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Both driven by `port/tools/ui-pair`, Dark Modern, fixtures in `port/fixtures/language-features` (`FOLDER` a folder with `a.ts`, `FILE=a.ts`). Pairs in `raw/language-features/` (ignored), reference left, port right.
## Outline title actions
diff --git a/port/results/pixels.md b/port/results/pixels.md
index 9a2f830f6a3..e9bc2b918c0 100644
--- a/port/results/pixels.md
+++ b/port/results/pixels.md
@@ -23,7 +23,7 @@ Full `port/tools/pixel-check` on the Studio host lane against `~/Developer/vscod
## Third completion check, milestone 20
-Full `port/tools/pixel-check` on the Studio host lane at 99caa36b7ed (vscrs/main after testing results, inline and view coverage, the Windows seams and the README and benchmark) and again at 2cb63eb702e (vscrs/main after pill tabs, the settings import layout and the top bar's extension icons), release build with `--features screenshot` made in a build slot before the lane, 1.147.0 reference (`~/Developer/vscode-ref`). The table is the 2cb63eb702e run.
+Full `port/tools/pixel-check` on the Studio host lane at 99caa36b7ed (vsrustium/main after testing results, inline and view coverage, the Windows seams and the README and benchmark) and again at 2cb63eb702e (vsrustium/main after pill tabs, the settings import layout and the top bar's extension icons), release build with `--features screenshot` made in a build slot before the lane, 1.147.0 reference (`~/Developer/vscode-ref`). The table is the 2cb63eb702e run.
| window | dark | light | hc | hclight |
|---|---|---|---|---|
@@ -44,7 +44,7 @@ Full `port/tools/pixel-check` on the Studio host lane at 99caa36b7ed (vscrs/main
## Second completion check, milestone 20
-Full `port/tools/pixel-check` on the Studio host lane at d9dfa874f63 (vscrs/main), default 10 windows, before and after one fix.
+Full `port/tools/pixel-check` on the Studio host lane at d9dfa874f63 (vsrustium/main), default 10 windows, before and after one fix.
| window | dark | light | hc | hclight |
|---|---|---|---|---|
@@ -81,7 +81,7 @@ Full `port/tools/pixel-check` on the Studio host lane in port-m20-check (fc23e80
| panel | 12209 | 12782 | 20041 | 22667 |
- Fixed: the port's capture showed the watermark shortcuts (630d5734667) while the reference runs with `workbench.tips.enabled: false` (ref-user-data.ts); pixel-check now gives the port the same setting. Before: empty 136750/136923/124228/123617, folder 139360/139378/128874/128748, multiroot 134807/139418/128969/121774, with the port's letterpress pushed 150 px up by the shortcuts.
-- Cause, intended: the Vscrs letterpress in place of upstream's (port/notes.md branding (3), 8074e207d80) is about 120000 of each empty, folder and multiroot count. Outside the letterpress box (`magick diff-<theme>.png -fill black -draw 'rectangle 790 450 1350 1000'`, 1040 460 1600 1030 with a side bar): empty 4199/4203/1227/1198, folder 4289/4236/1141/1018, multiroot 4399/4276/1236/1059.
+- Cause, intended: the VSRustium letterpress in place of upstream's (port/notes.md branding (3), 8074e207d80) is about 120000 of each empty, folder and multiroot count. Outside the letterpress box (`magick diff-<theme>.png -fill black -draw 'rectangle 790 450 1350 1000'`, 1040 460 1600 1030 with a side bar): empty 4199/4203/1227/1198, folder 4289/4236/1141/1018, multiroot 4399/4276/1236/1059.
- Cause, intended: the reference's remote indicator at the left of the status bar (workbench/contrib/remote removed by decision, ledger workbench/parts/statusbar); in the empty window it is most of what is left outside the letterpress in hc and hclight.
- folded dark: 8092 from `WINDOWS=folded THEMES=dark port/tools/pixel-check` after the bracket pair and minimap z-order fixes (port/results/windows.md, Folded dark back under 9729); it was 9729 in this run.
- Every other window is at or below its last recorded count (merge of milestone 8, find widget, quick input, split and panel baselines above).
diff --git a/port/results/problems.md b/port/results/problems.md
index c92036d49dc..1ec40d7cb89 100644
--- a/port/results/problems.md
+++ b/port/results/problems.md
@@ -1,6 +1,6 @@
# Problems view
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven by `port/tools/ui-pair` with `FOLDER` a copy of `port/fixtures/problems`, `FILE=bad.json`, Dark Modern, steps `port/fixtures/problems/steps.json` (wait, Cmd+Shift+M, shot). Pair `raw/problems/panel-pair.png`, reference above, port below, the lower 700 rows of the 2x frames at half size.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Both driven by `port/tools/ui-pair` with `FOLDER` a copy of `port/fixtures/problems`, `FILE=bad.json`, Dark Modern, steps `port/fixtures/problems/steps.json` (wait, Cmd+Shift+M, shot). Pair `raw/problems/panel-pair.png`, reference above, port below, the lower 700 rows of the 2x frames at half size.
Same: the Problems tab with its blue count badge, the resource row (twistie, JSON file icon, name, count badge after the name), the marker rows (error icon, message, `json(513)` source and code, `[Ln 3, Col 15]`) at the reference's indents, sort order, the status bar counts.
diff --git a/port/results/profiles.md b/port/results/profiles.md
index c76d2e55f66..f0a1528b14a 100644
--- a/port/results/profiles.md
+++ b/port/results/profiles.md
@@ -2,7 +2,7 @@
## Milestone 10 item 3
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven by `ui-pair` (cua-driver) with fixture `port/fixtures/workspace`, Dark Modern, 1024x768 at 2x, steps `open profiles ui` from the Command Palette. Reference frames in `/tmp/m10-profiles-ref`, port frames in `/tmp/m10-profiles-port` on the Studio.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Both driven by `ui-pair` (cua-driver) with fixture `port/fixtures/workspace`, Dark Modern, 1024x768 at 2x, steps `open profiles ui` from the Command Palette. Reference frames in `/tmp/m10-profiles-ref`, port frames in `/tmp/m10-profiles-port` on the Studio.
- The modal part (Profiles title, no JSON action), the New Profile button with its dropdown, the Default row with "Active", the Built-in title, Use for New Windows, the Contents tree (Settings, Keyboard Shortcuts, Tasks, MCP Servers, Snippets, Extensions) and the Folders & Workspaces table with Add Folder match the reference in place and text.
- First port frame differences, fixed in `fix(profiles): match the Profiles editor's row actions and table`: Add Folder stretched to the full width, the Path column started 35pt early, the active row lacked the Open in New Window action.
diff --git a/port/results/refactor-preview.md b/port/results/refactor-preview.md
index 3b559bd25a6..452faf31862 100644
--- a/port/results/refactor-preview.md
+++ b/port/results/refactor-preview.md
@@ -1,6 +1,6 @@
# Refactor Preview
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. `port/tools/ui-pair` with `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/refactor-preview FILE=src/main.ts`, steps `port/fixtures/extensions/ui-refactor-preview.json`. The fixture extension applies, at startup, a workspace edit that replaces 42 in `src/util.ts` and `src/main.ts` and creates `src/answer.ts`, every edit with `needsConfirmation`. Pair `raw/refactor-preview/preview-pair.png`, reference left.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. `port/tools/ui-pair` with `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/refactor-preview FILE=src/main.ts`, steps `port/fixtures/extensions/ui-refactor-preview.json`. The fixture extension applies, at startup, a workspace edit that replaces 42 in `src/util.ts` and `src/main.ts` and creates `src/answer.ts`, every edit with `needsConfirmation`. Pair `raw/refactor-preview/preview-pair.png`, reference left.
Same: the Refactor Preview tab added last in the panel and active, the Group Changes By Type title action, the files by name with their folder, "(creating)" on the new file, the unchecked checkboxes of edits that need confirmation, the expanded files, the text edit rows with the removed text struck through on `diffEditor.removedTextBackground` and the new text on `diffEditor.insertedTextBackground`, Apply and Discard.
diff --git a/port/results/references-view.md b/port/results/references-view.md
index 4fa04fa9d4c..812221ae9fc 100644
--- a/port/results/references-view.md
+++ b/port/results/references-view.md
@@ -1,6 +1,6 @@
# References view
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. `port/tools/ui-pair` with `FILE=src/main.ts` in the default workspace fixture, steps `port/fixtures/references-view/steps.json` (two Alt+Right and Right to `main`, Shift+Alt+F12). Pair `raw/references-view/references-pair.png`, reference left.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. `port/tools/ui-pair` with `FILE=src/main.ts` in the default workspace fixture, steps `port/fixtures/references-view/steps.json` (two Alt+Right and Right to `main`, Shift+Alt+F12). Pair `raw/references-view/references-pair.png`, reference left.
Same: the References container appearing in the activity bar and opening, the merged title "References", the Refresh, Clear and Collapse All title actions, "1 result in 1 file", the file row with its icon and relative folder, the reference row with `main` on `list.filterMatchBackground` and its inline Dismiss action, selected and focused.
diff --git a/port/results/scm.md b/port/results/scm.md
index 56dc3f76852..b5bcb40ec4a 100644
--- a/port/results/scm.md
+++ b/port/results/scm.md
@@ -1,7 +1,7 @@
# Source control extensions
Extension integration tests run against the port and the reference on the Mac Studio. Port: `port/scratch`-style
-runner (vscrs with `--extensionDevelopmentPath` and `--extensionTestsPath` on the reference checkout's compiled
+runner (vsrustium with `--extensionDevelopmentPath` and `--extensionTestsPath` on the reference checkout's compiled
extension, Bun host). Reference: `SHELL=/bin/bash ./scripts/test-integration.sh --suite <name>` in `~/Developer/vscode-ref`.
| suite | port passing | port pending | port failing | reference passing | reference pending | reference failing |
diff --git a/port/results/settings-editor.md b/port/results/settings-editor.md
index 07ca83c75f1..4d679ab1137 100644
--- a/port/results/settings-editor.md
+++ b/port/results/settings-editor.md
@@ -2,7 +2,7 @@
## Milestone 10 item 1: tree, search, widgets, validation, policies
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven by `ui-pair` (cua-driver) with fixture `port/fixtures/workspace`, Dark Modern, 1024x768 at 2x. Reference frames in `/tmp/se-item1` on the Studio, port frames in `/tmp/se-item1d`; `magick compare -metric AE` against the reference, lower is closer.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Both driven by `ui-pair` (cua-driver) with fixture `port/fixtures/workspace`, Dark Modern, 1024x768 at 2x. Reference frames in `/tmp/se-item1` on the Studio, port frames in `/tmp/se-item1d`; `magick compare -metric AE` against the reference, lower is closer.
| step | before (first pair) | now |
| --- | --- | --- |
@@ -12,7 +12,7 @@ Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven b
| `object` (`files exclude`) | 90870 | 66587 |
- The remaining differences are text rendering and the rows the port does not have: settings the reference's built-in extensions register before the window opens (Copilot, GitHub), and the descriptions those change.
-- `policy` (port only, `defaults write com.rokartur.vscrs UpdateMode -string none`, search `update mode`, frame `/tmp/se-item1e/port-policy.png`): Update: Mode shows `none` with the briefcase "Managed by your organization" indicator and a read-only dropdown. ui-pair's `type` step lowercases text after `@`, so `@hasPolicy` is checked in-process instead.
+- `policy` (port only, `defaults write com.rokartur.vsrustium UpdateMode -string none`, search `update mode`, frame `/tmp/se-item1e/port-policy.png`): Update: Mode shows `none` with the briefcase "Managed by your organization" indicator and a read-only dropdown. ui-pair's `type` step lowercases text after `@`, so `@hasPolicy` is checked in-process instead.
- Tabs use the modern UI override (`modernUI/browser/media/tabs.css` 1153: `padding: 2px 8px`, semibold), not the classic 7px/6.5px padding.
Checks (Studio):
diff --git a/port/results/webviews.md b/port/results/webviews.md
index 07575bc2bd4..809dc8871f4 100644
--- a/port/results/webviews.md
+++ b/port/results/webviews.md
@@ -1,6 +1,6 @@
# Webviews, markdown, media preview, Images Preview, Simple Browser, editor insets (milestone 17)
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Pairs by `port/tools/ui-pair` (Dark Modern, `FOLDER=port/fixtures/webviews`), run by the session's `/tmp/m17c-pairs.sh`; shots in `/tmp/m17c-pairs/<pair>/` on the Studio.
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Pairs by `port/tools/ui-pair` (Dark Modern, `FOLDER=port/fixtures/webviews`), run by the session's `/tmp/m17c-pairs.sh`; shots in `/tmp/m17c-pairs/<pair>/` on the Studio.
## Extension and fixture checks
diff --git a/port/results/welcome.md b/port/results/welcome.md
index 54510388d98..441dae302d8 100644
--- a/port/results/welcome.md
+++ b/port/results/welcome.md
@@ -1,6 +1,6 @@
# Welcome page, view welcome content (milestone 19)
-Reference: 1.147.0 dev build on the Studio; port: release `vscrs`. Both driven by `port/tools/ui-pair` with `port/fixtures/ui-steps/welcome.json` in an empty window, Dark Modern, 1024x768 at 2x, both opening the Welcome page on startup:
+Reference: 1.147.0 dev build on the Studio; port: release `vsrustium`. Both driven by `port/tools/ui-pair` with `port/fixtures/ui-steps/welcome.json` in an empty window, Dark Modern, 1024x768 at 2x, both opening the Welcome page on startup:
```
FOLDER= SETTINGS={\"workbench.startupEditor\":\"welcomePage\"} port/tools/ui-pair /tmp/ui-welcome port/fixtures/ui-steps/welcome.json
@@ -10,7 +10,7 @@ Shots: `welcome` (startup), `explorer` (activity bar Explorer), `scm` (activity
- `explorer`: the empty view's welcome content is the reference's: "You have not yet opened a folder." with Open Folder, the "add a folder" paragraph (an editor is open), then git's two `explorer` entries (You can clone a repository locally, Clone Repository, read our docs).
- `scm`: git's empty-workspace entry (In order to use Git features..., Open Folder, Clone Repository, read our docs), alone in the container without a pane header, as the reference.
-- `welcome`: same grid, header, Start, Recent, Walkthroughs tiles and the show-on-startup checkbox. Left as differences: the header reads `nameLong` (Vscrs); Connect to... is a remote entry (removed by decision); the reference's large headings render heavier (Chromium's system font at 35 and 19.5 px); the reference's tab shows an icon and its focused page a focus outline; the reference counts Choose your theme done in some runs (its `onSettingChanged:workbench.colorTheme` fires while user settings load at startup), the port does not.
+- `welcome`: same grid, header, Start, Recent, Walkthroughs tiles and the show-on-startup checkbox. Left as differences: the header reads `nameLong` (VSRustium); Connect to... is a remote entry (removed by decision); the reference's large headings render heavier (Chromium's system font at 35 and 19.5 px); the reference's tab shows an icon and its focused page a focus outline; the reference counts Choose your theme done in some runs (its `onSettingChanged:workbench.colorTheme` fires while user settings load at startup), the port does not.
- `walkthrough`: back link, title and description, steps with completion circles, the expanded step's text, button and keyboard tip, Mark Done and Next Section. Left as differences: the tip draws a chord as one key cap (`⌘K ⌘T`) where the reference draws one cap per key.
Fixed after the first runs: tiles inherited the list's 24 px line height (the CSS sets `line-height: normal`); step paragraphs did not wrap; the unchecked step circle used a codicon name (circle-large-outline) that ships as circle-large.svg; the details title and description lacked h2 and p margins; a Changes header above the SCM welcome.
diff --git a/port/results/windows.md b/port/results/windows.md
index 42dff0c4b06..d1cc22daba3 100644
--- a/port/results/windows.md
+++ b/port/results/windows.md
@@ -4,7 +4,7 @@
`port/tools/ui-pair /tmp/m11c-dialogs port/fixtures/ui-pair/dialogs.json dark` with `FILE=notes.txt` on the Studio (reference left, port right):
-- `about`: the About message box as an NSAlert sheet, title "Vscrs" (reference "Code - OSS Dev"), Version, Commit, Date and OS lines, OK and Copy (default) buttons, same place and width. The Electron, ElectronBuildId, Chromium, Node.js, V8 and @github/copilot lines are left out by decision, so the port's sheet is shorter.
+- `about`: the About message box as an NSAlert sheet, title "VSRustium" (reference "Code - OSS Dev"), Version, Commit, Date and OS lines, OK and Copy (default) buttons, same place and width. The Electron, ElectronBuildId, Chromium, Node.js, V8 and @github/copilot lines are left out by decision, so the port's sheet is shorter.
- `save-confirm` (type in `notes.txt`, Cmd+W): "Do you want to save the changes you made to notes.txt?", "Your changes will be lost if you don't save them.", Save (default), Don't Save, Cancel, the same sheet. The first run drew the warning style without the caution icon; the port now takes NSAlertStyleCritical as Electron's message_box_mac.mm does for warnings.
- `open` (Cmd+O): the NSOpenPanel sheet on the workspace folder, the same sidebar, columns, buttons (New Folder, Cancel, Open) and file list.
- Not from this change: the port shows the "Screen reader usage detected" toast and status entry because cua turns VoiceOver detection on, and the reference's Explorer badge "1" for the dirty file is missing in the port.
diff --git a/port/tools/a11y-check b/port/tools/a11y-check
index 0817c2c24a4..921a51c24ef 100755
--- a/port/tools/a11y-check
+++ b/port/tools/a11y-check
@@ -25,7 +25,7 @@ cpSync('port/fixtures/workspace', folder, { recursive: true });
const file = join(folder, 'notes.txt');
const child = process.env.REF_APP
? Bun.spawn([join(ref, '.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS'), ref, folder, file, ...referenceArgs, '--user-data-dir', referenceUserData('Default Dark Modern')], { env: { ...process.env, VSCODE_DEV: '1', NODE_ENV: 'development' }, stdout: 'ignore', stderr: 'ignore' })
- : Bun.spawn(['native/target/release/vscrs', folder, file, '--user-data-dir', portUserData()], { env: { ...process.env, VSCODE_GPUI_EXTENSIONS: join(ref, 'extensions') }, stdout: 'ignore', stderr: 'ignore' });
+ : Bun.spawn(['native/target/release/vsrustium', folder, file, '--user-data-dir', portUserData()], { env: { ...process.env, VSCODE_GPUI_EXTENSIONS: join(ref, 'extensions') }, stdout: 'ignore', stderr: 'ignore' });
try {
await Bun.sleep(process.env.REF_APP ? 12000 : 6000);
const { windows } = await cua('list_windows', { pid: child.pid });
diff --git a/port/tools/api-tests b/port/tools/api-tests
index 474f9d7827e..244e1541f85 100755
--- a/port/tools/api-tests
+++ b/port/tools/api-tests
@@ -1,5 +1,5 @@
#!/bin/bash
-# Runs extensions/vscode-api-tests against vscrs the way scripts/test-integration.sh runs suites api-folder and
+# Runs extensions/vscode-api-tests against vsrustium the way scripts/test-integration.sh runs suites api-folder and
# api-workspace against the reference, prints passing/pending/failing per suite and writes port/results/api-tests.md.
# Run from the repo root on the Studio (port/tools/studio port/tools/api-tests), then copy the results file back.
# The test extension, its compiled tests and mocha come from the untouched 1.148.0 reference checkout, copied so the
@@ -23,7 +23,7 @@ source port/tools/gui-lock.sh
rows=()
run_suite() { # <suite> <folder or workspace file> <tests folder> <tests in the reference run>
local log=$OUT/$1.log started=$SECONDS
- SHELL=/bin/bash VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout "$SUITE_TIMEOUT" native/target/release/vscrs "$2" \
+ SHELL=/bin/bash VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout "$SUITE_TIMEOUT" native/target/release/vsrustium "$2" \
--user-data-dir "$(mktemp -d)" --skip-welcome --disable-workspace-trust --extensionDevelopmentPath="$tests" --extensionTestsPath="$tests/out/$3" >"$log" 2>&1
local code=$? seconds=$((SECONDS - started)) text run passing pending failing
text=$(sed $'s/\x1b\\[[0-9;]*m//g' "$log")
diff --git a/port/tools/app-files.ts b/port/tools/app-files.ts
index 6fc53468143..a993e3e8ede 100644
--- a/port/tools/app-files.ts
+++ b/port/tools/app-files.ts
@@ -1,4 +1,4 @@
-// The app folder of a packaged Vscrs, the same on every OS (port/tools/package-linux, port/tools/package-app):
+// The app folder of a packaged VSRustium, the same on every OS (port/tools/package-linux, port/tools/package-app):
// package.json, the extension host bundle, the upstream media the workbench reads,
// the shipped built-in extensions (port/tools/shipped-files.ts, with port/patches/extensions-*.patch applied) with the
// packages they and the host resolve, the licenses; and the update feed entries of port/notes.md "Update feed".
@@ -145,7 +145,7 @@ export async function copyAppFiles(app: string, extensionsDir: string, platform:
// for is deleted.
export async function rebuildNativeModule(file: string, app: string, copiedEntries: Map<string, string>, nodeGypArgs: string[]) {
const [entryId, , ...rest] = relative(join(app, 'node_modules/.pnpm'), file).split('/');
- const scratch = realpathSync(mkdtempSync(join(tmpdir(), 'vscrs-native-')));
+ const scratch = realpathSync(mkdtempSync(join(tmpdir(), 'vsrustium-native-')));
const nodeModules = join(scratch, 'node_modules');
cpSync(join(copiedEntries.get(entryId)!, 'node_modules'), nodeModules, { recursive: true, dereference: true });
let packageDir = dirname(join(nodeModules, ...rest));
diff --git a/port/tools/app-smoke b/port/tools/app-smoke
index 86505c8bc9a..c93b23cb7a4 100755
--- a/port/tools/app-smoke
+++ b/port/tools/app-smoke
@@ -1,5 +1,5 @@
#!/bin/bash
-# Starts the packaged Vscrs.app (port/tools/package-app) from outside the checkout on a copy of
+# Starts the packaged VSRustium.app (port/tools/package-app) from outside the checkout on a copy of
# port/fixtures/workspace with notes.txt, without VSCODE_GPUI_EXTENSIONS, so every file comes from the bundle, and
# checks the extension host started from the bundled bun and activated the eager built-ins (vscode.git needs a trusted
# workspace, so trust is off as in port/tools/linux/smoke) and that README.md activates the markdown built-ins
@@ -8,13 +8,13 @@
set -uo pipefail
repo=$PWD
source port/tools/vscode-src.sh
-APP=${APP:-$PWD/native/target/Vscrs.app}
+APP=${APP:-$PWD/native/target/VSRustium.app}
source port/tools/gui-lock.sh
dir=$(mktemp -d)
cp -R port/fixtures/workspace "$dir/workspace"
mkdir -p "$dir/user-data/User" && echo '{"workbench.startupEditor":"none"}' >"$dir/user-data/User/settings.json"
cd "$dir" || exit 1
-env -u VSCODE_GPUI_EXTENSIONS PATH=/usr/bin:/bin "$APP/Contents/MacOS/vscrs" "$dir/workspace" "$dir/workspace/notes.txt" "$dir/workspace/README.md" --user-data-dir "$dir/user-data" --disable-workspace-trust >"$dir/log" 2>&1 &
+env -u VSCODE_GPUI_EXTENSIONS PATH=/usr/bin:/bin "$APP/Contents/MacOS/vsrustium" "$dir/workspace" "$dir/workspace/notes.txt" "$dir/workspace/README.md" --user-data-dir "$dir/user-data" --disable-workspace-trust >"$dir/log" 2>&1 &
pid=$!
for _ in $(seq 40); do grep -q "eager extensions activated" "$dir/log" && break; sleep 1; done
sleep 2
@@ -29,7 +29,7 @@ fixtures=$VSCODE_SRC/src/vs/workbench/services/textfile/test/node/encoding/fixtu
cp "$fixtures/some.shiftjis.txt" "$fixtures/some.cp1252.txt" "$dir/workspace/"
echo '{"workbench.startupEditor":"none","files.autoGuessEncoding":true}' >"$dir/user-data/User/settings.json"
tests=$repo/port/fixtures/extensions/encoding-guess-tests
-env -u VSCODE_GPUI_EXTENSIONS PATH=/usr/bin:/bin timeout 120 "$APP/Contents/MacOS/vscrs" "$dir/workspace" --user-data-dir "$dir/user-data" --skip-welcome \
+env -u VSCODE_GPUI_EXTENSIONS PATH=/usr/bin:/bin timeout 120 "$APP/Contents/MacOS/vsrustium" "$dir/workspace" --user-data-dir "$dir/user-data" --skip-welcome \
--extensionDevelopmentPath="$tests" --extensionTestsPath="$tests/tests" >"$dir/guess-log" 2>&1
guess=$?
grep -E '^(ok|FAILED) ' "$dir/guess-log" || tail -20 "$dir/guess-log"
diff --git a/port/tools/bench-check.test.ts b/port/tools/bench-check.test.ts
index bf052e83e41..5cb83dc1fda 100644
--- a/port/tools/bench-check.test.ts
+++ b/port/tools/bench-check.test.ts
@@ -16,14 +16,14 @@ function check(runs: Record<string, Record<string, number>>, ...args: string[])
}
test('the run the budgets were taken from passes', () => {
- const { code, out } = check({ vscrs: held });
+ const { code, out } = check({ vsrustium: held });
expect(out).toContain('every metric is within its budget');
expect(code).toBe(0);
});
test('noise inside the margin passes, a regression past it fails', () => {
- expect(check({ vscrs: { ...held, window_s: 0.8 } }).code).toBe(0);
- const slow = check({ vscrs: { ...held, window_s: 1.2, footprint_mib: 260 } });
+ expect(check({ vsrustium: { ...held, window_s: 0.8 } }).code).toBe(0);
+ const slow = check({ vsrustium: { ...held, window_s: 1.2, footprint_mib: 260 } });
expect(slow.out).toContain('FAIL window_s: 1.2 is over the budget 0.66 by more than 30%');
expect(slow.out).toContain('FAIL footprint_mib: 260 is over the budget 223 by more than 10%');
expect(slow.code).toBe(1);
@@ -34,9 +34,9 @@ test('a run without the app fails instead of passing empty', () => {
});
test('with a reference app of the same run, a metric behind it fails', () => {
- const level = check({ vscrs: held, zed: held }, 'vscrs', 'zed');
+ const level = check({ vsrustium: held, zed: held }, 'vsrustium', 'zed');
expect(level.code).toBe(0);
- const behind = check({ vscrs: held, zed: { ...held, footprint_mib: 150 } }, 'vscrs', 'zed');
+ const behind = check({ vsrustium: held, zed: { ...held, footprint_mib: 150 } }, 'vsrustium', 'zed');
expect(behind.out).toContain('FAIL footprint_mib: 223 is behind zed (150) by more than the allowed x1 +10%');
expect(behind.code).toBe(1);
});
diff --git a/port/tools/bench-check.ts b/port/tools/bench-check.ts
index d2af7f79ca0..80a5a1f6b26 100644
--- a/port/tools/bench-check.ts
+++ b/port/tools/bench-check.ts
@@ -2,13 +2,13 @@
// The performance gate (docs/performance.md): compares one run of port/tools/bench with the budgets of
// port/budgets.json and exits 1 when a median is over its budget by more than the metric's noise margin.
// port/tools/bench > run.tsv && bun port/tools/bench-check.ts run.tsv [app] [reference app]
-// `app` is the bench name of the port (default vscrs). With a reference app of the same run (zed), each
+// `app` is the bench name of the port (default vsrustium). With a reference app of the same run (zed), each
// median must also stay within the reference's median times the ratio budgets.json allows for it (1 when it names
// none: as good as the reference). Both apps ran in turns on one machine, so its load cancels out.
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
-const [runFile, app = 'vscrs', reference] = process.argv.slice(2);
+const [runFile, app = 'vsrustium', reference] = process.argv.slice(2);
if (!runFile) {
console.error('usage: bun port/tools/bench-check.ts <run.tsv> [app] [reference app]');
process.exit(2);
diff --git a/port/tools/cargo-test.test.ts b/port/tools/cargo-test.test.ts
index 696d32e8390..1a7d291ea28 100644
--- a/port/tools/cargo-test.test.ts
+++ b/port/tools/cargo-test.test.ts
@@ -39,15 +39,15 @@ test('a filter that matches no test fails', () => {
test('a failing test prints its failures block and keeps cargo\'s exit code', () => {
const failures = "failures:\n\n---- a stdout ----\nthread 'a' panicked at src/a.rs:3:5:\nleft: 1\nright: 2\n\n\nfailures:\n a\n\n";
- const run = cargoTest(`${compiling}running 2 tests\ntest a ... FAILED\ntest b ... ok\n\n${failures}test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s\n\nerror: test failed, to rerun pass \`-p app --bin vscrs\`\n`, 101);
+ const run = cargoTest(`${compiling}running 2 tests\ntest a ... FAILED\ntest b ... ok\n\n${failures}test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s\n\nerror: test failed, to rerun pass \`-p app --bin vsrustium\`\n`, 101);
expect(run.exitCode).toBe(101);
- expect(run.stdout).toBe(`${failures}test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s\nerror: test failed, to rerun pass \`-p app --bin vscrs\`\n`);
+ expect(run.stdout).toBe(`${failures}test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s\nerror: test failed, to rerun pass \`-p app --bin vsrustium\`\n`);
});
test('a compile error prints its diagnostic with the location', () => {
- const run = cargoTest(' Compiling app v0.1.0\nwarning: unused import\n --> src/b.rs:1:5\n\nerror[E0425]: cannot find function `x`\n --> src/a.rs:4:5\n |\n4 | x();\n | ^ not found\n\nerror: could not compile `app` (bin "vscrs" test) due to 1 previous error\n', 101);
+ const run = cargoTest(' Compiling app v0.1.0\nwarning: unused import\n --> src/b.rs:1:5\n\nerror[E0425]: cannot find function `x`\n --> src/a.rs:4:5\n |\n4 | x();\n | ^ not found\n\nerror: could not compile `app` (bin "vsrustium" test) due to 1 previous error\n', 101);
expect(run.exitCode).toBe(101);
- expect(run.stdout).toBe('error[E0425]: cannot find function `x`\n --> src/a.rs:4:5\n |\n4 | x();\n | ^ not found\n\nerror: could not compile `app` (bin "vscrs" test) due to 1 previous error\n');
+ expect(run.stdout).toBe('error[E0425]: cannot find function `x`\n --> src/a.rs:4:5\n |\n4 | x();\n | ^ not found\n\nerror: could not compile `app` (bin "vsrustium" test) due to 1 previous error\n');
});
test('a failure without an error or failures block shows the end of the log', () => {
diff --git a/port/tools/extension-tests b/port/tools/extension-tests
index 86635bd0dcc..74b097ee311 100755
--- a/port/tools/extension-tests
+++ b/port/tools/extension-tests
@@ -1,6 +1,6 @@
#!/bin/bash
# Runs a built-in extension's integration tests (its out/test, as .vscode-test.js and scripts/test-integration.sh run
-# them on the reference) against vscrs and prints mocha's summary.
+# them on the reference) against vsrustium and prints mocha's summary.
# Usage, from the repo root on the Studio: port/tools/extension-tests <extension> [workspace folder]
# The extension and its compiled tests come from the untouched 1.148.0 reference checkout, copied next to the
# reference's test runner as the tests' `../../../../test/integration/electron/testrunner` import expects; the
@@ -30,7 +30,7 @@ else
# configuration-editing's extensions.json cases expect js-debug, a product.json built-in a new mirror lacks.
port/tools/fetch-builtin-extensions >/dev/null || exit 1
source port/tools/gui-lock.sh
- SHELL=/bin/bash VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 600 native/target/release/vscrs "${args[@]}" >"$OUT/log" 2>&1
+ SHELL=/bin/bash VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 600 native/target/release/vsrustium "${args[@]}" >"$OUT/log" 2>&1
fi
code=$?
sed $'s/\x1b\\[[0-9;]*m//g' "$OUT/log" | grep -E '^ *([0-9]+ (passing|pending|failing)|✔|[0-9]+\) )' | sed 's/^ *//' | sort -u
diff --git a/port/tools/extensions-check b/port/tools/extensions-check
index 03e76ad1101..8cdb764f5b0 100755
--- a/port/tools/extensions-check
+++ b/port/tools/extensions-check
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Packs port/fixtures/extensions/vsix-* as VSIX files and runs port/fixtures/extensions/install-tests in vscrs:
+# Packs port/fixtures/extensions/vsix-* as VSIX files and runs port/fixtures/extensions/install-tests in vsrustium:
# installs and uninstalls them through the workbench commands while the host runs. Prints one line per check.
set -euo pipefail
cd "$(dirname "$0")/../.."
@@ -19,7 +19,7 @@ overrides=$VSCODE_SRC/product.overrides.json
trap 'rm -f "$overrides"; rm -rf "$port_gui_lock"' EXIT
echo '{"trustedExtensionPublishers":["redhat"]}' >"$overrides"
code=0
-PORT_VSIX_DIR=$out PORT_CLI=$PWD/native/target/release/vscrs PORT_USER_DATA=$out/user-data VSCODE_DEV=1 VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 120 native/target/release/vscrs --user-data-dir "$out/user-data" \
+PORT_VSIX_DIR=$out PORT_CLI=$PWD/native/target/release/vsrustium PORT_USER_DATA=$out/user-data VSCODE_DEV=1 VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 120 native/target/release/vsrustium --user-data-dir "$out/user-data" \
--extensionDevelopmentPath="$tests" --extensionTestsPath="$tests/tests" >"$out/log" 2>&1 || code=$?
grep -E '^(ok|FAILED) ' "$out/log" || cat "$out/log"
echo "exit $code"
diff --git a/port/tools/gui-vm b/port/tools/gui-vm
index 713c9b9ced0..a46cd6144e5 100755
--- a/port/tools/gui-vm
+++ b/port/tools/gui-vm
@@ -15,14 +15,14 @@ if ! tart get "$vm" > /dev/null 2>&1; then
fi
if ! tart list --format json | jq -e --arg vm "$vm" '.[] | select(.Name == $vm and .Running)' > /dev/null; then
# A launchd job: tart run started from an ssh session stops with the session, nohup or not.
- agent=$HOME/Library/LaunchAgents/org.vscrs.$vm.plist
+ agent=$HOME/Library/LaunchAgents/org.vsrustium.$vm.plist
plutil -create xml1 "$agent"
- plutil -insert Label -string "org.vscrs.$vm" "$agent"
+ plutil -insert Label -string "org.vsrustium.$vm" "$agent"
plutil -insert ProgramArguments -json "[\"$(command -v tart)\",\"run\",\"$vm\",\"--no-graphics\",\"--dir=work:$HOME/Developer/vscode-gpui-work:ro\",\"--dir=ref:$HOME/Developer/vscode-ref:ro\",\"--dir=ref148:$HOME/Developer/vscode-ref-1.148.0:ro\"]" "$agent"
plutil -insert RunAtLoad -bool true "$agent"
plutil -insert StandardOutPath -string "/tmp/$vm.log" "$agent"
plutil -insert StandardErrorPath -string "/tmp/$vm.log" "$agent"
- launchctl bootout "gui/$(id -u)/org.vscrs.$vm" 2> /dev/null || true
+ launchctl bootout "gui/$(id -u)/org.vsrustium.$vm" 2> /dev/null || true
launchctl bootstrap "gui/$(id -u)" "$agent"
tart ip "$vm" --wait 300 > /dev/null
fi
diff --git a/port/tools/ledger-issues.ts b/port/tools/ledger-issues.ts
index 8e904f05ce6..0ddedff5395 100644
--- a/port/tools/ledger-issues.ts
+++ b/port/tools/ledger-issues.ts
@@ -1,11 +1,11 @@
#!/usr/bin/env bun
-// Prints every place the ledger and the GitHub issues of rokartur/vscrs disagree, and exits 1 if any. A row names an issue
-// as `vscrs#N` in any cell. Open issues still labeled needs-triage are only counted. Needs gh: bun port/tools/ledger-issues.ts
+// Prints every place the ledger and the GitHub issues of rokartur/vsrustium disagree, and exits 1 if any. A row names an issue
+// as `vsrustium#N` in any cell. Open issues still labeled needs-triage are only counted. Needs gh: bun port/tools/ledger-issues.ts
import { readLedger } from './ledger.ts';
const closedStatuses = ['done', 'decided', 'verified', 'removed', 'n/a'];
-const gh = Bun.spawnSync(['gh', 'issue', 'list', '-R', 'rokartur/vscrs', '--state', 'all', '--limit', '10000', '--json', 'number,title,state,labels']);
+const gh = Bun.spawnSync(['gh', 'issue', 'list', '-R', 'rokartur/vsrustium', '--state', 'all', '--limit', '10000', '--json', 'number,title,state,labels']);
if (gh.exitCode !== 0) {
throw new Error(`gh issue list failed: ${gh.stderr.toString()}`);
}
@@ -20,16 +20,16 @@ const named = new Set<number>();
const errors: string[] = [];
for (const { line, status } of rows) {
const row = line.split(' | ').slice(0, 2).join(' | ');
- for (const match of line.matchAll(/vscrs#(\d+)/g)) {
+ for (const match of line.matchAll(/vsrustium#(\d+)/g)) {
const number = Number(match[1]);
const issue = issues.get(number);
named.add(number);
if (!issue) {
- errors.push(`${row} |: vscrs#${number} is not an issue`);
+ errors.push(`${row} |: vsrustium#${number} is not an issue`);
} else if (issue.state === 'OPEN' && closedStatuses.includes(status)) {
- errors.push(`${row} |: ${status}, but vscrs#${number} "${issue.title}" is open`);
+ errors.push(`${row} |: ${status}, but vsrustium#${number} "${issue.title}" is open`);
} else if (issue.state === 'CLOSED' && !closedStatuses.includes(status)) {
- errors.push(`${row} |: ${status}, but vscrs#${number} "${issue.title}" is closed`);
+ errors.push(`${row} |: ${status}, but vsrustium#${number} "${issue.title}" is closed`);
}
}
}
@@ -42,7 +42,7 @@ for (const [number, issue] of issues) {
if (issue.labels.some(label => label.name === 'needs-triage')) {
untriaged++;
} else {
- errors.push(`vscrs#${number} "${issue.title}" is open, but no ledger row names it`);
+ errors.push(`vsrustium#${number} "${issue.title}" is open, but no ledger row names it`);
}
}
diff --git a/port/tools/linux/Dockerfile b/port/tools/linux/Dockerfile
index 37ebff8eef3..36b33d3f442 100644
--- a/port/tools/linux/Dockerfile
+++ b/port/tools/linux/Dockerfile
@@ -1,4 +1,4 @@
-# Linux build and test image for Vscrs (port/tools/linux-build runs it on the Mac Studio, linux/arm64).
+# Linux build and test image for VSRustium (port/tools/linux-build runs it on the Mac Studio, linux/arm64).
# Packages: GPUI's Linux platform (wu script/linux: xkbcommon, wayland, x11/xcb, fontconfig, freetype, vulkan, alsa),
# WebKitGTK 4.1 and libsecret for the webview and secrets, Xvfb and Mesa's Vulkan driver to run the app headless,
# squashfs-tools for port/tools/package-linux's AppImage, ripgrep for the output filters of commands run here.
diff --git a/port/tools/linux/run b/port/tools/linux/run
index f96b6bce2e8..7c35ae78ba5 100755
--- a/port/tools/linux/run
+++ b/port/tools/linux/run
@@ -6,9 +6,9 @@
set -euo pipefail
cd "$(dirname "$0")/../../.."
tag=$(shasum -a 256 port/tools/linux/Dockerfile | cut -c1-12)
-if ! docker image inspect "vscrs-linux:$tag" >/dev/null 2>&1; then
- docker build -q -t "vscrs-linux:$tag" port/tools/linux
- docker images vscrs-linux --format '{{.Tag}}' | { grep -vx "$tag" || true; } | xargs -I{} docker rmi -f vscrs-linux:{}
+if ! docker image inspect "vsrustium-linux:$tag" >/dev/null 2>&1; then
+ docker build -q -t "vsrustium-linux:$tag" port/tools/linux
+ docker images vsrustium-linux --format '{{.Tag}}' | { grep -vx "$tag" || true; } | xargs -I{} docker rmi -f vsrustium-linux:{}
fi
# The mirror and its upstream/ link's target (the Studio's reference checkout) sit at their Studio paths, so absolute
# links such as out-exthost/node_modules resolve.
@@ -17,6 +17,6 @@ ref=
docker run --rm --init \
-v "$PWD:$PWD" -w "$PWD" \
${ref:+-v "$ref:$ref:ro"} \
- -v vscrs-linux-cargo:/cargo -e CARGO_HOME=/cargo \
- -v vscrs-linux-target:/target -e CARGO_TARGET_DIR=/target \
- "vscrs-linux:$tag" bash -c "$1"
+ -v vsrustium-linux-cargo:/cargo -e CARGO_HOME=/cargo \
+ -v vsrustium-linux-target:/target -e CARGO_TARGET_DIR=/target \
+ "vsrustium-linux:$tag" bash -c "$1"
diff --git a/port/tools/linux/smoke b/port/tools/linux/smoke
index 64a92409dff..aa008549681 100755
--- a/port/tools/linux/smoke
+++ b/port/tools/linux/smoke
@@ -5,9 +5,9 @@
# runs that fixture instead, as port/tools/webview-check does on macOS. CI's smoke job runs it on the dev build.
set -uo pipefail
REF=$(cd upstream && pwd -P)
-# A packaged app (APP=<folder>/vscrs) runs its own resources/app/extensions; the dev build the reference's.
+# A packaged app (APP=<folder>/vsrustium) runs its own resources/app/extensions; the dev build the reference's.
if [[ -z ${APP:-} ]]; then
- APP=$CARGO_TARGET_DIR/release/vscrs
+ APP=$CARGO_TARGET_DIR/release/vsrustium
export VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$REF/extensions}
fi
dir=$(mktemp -d)
diff --git a/port/tools/network-capture b/port/tools/network-capture
index 4dd890638ac..2e1df70ebf6 100755
--- a/port/tools/network-capture
+++ b/port/tools/network-capture
@@ -1,8 +1,8 @@
#!/bin/bash
-# Network capture (milestone 19): runs vscrs on a copy of port/fixtures/workspace with a fresh user data
+# Network capture (milestone 19): runs vsrustium on a copy of port/fixtures/workspace with a fresh user data
# dir and no user action for DURATION seconds (default 600) and lists every process of its tree that sent or got
# bytes over a non-loopback interface (nettop, 1 s samples; the tree sampled 5 times a second). Run on the Studio after a release build:
-# port/tools/studio 'port/tools/network-capture' env DURATION=<s>, ARGS="<more vscrs arguments>",
+# port/tools/studio 'port/tools/network-capture' env DURATION=<s>, ARGS="<more vsrustium arguments>",
# WINDOW=folder|empty (default folder), SETTINGS='<user settings.json>', REF_APP=1 to capture the reference instead
# First a 12 s control run (curl as a child of the watched tree) shows the capture sees a request; the check fails
# if the control is not seen. Exits 1 when the app's tree had traffic. Logs land in $OUT.
@@ -53,7 +53,7 @@ if [[ -n ${REF_APP:-} ]]; then
app=("$REF/.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS" "$REF")
export VSCODE_DEV=1 NODE_ENV=development
else
- app=(native/target/release/vscrs)
+ app=(native/target/release/vsrustium)
fi
# shellcheck disable=SC2086
traffic=$(VSCODE_GPUI_EXTENSIONS=$REF/extensions capture app "$DURATION" "${app[@]}" ${folder[@]+"${folder[@]}"} --user-data-dir "$OUT/user-data" ${ARGS:-})
diff --git a/port/tools/package-app b/port/tools/package-app
index 483b897f67f..35c137afee4 100755
--- a/port/tools/package-app
+++ b/port/tools/package-app
@@ -1,15 +1,15 @@
#!/usr/bin/env bun
-// Packages Vscrs.app (milestone 19): the release binary and bun in Contents/MacOS; product.json and the
+// Packages VSRustium.app (milestone 19): the release binary and bun in Contents/MacOS; product.json and the
// app files (port/tools/app-files.ts) in Contents/Resources/app;
-// Info.plist with the reference's document types and the vscrs URL protocol; then codesign with the hardened
+// Info.plist with the reference's document types and the vsrustium URL protocol; then codesign with the hardened
// runtime and `spctl -a`. Run on the Studio after a release build and port/tools/build-exthost:
// port/tools/studio 'port/tools/package-app' env IDENTITY="Developer ID Application: ..." (default ad-hoc "-";
-// a Developer ID signs in the GUI session), NOTARIZE=1 (notarize and staple), VSCODE_GPUI_EXTENSIONS (default the reference's extensions), OUT (default native/target/Vscrs.app),
+// a Developer ID signs in the GUI session), NOTARIZE=1 (notarize and staple), VSCODE_GPUI_EXTENSIONS (default the reference's extensions), OUT (default native/target/VSRustium.app),
// VERSION (default the VS Code tree's), PRERELEASE=1 (a pre-release: quality insider, version <VERSION>-insider; else quality stable), TAG (the GitHub release tag, default v<display version>, app-files.ts displayVersion),
// PRODUCT (a JSON object merged into product.json, for tests: '{"updateUrl": "http://127.0.0.1:8080"}'),
// ARCH (arm64 or x64, default the host's; for another arch first `cargo gc build --release -p app --target <triple>`)
// Next to the app it writes the update zip and the feed entries of port/notes.md "Update feed", per platform and arch:
-// Vscrs-<display version>-darwin-<arch>.zip and darwin-<arch>-prerelease.json, and darwin-<arch>.json unless PRERELEASE=1.
+// VSRustium-<display version>-darwin-<arch>.zip and darwin-<arch>-prerelease.json, and darwin-<arch>.json unless PRERELEASE=1.
import { cpSync, existsSync, mkdirSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync } from 'node:fs';
import { dirname, join, relative } from 'node:path';
import { buildProduct, copyAppFiles, displayVersion, rebuildNativeModule, writeFeedEntries } from './app-files.ts';
@@ -18,7 +18,7 @@ import { vscodeSrc } from './vscode-src.ts';
const root = process.cwd();
const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
const extensionsDir = process.env.VSCODE_GPUI_EXTENSIONS ?? join(ref, 'extensions');
-const out = process.env.OUT ?? join(root, 'native/target/Vscrs.app');
+const out = process.env.OUT ?? join(root, 'native/target/VSRustium.app');
const identity = process.env.IDENTITY ?? '-';
// VS Code's target platform names (darwin-arm64, darwin-x64), as gallery.rs CURRENT_TARGET_PLATFORM and the update feeds.
const platform = process.platform;
@@ -46,10 +46,10 @@ const app = join(contents, 'Resources/app');
mkdirSync(join(contents, 'MacOS'), { recursive: true });
mkdirSync(app, { recursive: true });
-cpSync(arch === hostArch ? 'native/target/release/vscrs' : `native/target/${rustTarget}/release/vscrs`, join(contents, 'MacOS/vscrs'));
+cpSync(arch === hostArch ? 'native/target/release/vsrustium' : `native/target/${rustTarget}/release/vsrustium`, join(contents, 'MacOS/vsrustium'));
cpSync(arch === hostArch ? realpathSync(Bun.which('bun')!) : await downloadBun(), join(contents, 'MacOS/bun'));
// gulpfile.vscode.ts: the shell command's script, with the app binary for Electron's (cli.rs takes the CLI part).
-const shellCommand = readFileSync(join(vscodeSrc, 'resources/darwin/bin/code.sh'), 'utf8').replaceAll('@@APPNAME@@', product.applicationName).replaceAll('@@NAME@@', 'vscrs');
+const shellCommand = readFileSync(join(vscodeSrc, 'resources/darwin/bin/code.sh'), 'utf8').replaceAll('@@APPNAME@@', product.applicationName).replaceAll('@@NAME@@', 'vsrustium');
mkdirSync(join(app, 'bin'));
writeFileSync(join(app, 'bin/code'), shellCommand, { mode: 0o755 });
writeFileSync(join(app, 'product.json'), JSON.stringify(product, null, '\t'));
@@ -90,7 +90,7 @@ const plist = {
CFBundleDevelopmentRegion: 'en',
CFBundleDisplayName: product.nameLong,
CFBundleName: product.nameShort,
- CFBundleExecutable: 'vscrs',
+ CFBundleExecutable: 'vsrustium',
CFBundleIconFile: 'AppIcon',
CFBundleIconName: 'AppIcon',
CFBundleIdentifier: product.darwinBundleIdentifier,
@@ -106,7 +106,7 @@ const plist = {
NSHighResolutionCapable: true,
NSSupportsAutomaticGraphicsSwitching: true,
NSPrincipalClass: 'NSApplication',
- NSHumanReadableCopyright: 'Copyright (C) Vscrs contributors and Microsoft Corporation. Apache License 2.0, portions MIT License.',
+ NSHumanReadableCopyright: 'Copyright (C) VSRustium contributors and Microsoft Corporation. Apache License 2.0, portions MIT License.',
};
writeFileSync(join(contents, 'Info.plist.json'), JSON.stringify(plist));
await Bun.$`plutil -convert xml1 -o ${join(contents, 'Info.plist')} ${join(contents, 'Info.plist.json')}`;
@@ -124,7 +124,7 @@ for (const icon of new Set<string>(reference.CFBundleDocumentTypes.map((type: {
// Every Mach-O inside is signed first (native modules, ripgrep, bun), then the app; bun needs JIT and the
// executable memory of JavaScriptCore, and loads native modules signed by others.
-const entitlements = join(contents, '..', '..', 'vscrs.entitlements');
+const entitlements = join(contents, '..', '..', 'vsrustium.entitlements');
writeFileSync(entitlements, `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
@@ -148,14 +148,14 @@ if (signed.exitCode !== 0) {
process.exit(1);
}
-// NOTARIZE=1 submits the signed app with the notarytool profile vscrs-notary (stored once by Artur in the
-// Studio's login keychain: xcrun notarytool store-credentials vscrs-notary --apple-id <id> --team-id N529W98U62)
+// NOTARIZE=1 submits the signed app with the notarytool profile vsrustium-notary (stored once by Artur in the
+// Studio's login keychain: xcrun notarytool store-credentials vsrustium-notary --apple-id <id> --team-id N529W98U62)
// and staples the ticket.
if (process.env.NOTARIZE === '1') {
const zip = `${out}.zip`;
const notarized = await inGuiSession('notarize', [
`ditto -c -k --keepParent ${shellQuote(out)} ${shellQuote(zip)}`,
- `xcrun notarytool submit ${shellQuote(zip)} --keychain-profile vscrs-notary --wait`,
+ `xcrun notarytool submit ${shellQuote(zip)} --keychain-profile vsrustium-notary --wait`,
`xcrun stapler staple ${shellQuote(out)}`,
]);
rmSync(zip, { force: true });
@@ -168,10 +168,10 @@ const verify = await Bun.$`codesign --verify --deep --strict --verbose=2 ${out}`
console.log(`${out}: ${binaries.length + 2} signatures as ${identity}, codesign --verify ${verify.exitCode === 0 ? 'ok' : 'failed'}`);
console.log(verify.stderr.toString().trim());
if (verify.exitCode === 0) {
- const zip = join(dirname(out), `Vscrs-${displayVersion(product)}-${platform}-${arch}.zip`);
+ const zip = join(dirname(out), `VSRustium-${displayVersion(product)}-${platform}-${arch}.zip`);
rmSync(zip, { force: true });
// Without --norsrc --noextattr ditto stores each file's xattrs as `._` files inside the app; unzippers other than
- // Archive Utility write them out and break the seal: "Vscrs is damaged" (issue 29).
+ // Archive Utility write them out and break the seal: "VSRustium is damaged" (issue 29).
await Bun.$`ditto -c -k --norsrc --noextattr --keepParent ${out} ${zip}`;
if ((await Bun.$`zipinfo -1 ${zip}`.text()).split('\n').some((entry) => entry.split('/').at(-1)!.startsWith('._'))) {
throw new Error(`${zip} holds AppleDouble ._ files`);
@@ -221,7 +221,7 @@ function shellQuote(value: string) {
// Runs the commands in a .command script that Terminal opens in the GUI session, and waits for its exit code.
async function inGuiSession(name: string, commands: string[]) {
- const base = `/tmp/vscrs-${name}-${process.pid}`;
+ const base = `/tmp/vsrustium-${name}-${process.pid}`;
const done = `${base}.done`;
rmSync(done, { force: true });
writeFileSync(`${base}.command`, `#!/bin/bash\n( set -e\n${commands.join('\n')}\n) >${shellQuote(`${base}.log`)} 2>&1\necho $? >${shellQuote(done)}\n`, { mode: 0o755 });
diff --git a/port/tools/package-linux b/port/tools/package-linux
index 93dd32e2972..0c8e53a64b0 100755
--- a/port/tools/package-linux
+++ b/port/tools/package-linux
@@ -1,14 +1,14 @@
#!/usr/bin/env bun
-// Packages the Linux build as VS Code's Linux archive lays it out: Vscrs-linux-<arch>/ with the release binary
+// Packages the Linux build as VS Code's Linux archive lays it out: VSRustium-linux-<arch>/ with the release binary
// (named applicationName, as code.sh starts it) and bun, bin/<applicationName> from upstream's linux code.sh, and the
// app files in resources/app (port/tools/app-files.ts; product.rs BUNDLED_APP). The packages' native modules, built
// for macOS by the reference's pnpm install, are rebuilt for Linux with node-gyp. Then it writes
-// Vscrs-<display version>-linux-<arch>.tar.gz and the folder as Vscrs-<display version>-linux-<arch>.AppImage
+// VSRustium-<display version>-linux-<arch>.tar.gz and the folder as VSRustium-<display version>-linux-<arch>.AppImage
// (port/tools/linux/appimage) next to the folder, and the feed entries of port/notes.md "Update feed":
// linux-<arch>-prerelease.json and, unless PRERELEASE=1, linux-<arch>.json.
// Run on Linux after `cargo gc build --release -p app` and port/tools/build-exthost, for the host's arch:
// port/tools/linux-build 'port/tools/package-linux' env VSCODE_GPUI_EXTENSIONS (default the VS Code tree's
-// extensions), OUT (default <target dir>/Vscrs-linux-<arch>), VERSION, PRERELEASE=1, TAG, PRODUCT as package-app.
+// extensions), OUT (default <target dir>/VSRustium-linux-<arch>), VERSION, PRERELEASE=1, TAG, PRODUCT as package-app.
import { cpSync, existsSync, mkdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs';
import { basename, dirname, join, relative } from 'node:path';
import { buildProduct, copyAppFiles, displayVersion, rebuildNativeModule, writeFeedEntries } from './app-files.ts';
@@ -23,14 +23,14 @@ const arch = process.arch === 'arm64' ? 'arm64' : 'x64';
const elfMachine = arch === 'arm64' ? 'ARM aarch64' : 'x86-64';
const targetDir = process.env.CARGO_TARGET_DIR ?? join(process.cwd(), 'native/target');
const extensionsDir = process.env.VSCODE_GPUI_EXTENSIONS ?? join(vscodeSrc, 'extensions');
-const out = process.env.OUT ?? join(targetDir, `Vscrs-${platform}-${arch}`);
+const out = process.env.OUT ?? join(targetDir, `VSRustium-${platform}-${arch}`);
const product = await buildProduct();
const name = product.applicationName;
rmSync(out, { recursive: true, force: true });
const app = join(out, 'resources/app');
mkdirSync(app, { recursive: true });
-cpSync(join(targetDir, 'release/vscrs'), join(out, name));
+cpSync(join(targetDir, 'release/vsrustium'), join(out, name));
// profile.release `debug = "limited"` stays in the ELF on Linux (macOS splits it out): 571 MB with it, the symbols
// for backtraces stay.
await Bun.$`strip --strip-debug ${join(out, name)}`;
@@ -74,12 +74,12 @@ if (wrong.length) {
throw new Error(`not a ${platform}-${arch} binary: ${wrong.join(', ')}`);
}
-const archive = join(dirname(out), `Vscrs-${displayVersion(product)}-${platform}-${arch}.tar.gz`);
+const archive = join(dirname(out), `VSRustium-${displayVersion(product)}-${platform}-${arch}.tar.gz`);
rmSync(archive, { force: true });
await Bun.$`tar -czf ${archive} -C ${dirname(out)} ${basename(out)}`;
await writeFeedEntries(archive, product, platform, arch);
const size = (await Bun.$`du -sh ${out}`.text()).split('\t')[0];
-const appImage = join(dirname(out), `Vscrs-${displayVersion(product)}-${platform}-${arch}.AppImage`);
+const appImage = join(dirname(out), `VSRustium-${displayVersion(product)}-${platform}-${arch}.AppImage`);
await Bun.$`port/tools/linux/appimage ${out} ${name} ${appImage}`;
const archiveSize = (await Bun.$`du -sh ${archive}`.text()).split('\t')[0];
const appImageSize = (await Bun.$`du -sh ${appImage}`.text()).split('\t')[0];
diff --git a/port/tools/pixel-check b/port/tools/pixel-check
index 96886c82d10..2848388e415 100755
--- a/port/tools/pixel-check
+++ b/port/tools/pixel-check
@@ -67,7 +67,7 @@ for window in ${WINDOWS:-empty folder file main multiroot folded find quickopen
[[ -n $settings ]] && port_settings="{\"workbench.startupEditor\":\"none\",\"workbench.tips.enabled\":false,${settings#\{}"
mkdir -p "$user_data/User" && echo "$port_settings" >"$user_data/User/settings.json"
VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref-1.148.0/extensions} \
- capture "$dir/port-$theme.sample" native/target/release/vscrs $folder $file --user-data-dir "$user_data" --disable-workspace-trust --theme "$theme_id" --screenshot "$dir/port-$theme.png" --screenshot-keys "$keys" 2>"$dir/port-$theme.log" || { echo "$window $theme: code-gpui failed with exit $? (124: hung 120 s, stacks in $dir/port-$theme.sample), see $dir/port-$theme.log"; exit 1; }
+ capture "$dir/port-$theme.sample" native/target/release/vsrustium $folder $file --user-data-dir "$user_data" --disable-workspace-trust --theme "$theme_id" --screenshot "$dir/port-$theme.png" --screenshot-keys "$keys" 2>"$dir/port-$theme.log" || { echo "$window $theme: code-gpui failed with exit $? (124: hung 120 s, stacks in $dir/port-$theme.sample), see $dir/port-$theme.log"; exit 1; }
counts=$(native/target/release/pixeldiff "$dir/reference/$theme.png" "$dir/port-$theme.png" "$dir/diff-$theme.png")
echo "$window $theme $counts"
done
diff --git a/port/tools/privacy-check b/port/tools/privacy-check
index 3b836d32a14..6cd4c28c692 100755
--- a/port/tools/privacy-check
+++ b/port/tools/privacy-check
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Runs port/fixtures/extensions/privacy-tests in vscrs on Bun and on Node: telemetry reported off, a telemetry
+# Runs port/fixtures/extensions/privacy-tests in vsrustium on Bun and on Node: telemetry reported off, a telemetry
# logger that never reaches its sender, and the inert @vscode/extension-telemetry and vscode-tas-client modules.
# Run on the Studio after a release build and port/tools/build-exthost. Prints one line per check and runtime.
set -uo pipefail
@@ -11,7 +11,7 @@ tests=$PWD/port/fixtures/extensions/privacy-tests
code=0
for runtime in bun node; do
flag=(); [[ $runtime == node ]] && flag=(--node)
- VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 120 native/target/release/vscrs --user-data-dir "$out/user-data-$runtime" ${flag[@]+"${flag[@]}"} \
+ VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 120 native/target/release/vsrustium --user-data-dir "$out/user-data-$runtime" ${flag[@]+"${flag[@]}"} \
--extensionDevelopmentPath="$tests" --extensionTestsPath="$tests/tests" >"$out/$runtime.log" 2>&1 || code=1
grep -E '^(ok|FAILED) ' "$out/$runtime.log" | sed "s/^/$runtime: /" || cat "$out/$runtime.log"
done
diff --git a/port/tools/run-app-check b/port/tools/run-app-check
index bccf6a8515d..26cc4b83a43 100755
--- a/port/tools/run-app-check
+++ b/port/tools/run-app-check
@@ -1,18 +1,18 @@
#!/usr/bin/env bash
-# Starts vscrs for a few seconds, prints its process tree and saves a screenshot of its window to port/results/raw/.
+# Starts vsrustium for a few seconds, prints its process tree and saves a screenshot of its window to port/results/raw/.
# Exits 1 when the app shows no window: the merge gate's window-open check.
set -euo pipefail
cd "$(dirname "$0")/../.."
mkdir -p port/results/raw
source port/tools/gui-lock.sh
data_dir=$(mktemp -d)
-VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref-1.148.0/extensions} native/target/release/vscrs --user-data-dir "$data_dir" "$@" &
+VSCODE_GPUI_EXTENSIONS=${VSCODE_GPUI_EXTENSIONS:-$HOME/Developer/vscode-ref-1.148.0/extensions} native/target/release/vsrustium --user-data-dir "$data_dir" "$@" &
pid=$!
sleep "${SETTLE_SECONDS:-6}"
ps -o pid,ppid,rss,command -g "$(ps -o pgid= -p "$pid" | tr -d ' ')" | cut -c1-160
window_id=$(swift -e 'import CoreGraphics; let pid = Int(CommandLine.arguments[1])!; let list = CGWindowListCopyWindowInfo(.optionOnScreenOnly, kCGNullWindowID) as! [[String: Any]]; if let w = list.first(where: { ($0[kCGWindowOwnerPID as String] as? Int) == pid }) { print(w[kCGWindowNumber as String]!) }' "$pid" || true)
if [[ -n "$window_id" ]]; then
- screencapture -o -x -l "$window_id" port/results/raw/vscrs.png && echo "screenshot: port/results/raw/vscrs.png"
+ screencapture -o -x -l "$window_id" port/results/raw/vsrustium.png && echo "screenshot: port/results/raw/vsrustium.png"
else
echo "no window found for pid $pid"
fi
diff --git a/port/tools/settings-check b/port/tools/settings-check
index 9f5a37380b2..8cb08bc26e8 100755
--- a/port/tools/settings-check
+++ b/port/tools/settings-check
@@ -1,5 +1,5 @@
#!/bin/bash
-# Runs the extensions in port/tools/settings-checks against vscrs and the reference and diffs what they print:
+# Runs the extensions in port/tools/settings-checks against vsrustium and the reference and diffs what they print:
# configuration (writes, language overrides, write errors, an external settings.json edit and its change events),
# state (globalState and workspaceState across a restart, and the state.vscdb rows), secrets, environment and
# preferences (the vscode://defaultsettings documents and the vscode://schemas settings schemas; run it by name).
@@ -20,7 +20,7 @@ rm -rf "$OUT" && mkdir -p "$OUT"
launch() { # <port|ref> <dir> [--extensionTestsPath=...]
if [[ $1 == port ]]; then
- SHELL=/bin/bash VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout -k 5 120 native/target/release/vscrs "$2/folder" \
+ SHELL=/bin/bash VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout -k 5 120 native/target/release/vsrustium "$2/folder" \
--user-data-dir "$2/udd" --disable-workspace-trust --extensionDevelopmentPath="$2/ext" "${@:3}"
else
VSCODE_DEV=1 NODE_ENV=development timeout -k 5 120 "$REF/.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS" "$REF" "$2/folder" \
diff --git a/port/tools/shell-check b/port/tools/shell-check
index 9ba1436d198..512352368e6 100755
--- a/port/tools/shell-check
+++ b/port/tools/shell-check
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Runs port/fixtures/extensions/shell-tests in vscrs: the power, metered connection and product round trips
+# Runs port/fixtures/extensions/shell-tests in vsrustium: the power, metered connection and product round trips
# between the extension host and the workbench. Run on the Studio after a release build. Prints one line per check.
set -uo pipefail
cd "$(dirname "$0")/../.."
@@ -7,7 +7,7 @@ REF=${REF:-$HOME/Developer/vscode-ref-1.148.0}
out=$(mktemp -d)
source port/tools/gui-lock.sh
tests=$PWD/port/fixtures/extensions/shell-tests
-SHELL_TESTS_ROOT=$PWD VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 120 native/target/release/vscrs --user-data-dir "$out/user-data" --skip-welcome \
+SHELL_TESTS_ROOT=$PWD VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 120 native/target/release/vsrustium --user-data-dir "$out/user-data" --skip-welcome \
--extensionDevelopmentPath="$tests" --extensionTestsPath="$tests/tests" >"$out/log" 2>&1
code=$?
grep -E '^(ok|FAILED) ' "$out/log" || cat "$out/log"
diff --git a/port/tools/shell-gui-check b/port/tools/shell-gui-check
index f2fe57ee913..830cd5f5fde 100755
--- a/port/tools/shell-gui-check
+++ b/port/tools/shell-gui-check
@@ -8,7 +8,7 @@ import { tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
const ref = process.env.REF ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0');
-const binary = resolve('native/target/release/vscrs');
+const binary = resolve('native/target/release/vsrustium');
const scratch = mkdtempSync(join(tmpdir(), 'shell-gui-'));
const env = { ...process.env, VSCODE_GPUI_EXTENSIONS: join(ref, 'extensions') };
const failures: string[] = [];
@@ -74,7 +74,7 @@ async function checkProcessExplorer() {
const titles = windows.map((window: { title: string }) => window.title);
const tree = await windowTree(child.pid);
// processExplorerControl.ts labels a row with the process's own name (the host's is its findName).
- const rows = ['AXOutline "Process Explorer"', 'AXRow "vscrs"', 'AXRow "electron-nodejs (bootstrap-exthost.js)"'].filter(text => tree.includes(text));
+ const rows = ['AXOutline "Process Explorer"', 'AXRow "vsrustium"', 'AXRow "electron-nodejs (bootstrap-exthost.js)"'].filter(text => tree.includes(text));
console.log(`process explorer: windows ${JSON.stringify(titles)}, found ${rows.join(', ')}`);
if (!titles.includes('Process Explorer') || rows.length !== 3) {
failures.push(`process explorer: windows ${titles}, rows ${rows}`);
diff --git a/port/tools/shipped-files.ts b/port/tools/shipped-files.ts
index 28454ce6664..6b4f88d54f5 100644
--- a/port/tools/shipped-files.ts
+++ b/port/tools/shipped-files.ts
@@ -1,4 +1,4 @@
-// The files a Vscrs build loads at runtime: the native binary, the extension host bundle and the built-in
+// The files a VSRustium build loads at runtime: the native binary, the extension host bundle and the built-in
// extensions with every package they resolve, transitively. Shared by port/tools/telemetry-source-check and the
// app packaging (port/tools/package-app), so the check covers exactly what ships.
import { existsSync, readdirSync, readFileSync, realpathSync, statSync } from 'node:fs';
diff --git a/port/tools/telemetry-source-check b/port/tools/telemetry-source-check
index fb08c5bf6fc..9bf9bfd6286 100755
--- a/port/tools/telemetry-source-check
+++ b/port/tools/telemetry-source-check
@@ -1,5 +1,5 @@
#!/usr/bin/env bun
-// Telemetry source search (milestone 19): no telemetry or experimentation endpoint string in what a Vscrs
+// Telemetry source search (milestone 19): no telemetry or experimentation endpoint string in what a VSRustium
// build loads: the release binary, the extension host bundle, and the built-in extensions with the packages they
// resolve (port/tools/shipped-files.ts). Run on the Studio after a release build and port/tools/build-exthost:
// port/tools/studio 'port/tools/telemetry-source-check' (env VSCODE_GPUI_EXTENSIONS, default the reference's extensions)
@@ -17,7 +17,7 @@ const endpoints = /[a-z0-9.-]*events\.data\.microsoft\.com|vortex\.data\.microso
const extensionsDir = process.env.VSCODE_GPUI_EXTENSIONS ?? join(process.env.HOME!, 'Developer/vscode-ref-1.148.0/extensions');
const builtins = [...shippedBuiltins(extensionsDir), ...portBuiltins(`${process.platform}-${process.arch === 'arm64' ? 'arm64' : 'x64'}`)];
const packages = shippedPackages(builtins);
-const files = ['native/target/release/vscrs', 'out-exthost/bootstrap-exthost.js', ...[...builtins, ...packages].flatMap(runtimeFiles)];
+const files = ['native/target/release/vsrustium', 'out-exthost/bootstrap-exthost.js', ...[...builtins, ...packages].flatMap(runtimeFiles)];
if (process.env.SELF_TEST) {
const { realpathSync, existsSync } = await import('node:fs');
for (const dir of builtins) {
diff --git a/port/tools/ui-pair b/port/tools/ui-pair
index da32677c8a2..8ad752b6043 100755
--- a/port/tools/ui-pair
+++ b/port/tools/ui-pair
@@ -55,7 +55,7 @@ const [referenceTheme, portTheme] = themes[themeName];
const extraArgs = process.env.ARGS?.split(' ') ?? [];
const settings: Record<string, unknown> = JSON.parse(process.env.SETTINGS ?? '{}');
mkdirSync(outDir, { recursive: true });
-// The reference never changes: its outputs come from ~/Library/Caches/vscrs-ui-pair-ref unless REF_FRESH=1 or a
+// The reference never changes: its outputs come from ~/Library/Caches/vsrustium-ui-pair-ref unless REF_FRESH=1 or a
// {"refCache": false} step (time-dependent fixtures) says otherwise.
const referenceKey = steps.some(step => step.refCache === false) ? undefined : referenceCacheKey('.', stepsFile, themeName, process.env, ref);
const referenceCached = referenceKey !== undefined && !process.env.REF_FRESH && restoreReference(referenceKey, outDir);
@@ -150,7 +150,7 @@ function copyUserTasks(userData: string) {
}
function startPort(paths: string[], userData: string) {
- return Bun.spawn(['native/target/release/vscrs', ...paths, ...extraArgs, '--user-data-dir', userData, '--shared-data-dir', join(userData, 'shared'), '--theme', portTheme], {
+ return Bun.spawn(['native/target/release/vsrustium', ...paths, ...extraArgs, '--user-data-dir', userData, '--shared-data-dir', join(userData, 'shared'), '--theme', portTheme], {
env: { ...process.env, VSCODE_GPUI_EXTENSIONS: join(ref, 'extensions') },
stdout: 'ignore',
stderr: Bun.file(join(outDir, 'port.log')),
diff --git a/port/tools/ui-pair-ref-cache.test.ts b/port/tools/ui-pair-ref-cache.test.ts
index 7748769d085..a857d845dfe 100644
--- a/port/tools/ui-pair-ref-cache.test.ts
+++ b/port/tools/ui-pair-ref-cache.test.ts
@@ -10,7 +10,7 @@ test('the reference cache key follows the fixture, theme, run env and reference
cpSync('port/fixtures/workspace', join(root, 'port/fixtures/workspace'), { recursive: true });
cpSync('port/tools/ref-user-data.ts', join(root, 'port/tools/ref-user-data.ts'));
mkdirSync(join(root, 'native/target/release'), { recursive: true });
- writeFileSync(join(root, 'native/target/release/vscrs'), 'port 1');
+ writeFileSync(join(root, 'native/target/release/vsrustium'), 'port 1');
const steps = join(scratch, 'steps.json');
writeFileSync(steps, '[{ "shot": "a" }]');
const ref = join(scratch, 'ref');
@@ -23,7 +23,7 @@ test('the reference cache key follows the fixture, theme, run env and reference
const base = key();
expect(key()).toBe(base);
- writeFileSync(join(root, 'native/target/release/vscrs'), 'port 2');
+ writeFileSync(join(root, 'native/target/release/vsrustium'), 'port 2');
expect(key()).toBe(base);
expect(key('light')).not.toBe(base);
diff --git a/port/tools/ui-pair-ref-cache.ts b/port/tools/ui-pair-ref-cache.ts
index 5235b982f1e..49b0a9b9a6e 100644
--- a/port/tools/ui-pair-ref-cache.ts
+++ b/port/tools/ui-pair-ref-cache.ts
@@ -4,7 +4,7 @@ import { join } from 'node:path';
// Bump when ui-pair drives, shoots or sets up the reference differently: cached reference outputs are then retaken.
const referenceDrivingVersion = 2;
-const cacheRoot = join(process.env.HOME!, 'Library/Caches/vscrs-ui-pair-ref');
+const cacheRoot = join(process.env.HOME!, 'Library/Caches/vsrustium-ui-pair-ref');
/** A hash of what the reference's outputs depend on: steps, theme, run env, opened folder, reference build. Not the port. */
export function referenceCacheKey(root: string, stepsFile: string, theme: string, env: Record<string, string | undefined>, ref: string) {
diff --git a/port/tools/update-check b/port/tools/update-check
index 867f50d07ad..33437c8bf2f 100755
--- a/port/tools/update-check
+++ b/port/tools/update-check
@@ -32,7 +32,7 @@ const port = 47321;
const updateUrl = `http://127.0.0.1:${port}`;
// The feeds of the arch package-app builds for by default, this host's (update.rs reads the one it was built for).
const platform = `darwin-${process.arch === 'arm64' ? 'arm64' : 'x64'}`;
-const shipit = join(process.env.HOME!, 'Library/Caches/com.rokartur.vscrs.ShipIt');
+const shipit = join(process.env.HOME!, 'Library/Caches/com.rokartur.vsrustium.ShipIt');
const only = process.env.ONLY?.split(' ');
const results: string[] = [];
const failures: string[] = [];
@@ -46,9 +46,9 @@ if (process.env.SKIP_PACKAGE !== '1') {
await pack('P', { VERSION: '1.149.0', IDENTITY: identity, PRERELEASE: '1' });
await pack('foreign', { VERSION: '1.148.0', IDENTITY: foreignIdentity, TAG: 'foreign' });
// N+1 re-signed ad hoc, as an unsigned build would be.
- cpSync(join(packages, 'N1/Vscrs.app'), join(packages, 'adhoc/Vscrs.app'), { recursive: true, verbatimSymlinks: true });
- await Bun.$`codesign --force --deep --sign - ${join(packages, 'adhoc/Vscrs.app')}`;
- await Bun.$`ditto -c -k --keepParent ${join(packages, 'adhoc/Vscrs.app')} ${join(packages, `adhoc/Vscrs-1.148.0-${platform}.zip`)}`;
+ cpSync(join(packages, 'N1/VSRustium.app'), join(packages, 'adhoc/VSRustium.app'), { recursive: true, verbatimSymlinks: true });
+ await Bun.$`codesign --force --deep --sign - ${join(packages, 'adhoc/VSRustium.app')}`;
+ await Bun.$`ditto -c -k --keepParent ${join(packages, 'adhoc/VSRustium.app')} ${join(packages, `adhoc/VSRustium-1.148.0-${platform}.zip`)}`;
}
rmSync(feed, { recursive: true, force: true });
for (const [name, tag] of [['N1', 'v1.148.0'], ['P', 'v1.149.0-insider'], ['foreign', 'foreign'], ['adhoc', 'adhoc']]) {
@@ -112,16 +112,16 @@ async function latest() {
const settings = readFileSync(join(run.data, 'User/settings.json'), 'utf8');
await palette(first.pid, 'Restart to Update');
check('latest: N quit', await waitUntil(() => first.exitCode !== null || first.signalCode !== null, 30_000));
- check('latest: the helper installed N+1', await waitFor(join(shipit, 'ShipIt_stderr.log'), `installed ${shipit}/update/extracted/Vscrs.app at ${run.app}`, 60_000));
- check('latest: N+1 relaunched', await waitFor(join(shipit, 'ShipIt_stderr.log'), `relaunched ${run.app}/Contents/MacOS/vscrs`, 10_000));
+ check('latest: the helper installed N+1', await waitFor(join(shipit, 'ShipIt_stderr.log'), `installed ${shipit}/update/extracted/VSRustium.app at ${run.app}`, 60_000));
+ check('latest: N+1 relaunched', await waitFor(join(shipit, 'ShipIt_stderr.log'), `relaunched ${run.app}/Contents/MacOS/vsrustium`, 10_000));
check('latest: N+1 runs from the same path', version(run.app) === '1.148.0', version(run.app));
check('latest: N+1 signature valid', (await Bun.$`codesign --verify --deep --strict ${run.app}`.nothrow().quiet()).exitCode === 0);
- check('latest: the old copy is deleted', !existsSync(join(run.app, '../.Vscrs.app.old')));
+ check('latest: the old copy is deleted', !existsSync(join(run.app, '../.VSRustium.app.old')));
const relaunched = await processesOf(run.data);
- check('latest: N+1 runs with the same arguments', relaunched.some(command => command.startsWith(`${run.app}/Contents/MacOS/vscrs --user-data-dir ${run.data}`)), relaunched.join(' | '));
+ check('latest: N+1 runs with the same arguments', relaunched.some(command => command.startsWith(`${run.app}/Contents/MacOS/vsrustium --user-data-dir ${run.data}`)), relaunched.join(' | '));
check('latest: settings kept', readFileSync(join(run.data, 'User/settings.json'), 'utf8') === settings);
await Bun.sleep(2000);
- const pid = Number((await Bun.$`pgrep -f ${`${run.app}/Contents/MacOS/vscrs --user-data-dir ${run.data}`}`.text()).trim().split('\n')[0]);
+ const pid = Number((await Bun.$`pgrep -f ${`${run.app}/Contents/MacOS/vsrustium --user-data-dir ${run.data}`}`.text()).trim().split('\n')[0]);
current = { pid, log: join(shipit, 'ShipIt_stderr.log') };
await windowOf(pid);
check('latest: the release notes fetched', await waitUntil(() => count(join(scratch, 'feed.log'), 'GET /notes/tags/v1.148.0') > fetchedBefore, 30_000));
@@ -149,7 +149,7 @@ async function metered() {
check('title bar: the Update entry shows', entry !== undefined);
await screenshot(child.pid, 'title-bar-ready');
await cua('click', { pid: child.pid, window_id: entry!.window_id, element_token: entry!.token });
- check('title bar: the entry restarts to update', await waitFor(join(shipit, 'ShipIt_stderr.log'), `installed ${shipit}/update/extracted/Vscrs.app at ${run.app}`, 60_000));
+ check('title bar: the entry restarts to update', await waitFor(join(shipit, 'ShipIt_stderr.log'), `installed ${shipit}/update/extracted/VSRustium.app at ${run.app}`, 60_000));
check('title bar: N+1 installed', await waitUntil(() => version(run.app) === '1.148.0', 10_000), version(run.app));
await Bun.sleep(2000);
await Bun.$`pkill -f ${run.data}`.nothrow().quiet();
@@ -182,7 +182,7 @@ async function preRelease() {
// P as VS Code Insiders, with port/fixtures/extensions/insider-tests. First without tests: it installs the pre-release
// of rust-analyzer from the gallery and the publisher trust dialog gets its answer here, as extension tests refuse it.
const tests = join(process.cwd(), 'port/fixtures/extensions/insider-tests');
- const insiderArgs = [join(run.app, 'Contents/MacOS/vscrs'), '--user-data-dir', join(run.root, 'insider-data'), '--skip-welcome', `--extensionDevelopmentPath=${tests}`];
+ const insiderArgs = [join(run.app, 'Contents/MacOS/vsrustium'), '--user-data-dir', join(run.root, 'insider-data'), '--skip-welcome', `--extensionDevelopmentPath=${tests}`];
const done = join(run.root, 'insider-gallery-done');
const galleryLog = join(run.root, 'insider-gallery.log');
const gallery = Bun.spawn(insiderArgs, { env: { ...process.env, INSIDER_GALLERY_DONE: done }, stdout: Bun.file(galleryLog), stderr: Bun.file(galleryLog) });
@@ -228,12 +228,12 @@ async function failureCases() {
serveFeeds(n1, n1);
await palette(child.pid, 'Check for Updates');
check('swap failure: N+1 ready', await waitFor(run.log, 'update#setState ready', 150_000));
- const staged = join(shipit, 'update/extracted/Vscrs.app');
+ const staged = join(shipit, 'update/extracted/VSRustium.app');
await Bun.$`chflags uchg ${staged}`;
try {
await palette(child.pid, 'Restart to Update');
check('swap failure: rolled back', await waitFor(join(shipit, 'ShipIt_stderr.log'), 'the installed app was put back', 60_000));
- check('swap failure: N relaunched', await waitFor(join(shipit, 'ShipIt_stderr.log'), `relaunched ${run.app}/Contents/MacOS/vscrs`, 10_000));
+ check('swap failure: N relaunched', await waitFor(join(shipit, 'ShipIt_stderr.log'), `relaunched ${run.app}/Contents/MacOS/vsrustium`, 10_000));
} finally {
await Bun.$`chflags nouchg ${staged}`.nothrow();
}
@@ -247,12 +247,12 @@ async function readOnly() {
serveFeeds(n1, n1);
const image = join(scratch, 'readonly.dmg');
rmSync(image, { force: true });
- await Bun.$`hdiutil create -quiet -srcfolder ${join(packages, 'N/Vscrs.app')} -volname VscrsReadOnly -format UDZO ${image}`;
+ await Bun.$`hdiutil create -quiet -srcfolder ${join(packages, 'N/VSRustium.app')} -volname VSRustiumReadOnly -format UDZO ${image}`;
const mount = join(scratch, 'run-readonly');
mkdirSync(mount, { recursive: true });
await Bun.$`hdiutil attach -quiet -nobrowse -readonly -mountpoint ${join(mount, 'volume')} ${image}`;
try {
- const run = { root: mount, app: join(mount, 'volume/Vscrs.app'), data: userData(mount, { 'update.mode': 'manual' }), log: join(mount, 'app.log') };
+ const run = { root: mount, app: join(mount, 'volume/VSRustium.app'), data: userData(mount, { 'update.mode': 'manual' }), log: join(mount, 'app.log') };
const child = launch(run);
// update.ts registers Check for Updates for the idle state; under load the window takes longer than any fixed sleep.
check('read-only: idle', await waitFor(run.log, 'update#setState idle', 90_000));
@@ -271,7 +271,7 @@ async function readOnly() {
}
async function pack(name: string, env: Record<string, string>) {
- const out = join(packages, name, 'Vscrs.app');
+ const out = join(packages, name, 'VSRustium.app');
const product = JSON.stringify({ updateUrl, releaseNotesUrl: `${updateUrl}/notes` });
const result = await Bun.$`port/tools/package-app`.env({ ...process.env, ...env, OUT: out, PRODUCT: product }).nothrow();
// package-app exits 3 where Gatekeeper assessments are disabled; the zip is written once codesign verified.
@@ -296,8 +296,8 @@ function install(name: string, settings: object) {
const root = join(scratch, `run-${name}`);
rmSync(root, { recursive: true, force: true });
mkdirSync(join(root, 'Applications'), { recursive: true });
- const app = join(root, 'Applications/Vscrs.app');
- Bun.spawnSync(['ditto', join(packages, 'N/Vscrs.app'), app]);
+ const app = join(root, 'Applications/VSRustium.app');
+ Bun.spawnSync(['ditto', join(packages, 'N/VSRustium.app'), app]);
return { root, app, data: userData(root, settings), log: join(root, 'app.log') };
}
@@ -309,7 +309,7 @@ function userData(root: string, settings: object) {
}
function launch(run: { app: string; data: string; log: string }) {
- const child = Bun.spawn([join(run.app, 'Contents/MacOS/vscrs'), '--user-data-dir', run.data], { stdout: 'ignore', stderr: Bun.file(run.log) });
+ const child = Bun.spawn([join(run.app, 'Contents/MacOS/vsrustium'), '--user-data-dir', run.data], { stdout: 'ignore', stderr: Bun.file(run.log) });
current = { pid: child.pid, log: run.log };
return child;
}
diff --git a/port/tools/user-data-fs-check b/port/tools/user-data-fs-check
index b3ae3437a59..b63c3c9dad8 100755
--- a/port/tools/user-data-fs-check
+++ b/port/tools/user-data-fs-check
@@ -7,7 +7,7 @@ source port/tools/gui-lock.sh
dir=$(mktemp -d)
mkdir -p "$dir/workspace" "$dir/user-data/User" && echo '{"workbench.startupEditor":"none"}' >"$dir/user-data/User/settings.json"
tests=${TESTS:-$PWD/port/fixtures/extensions/user-data-fs-tests}
-timeout 120 native/target/release/vscrs "$dir/workspace" --user-data-dir "$dir/user-data" --skip-welcome \
+timeout 120 native/target/release/vsrustium "$dir/workspace" --user-data-dir "$dir/user-data" --skip-welcome \
--extensionDevelopmentPath="$tests" --extensionTestsPath="$tests/tests" >"$dir/log" 2>&1
code=$?
grep -E '^(ok|FAILED) ' "$dir/log" || tail -20 "$dir/log"
diff --git a/port/tools/webview-check b/port/tools/webview-check
index 205aca4b05a..ca0f7fcef7f 100755
--- a/port/tools/webview-check
+++ b/port/tools/webview-check
@@ -17,7 +17,7 @@ for app in ${APP:-reference port}; do
VSCODE_DEV=1 NODE_ENV=development timeout 180 "$REF/.build/electron/Code - OSS.app/Contents/MacOS/Code - OSS" "$REF" "${args[@]}" \
--disable-extension GitHub.copilot-chat >"$out/log" 2>&1
else
- VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 180 native/target/release/vscrs "${args[@]}" >"$out/log" 2>&1
+ VSCODE_GPUI_EXTENSIONS=$REF/extensions timeout 180 native/target/release/vsrustium "${args[@]}" >"$out/log" 2>&1
fi
code=$?
echo "== $app"