Visual Studio Code, rebuilt in Rust
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.
Language
The port and its measure
Upstream: The VS Code source at the tag the port follows. It is the specification, and the port reads it and never edits it. Avoid: original, VS Code repo, vscode source
Reference: A running VS Code of the Upstream version that the port is compared with: its pixels, its sizes, its API behavior. Avoid: original app, baseline, real VS Code
1:1: The rule that a ported feature matches Upstream in behavior, look and tests. A difference is either a Gap or a Decision. Avoid: parity, compatible, close enough
Uplift: The move of the port from one Upstream version to a newer one. Avoid: upgrade, bump, rebase
Tracking the work
Ledger:
The one source of truth for the state of the port: the Work table (open rows in port/ledger.md, closed ones in port/ledger/done.md) and the Units table (port/ledger/units).
Avoid: tracker, roadmap, backlog
Notes: The decisions, traps and measurements behind the Ledger, one section per Milestone. They take the place of ADRs. Avoid: changelog, wiki
Unit: One folder or seam of Upstream, tracked as one row of the Ledger's Units table. Avoid: module, feature, component
Milestone: A numbered group of Units that ships one feature end to end. It is done only when each of its units is Verified, removed or not applicable. Avoid: phase, sprint, epic
Gap: A known difference from Upstream in a Unit, written in the unit's row with a class and a size. Avoid: TODO, bug, missing feature
Class:
What kind of Gap it is, which says what closes it: 1 is stale, 2 is a platform limit, 3 is a behavior difference, and scheduling and linux name their own kind. A class 3 gap keeps its Unit from being Verified.
Avoid: priority, severity
Ported: The status of a Unit whose behavior is written and that still lists a Gap. Avoid: done, finished
Verified: The status of a Unit whose Narrowest check passes and that has no open class 3 Gap. Avoid: done, complete, tested
Narrowest check: The smallest test filter, tool run or fixture that can fail on one Unit. It is the evidence of the unit's row. Avoid: full suite, test plan, smoke test
Decision: A choice of the owner, recorded in the Ledger or the Notes. A deliberate difference from Upstream is always one. Avoid: ADR, assumption, default
Accepted platform difference: A class 2 Gap that the owner accepted with one line in the Notes, because the OS or the framework cannot give what Upstream has. Avoid: known issue, won't fix
The shape of the code
Model: The plain data and functions of one feature, with no knowledge of the window that shows it. Avoid: service, store, controller
Workbench: The single owner of all state of one window. Upstream's services are its fields and methods. Avoid: app state, window controller, root component
Part view: The cached drawing of one workbench part, drawn again only when that part is notified. Avoid: component, widget, panel
Session: The thread that owns the connection of one window to its extension host and answers the calls that need no window. Avoid: host thread, RPC thread, connection
Host sync: The one ordered queue through which the Workbench tells the extension host about state and asks it for answers. Avoid: channel, bridge, bus
Platform glue:
The code that calls an OS API, in a file named after the OS beside the portable module that uses it. It is the only place for unsafe code.
Avoid: native code, bindings, shim
Hot path: Code that runs for each frame, each key or each scroll event. Avoid: critical path, performance-sensitive code
Checking a change
Studio: The build machine. Every build, test and GUI run happens there, not on a laptop. Avoid: CI, server, remote
Lane: A desktop on the Studio that one GUI tool holds while it runs, because an app that opens a window takes the focus. Avoid: slot, queue, runner
Pixel check: A comparison of one still window of the port with the same window of the Reference. Avoid: screenshot test, visual regression test
Paired run: One step file driven through the port and the Reference, for a state that only input reaches. Avoid: e2e test, UI test
Gate: A check with a fixed limit that fails on a performance regression. Avoid: benchmark (a measurement without a limit), perf test
Budget: The measured value of a whole-app metric that a Gate holds the port to. Avoid: target, goal, threshold