Skip to content

Visual Studio Code, rebuilt in Rust

Rust

chore(port): clone and name VS Code 1.148.0 in the setup docs and CI

rokartur496f7fd55fb3
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 9758dc55a61..e3bad3ca4eb 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -38,12 +38,12 @@ jobs:
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
toolchain: stable
- - name: VS Code 1.147.0
+ - name: VS Code 1.148.0
# @vscode/ripgrep's postinstall downloads from the GitHub API, which answers 403 to runners without a token.
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
- git clone --branch 1.147.0 --depth 1 https://github.com/microsoft/vscode upstream
+ git clone --branch 1.148.0 --depth 1 https://github.com/microsoft/vscode upstream
cd upstream
VSCODE_SKIP_NODE_VERSION_CHECK=1 npx -y [email protected] install
npx -y [email protected] run compile
diff --git a/AGENTS.md b/AGENTS.md
index 70e9a4d28ae..b004a67f758 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
# VSRustium agent instructions
-VSRustium is a Rust/GPUI port of VS Code 1.147.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 port's state, about 1 MB: search it with `rg`, never read it whole.
@@ -9,7 +9,7 @@ The port's state, about 1 MB: search it with `rg`, never read it whole.
Rules:
-- Port 1:1: match upstream 1.147.0's behavior, look and tests, citing the upstream file. A difference is a decision in `port/notes.md` or a ledger row that is not `verified`.
+- Port 1:1: match upstream 1.148.0's behavior, look and tests, citing the upstream file. A difference is a decision in `port/notes.md` or a ledger row that is not `verified`.
- Builds, tests and GUI runs go to the Studio: `port/tools/studio '<cmd>'`, GUI tools with `port/tools/studio --lane '<cmd>'`.
- Markdown: one paragraph per source line, no hard wrapping.
- UI labels use title-style capitalization, as upstream's.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 67df6400e1f..fe335bc46a3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,13 +1,13 @@
# Contributing to VSRustium
-VSRustium is a 1:1 port of VS Code 1.147.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.147.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
You need Rust (stable), [Bun](https://bun.sh) 1.4.5 and Node.js 24 (for VS Code's own install and compile).
```sh
-git clone --branch 1.147.0 --depth 1 https://github.com/microsoft/vscode upstream
+git clone --branch 1.148.0 --depth 1 https://github.com/microsoft/vscode upstream
(cd upstream && npx -y [email protected] install && npx -y [email protected] run compile)
bun port/tools/build-exthost
(cd native && cargo build --release -p app)
@@ -24,7 +24,7 @@ native/target/release/vsrustium
## The bar for a change
-- Match upstream 1.147.0: its behavior, look and tests. Cite the upstream file the change follows. A deliberate difference is a decision in `port/notes.md`.
+- Match upstream 1.148.0: its behavior, look and tests. Cite the upstream file the change follows. A deliberate difference is a decision in `port/notes.md`.
- A fix comes with a test that fails without it (`cargo test -p app <name>`).
- A UI change comes with a side-by-side check against VS Code: `port/tools/pixel-check` for still windows, `port/tools/ui-pair` for states reached by clicks and keys.
- Commits follow [Conventional Commits](https://www.conventionalcommits.org): `fix(titlebar): draw disabled Go Back in disabledForeground`.
diff --git a/SECURITY.md b/SECURITY.md
index 19d74ad1b92..c2ad5f78821 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -21,4 +21,4 @@ You get an answer in the advisory. A fix is published with the advisory after a
In scope: the port's code in `native/` and `port/`, its patches to VS Code in `port/patches/`, the packaged app and its update feed, and problems in the extension host that the port's changes cause.
-Out of scope: vulnerabilities in VS Code itself, which also affect VS Code 1.147.0. Report those to Microsoft: [VS Code security policy](https://github.com/microsoft/vscode/security/policy). Vulnerabilities in a third-party extension go to its author.
+Out of scope: vulnerabilities in VS Code itself, which also affect VS Code 1.148.0. Report those to Microsoft: [VS Code security policy](https://github.com/microsoft/vscode/security/policy). Vulnerabilities in a third-party extension go to its author.
diff --git a/port/ledger.md b/port/ledger.md
index 9123cec6c56..358c08514bc 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -107,7 +107,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| M21 uplift | setup: proxy ids | done | 1.148.0 appends `MainThreadRemoteAgentHosts` to `MainContext` (id 90), so every `ExtHostContext` id after it moves by one: `bun port/tools/gen-proxy-ids.ts` (172 identifiers). The port answers the new proxy as inert, the same as the other removed agent proxies: its two methods return void, so the session.rs fallback (`undefined`) is the whole answer. | `cargo test -p exthost`: 88 passed; exthost-probe on Bun and Node: 26/26 code extensions activate, both round trips pass, the same 26 as with the 1.147.0 extensions (2026-12-01) |
| M21 uplift | setup: reference dumps | done | Rerun `port/tools/dump-settings`, `ref-commands`, `ref-contextmenu`, `ref-menubar`, `ref-hover` and `ref-dom`. They bring in without code: `workbench.editor.newTabButton` (renamed from `workbench.editor.experimental.newTabButton`), the removed `multiDiffEditor.experimental.fileList`, the new `update.enableEarlyStaging`, `markdown.editor.initialMode` and `workbench.editor.experimental.emptyEditorHintOpenInMarkdownEditor`. The multi diff editor stops reading the removed setting: its file list is always available (the rest of that row stays open). `ref-menubar` on 1.148.0 differs from the 1.147.0 dumps only in Open Recent's history, so the menubar references stay; `ref-dom colors:*` changes only Light Modern's 8 quick pick and suggest focus colors in `port/fixtures/theme-colors/light.json`. `ref-contextmenu` and `ref-hover` were not rerun here: they feed per-feature ui-pair checks, which the work rows below rerun. | `port/tools/settings-check preferences` on 1.148.0: the 4 new core settings and `markdown.editor.initialMode` in both lists, neither removed key in either (2026-12-01) |
| M21 uplift | setup: baselines | done | Refresh the pixel-check baseline and `port/results/api-tests-reference.md`. 1.148.0 adds `browser.tools.test.ts` cases (integrated browser, removed) and an `http.noProxy` step in `proxy.test.ts` (row extension/vscode-api-tests). | api-tests on the 1.148.0 reference: api-folder 362/46/0 (6 new tests, all in the removed `chat - browser tools` suite, so the port's target stays 318/28/0), api-workspace 4/0/0 (port/results/api-tests-reference.md); pixel-check against 1.148.0 in port/results/pixels.md "Baseline against 1.148.0" (2026-12-01) |
-| M21 uplift | setup: version bump | done | 1.148.0 in `VERSION` (`native/crates/app/src/main.rs`), in this file's header and 1:1 rule, and in README.md's coverage line (`port/tools/readme-coverage.ts` now reads the version from upstream's `package.json`); evidence that names a 1.147.0 dump keeps its version. `bun port/tools/gen-ledger.ts` added one unit: `mainthread/MainThreadRemoteAgentHosts`, `removed` (remote agent hosts). `mainthread/MainThreadGitExtensionService` (21 lines) is a client of the removed IGitService and stays with the `removed` row `mainthread/MainThreadGitExtension`. | `bun port/tools/ledger-check.ts` exits 0; 595 rows (2026-12-01) |
+| M21 uplift | setup: version bump | done | 1.148.0 in `VERSION` (`native/crates/app/src/main.rs`), in this file's header and 1:1 rule, and in README.md's coverage line (`port/tools/readme-coverage.ts` now reads the version from upstream's `package.json`); the `upstream` clone tag in README.md, CONTRIBUTING.md and `.github/workflows/linux.yml`, AGENTS.md and SECURITY.md; README.md's benchmark keeps 1.147.0, the version it measured; the Studio mirrors' `upstream` link (`port/tools/studio`) is repointed to `~/Developer/vscode-ref-1.148.0` on every sync; evidence that names a 1.147.0 dump keeps its version. `bun port/tools/gen-ledger.ts` added one unit: `mainthread/MainThreadRemoteAgentHosts`, `removed` (remote agent hosts). `mainthread/MainThreadGitExtensionService` (21 lines) is a client of the removed IGitService and stays with the `removed` row `mainthread/MainThreadGitExtension`. | `bun port/tools/ledger-check.ts` exits 0; 595 rows (2026-12-01) |
| M21 uplift | setup: diff recount | done | Run `bun port/tools/uplift-diff.ts 1.148.0 1.147.0` on the split tree and compare its group counts with section 1 of `port/plans/uplift-1.147.0-to-1.148.0.md`. Same as the plan but for the new `removed` row `mainthread/MainThreadRemoteAgentHosts` (36 lines), which moves from "new upstream unit" to "removed by decision". | to port 79 rows (10,606 lines), new unit 1 (21, `mainthread/MainThreadGitExtensionService`), removed by decision 32 (78,874), tests only 8, API typings 5, not mapped 29 folders (2026-12-01) |
| M21 uplift | extension/* grammars | done | M7. New upstream grammar commits for cpp, csharp, dart, dotenv, go, java, latex, log, php, razor, rust and scss (1,265 lines of data) arrive with the reference's extensions; the colorize fixtures `test-80644_cpp`, `test_env` and `test_tex` change (712 lines). No port code: the test reads grammars, fixtures and results from the 1.148.0 tree. | `cargo test -p app syntax` on the 1.148.0 tree: 17 passed, `colorize_fixtures_match_the_reference` ok (2026-12-01) |
| M21 uplift | extension/theme-defaults | done | M7, 8 lines. Light 2026: `editorGroupHeader.connectedTabsBackground` #EAEAEA to #F0F0F3, `tab.divider` #CECECE, `activityBarTop.inactiveForeground` #606060. Light Modern: the quick pick's focused row is #005FB8 with #FFFFFF foreground, icon and highlight. | The themes are read from the 1.148.0 extension, no code: `cargo test -p app -- theme::` on the 1.148.0 tree, `light_modern_quick_pick_focus_is_distinct_from_idle_and_hovered_rows_with_readable_content` and `light_2026_connected_tabs_have_a_light_strip_visible_dividers_and_readable_labels` pass (both fail on 1.147.0's themes), `resolved_colors_match_the_reference_workbench_variables` against the 1.148.0 `ref-dom` dump; ui-pair not run (2026-12-01) |