Visual Studio Code, rebuilt in Rust
Rust
docs(ledger): record the missing stopExtensionHosts veto
rokartur9c1a15b5cc67
diff --git a/README.md b/README.mdindex e775651ffee..3a1cc8a73f4 100644--- a/README.md+++ b/README.md@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V```mermaidpie showData- "verified" : 418- "ported" : 12+ "verified" : 417+ "ported" : 13"removed" : 126"n/a" : 28```@@ -23,7 +23,7 @@ pie showData| workbench contribution | 66 | 2 | 30 | 3 | `███████████████████░ 97%` || built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` || MainThread* shape (Rust side) | 58 | 1 | 30 | 0 | `████████████████████ 98%` |-| workbench service | 59 | 6 | 23 | 7 | `██████████████████░░ 91%` |+| workbench service | 58 | 7 | 23 | 7 | `██████████████████░░ 89%` || src/vs/editor/contrib | 54 | 0 | 2 | 1 | `████████████████████ 100%` || workbench part | 10 | 1 | 2 | 0 | `██████████████████░░ 91%` || extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` |@@ -31,7 +31,7 @@ pie showData| src/vs/editor | 1 | 1 | 1 | 1 | `██████████░░░░░░░░░░ 50%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |-| **all** | **418** | **12** | **126** | **28** | `███████████████████░ 97%` |+| **all** | **417** | **13** | **126** | **28** | `███████████████████░ 97%` |<!-- coverage:end -->`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.diff --git a/port/ledger.md b/port/ledger.mdindex f6768b01858..1d74c7fe642 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -32,7 +32,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,| Milestones | M15 terminal, tasks, output | done | Integrated terminal (PTY from Rust, VT parser and renderer in GPUI), shell integration, extension terminals and pseudoterminals, tasks and problem matchers, npm/grunt/gulp/jake task providers, external terminal, Output panel and log viewer. Open gaps: the gaps column of its unit rows. | api-tests `terminal.test`, `terminal.shellIntegration.test` and `workspace.tasks.test` pass as in the reference (run with `SHELL=/bin/bash` as the baseline was); `npm: build` task from the fixture runs in a terminal. || Milestones | M16 debug and testing | in progress | Debug adapter protocol client, launch.json, breakpoints in the gutter, call stack, variables, watch, debug console, JS debugger (`ms-vscode.js-debug`), Test Explorer and test results. Open gaps: the gaps column of its unit rows. | api-tests `debug.test` and testing cases pass as in the reference; a breakpoint in a Node script from the fixture stops and shows variables. || Milestones | M17 webviews and notebooks | in progress | A WKWebView embedded in the GPUI window for webview panels, webview views and custom editors, with the upstream message and resource protocol; Markdown preview, image/media preview, simple browser, editor insets; notebooks (ipynb) with renderers and kernels. Open gaps: the gaps column of its unit rows. | api-tests `webview.test`, `customEditor` and `notebook*.test` cases pass as in the reference; Markdown preview of the fixture README draws next to its source. |-| Milestones | M18 extensions: install, update, gallery | done | Extensions view backed by Open VSX, install/uninstall/update/disable, VSIX install, signature and checksum checks, recommendations, ESM extensions added after startup on Bun, language packs and display language. | Installing an extension from Open VSX activates it without restart (an ESM one included); api-tests `extensions.test` pass as in the reference. PORT_GALLERY=1 port/tools/extensions-check: 6 ok; MOCHA_GREP="vscode server cli" port/tools/api-tests: its one test pending, as in the reference (remote only). |+| Milestones | M18 extensions: install, update, gallery | in progress | Extensions view backed by Open VSX, install/uninstall/update/disable, VSIX install, signature and checksum checks, recommendations, ESM extensions added after startup on Bun, language packs and display language. | Installing an extension from Open VSX activates it without restart (an ESM one included); api-tests `extensions.test` pass as in the reference. PORT_GALLERY=1 port/tools/extensions-check: 6 ok; MOCHA_GREP="vscode server cli" port/tools/api-tests: its one test pending, as in the reference (remote only). || Milestones | M19 product shell, privacy, accessibility, release | done | Welcome page and walkthroughs, update channel for the port's own builds, relaunch, splash, accessibility (VoiceOver through GPUI's accessibility tree, accessibility signals, high-contrast checks), process explorer and performance views, telemetry inert end to end, packaged and signed `.app`. Open gaps: the gaps column of its unit rows. | The telemetry source search (no telemetry endpoint string reachable) and network capture (zero outbound requests in a 10 min session with no user action) pass; VoiceOver reads the editor line and the Explorer rows; the signed `.app` passes `spctl -a`; benchmark rerun against a packaged reference build. || Milestones | M20 parity | in progress | Nothing new; close the gaps the earlier milestones left (the gaps column of the unit rows). Completion check in port-m20-check: api-tests met (318/28/0 in the target's suites, 4/0/0, port/results/api-tests.md); pixel-check met, the remaining differences are the causes in port/results/pixels.md; ledger not met: the `ported` rows, each with its open gaps. Closed in workbench/contrib/comments: comment threads in diff and multi diff editors, floating ones included, with the floating style's `FloatingWidgetRoom`. | `port/tools/api-tests` gives 318/28/0 (folder) and 4/0/0 (workspace): the reference baseline 356/46/0 less the suites and tests of removed features (chat, lm, the integrated browser, `env.remoteName`) (port/results/api-tests-reference.md); pixel-check of every window has no difference beyond anti-aliasing and the causes listed in `port/results/pixels.md`; every ledger row is `verified`, `removed` or `n/a`. || Milestones | M20 multi-instance code editor | open | Upstream every diff side, multi diff file side, notebook cell and walkthrough snippet is its own CodeEditorWidget; the port draws one editable code editor per group. Bound to that one instance today: `text_area` (workbench/editor_view.rs) and its `text_area_bounds`, the group's `viewport` (`EditorGroup`, editor.rs), `editor_focus` and its listeners (workbench.rs), `editors.active()` as the target of every editor command, the cursor, find and suggest, IME through `EntityInputHandler for Workbench` (text_input.rs), mouse selection in `editor_lines`, and the content widgets (hover, suggest, parameter hints, zone widgets) placed against that one area. Rows that need it: `workbench/contrib/multiDiffEditor` (its modified sides are read-only, upstream edits them in place); the diff editor's original pane, drawn by hand (`original_pane`, diff_editor_view.rs), which upstream can focus, select and search in; the stacked editors of notebook cells and the Editor Playground (port/notes.md, Stacked code editors), which draw every unfocused model as lines only and leave its rows exposed to the active editor's mouse handling. | N code editors with their own viewport, focus, cursor and widgets render in one group, and a multi diff modified side takes typing and undo. |@@ -393,7 +393,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| 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 `.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 |+| workbench/services/extensions | workbench service | M18 | ported | [3 M] extension_host_restart.rs:37, :49: `stopExtensionHosts` fires no `onWillStop` and asks no veto (abstractExtensionService.ts:742), so every restart path (Restart Extension Host, profile switch, trust revoke, first folder change, entering a workspace) stops the host unasked | 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 || 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 | | read-only part (`workbench/readonly.rs`): session override commands, `updateReadonly(target, false)` after Save Anyway, `files.readonlyInclude`/`readonlyExclude`/`readonlyFromPermissions`, tab lock badge, edit guards and the read-only message: cargo test -p app readonly, ui-pair ro.txt against the reference (port/notes.md milestone 8); `updateReadonly` fires its change only when the session override changes (`applyReadonly`, cargo test -p app update_readonly_notifies_only_when_the_session_override_changes); auto save part: `computeAutoSaveConfiguration`, `getAutoSaveMode` with reasons, `autoSaveWorkspaceFilesOnly`, `autoSaveWhenNoErrors`, `toggleAutoSave` and File > Auto Save (workbench/auto_save.rs, cargo test -p app auto_save); `files.hotExit` is read by the backup tracker (workbench/services/workingCopy row). Removed with their callers: `updateReadonly` with a custom reason or a resource array (filesConfigurationService.test.ts), called only by chat, inline chat and the issue reporter || workbench/services/github | workbench service | M14 | removed | | binds the platform/github clients to sign-in sessions (no sign-in by decision); the anonymous gist read is main_thread_github.rs |