Visual Studio Code, rebuilt in Rust
Rust
docs(port): list every 1.148.0 uplift item as a ledger row
rokartur96b0e4760679
diff --git a/port/ledger.md b/port/ledger.mdindex e9df8b4c676..3650dd75e1b 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -36,7 +36,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,| 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. |-| Milestones | M21 uplift to VS Code 1.148.0 | later | Postponed by Artur. 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. The empty-editor hint rewrite is a move with no visible change. Largest items: SCM providers hidden and shown at runtime (the new `$setSourceControlsHidden`, used by the git extension through `scmProviderOptions`); `$getWorkspaceFolderLocations` for the git extension's `workspaceFolderLocations` proposal (primary locations only); the add-tab menu and wrapped tabs; the comment widgets; the multi diff file list as a split button; folder merge on drop in the Explorer; the remove-folder vetoes (workspace editing, tasks, debug); named pipes in the disk provider; Debug Console completion ranges; theme and modern UI color changes. Steps: 1) session 1 does the setup and milestones 7 to 11. Setup: the 1.148.0 reference on the Studio; `upstream/` moved with `git -C upstream checkout 1.148.0`; the 9 upstream patches checked with `git apply --check` (1.148.0 does not touch those files); the extension host rebuilt; `gen-proxy-ids.ts` (the ids move after the new `MainThreadRemoteAgentHosts`); the reference dumps, the baselines and the version bump. 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 | M21 uplift to VS Code 1.148.0 | later | Postponed by Artur. 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 | 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 (README Build section). `git ls-tree main` holds no upstream file. || 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 (`native/vendor/wu`) already has its Linux platform (Wayland and X11). 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` and the `linux-<arch>.json` and `linux-<arch>-prerelease.json` feed entries (port/notes.md milestone 23); deb and AppImage 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 or Wayland 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 | later | After milestone 23, on the same seams: WebView2 (wry), the Win32 file dialogs, the in-window menu bar and custom title bar, Credential Manager (keyring), the user-setup install path and `code` on PATH, `%APPDATA%\Code` settings import, ConPTY for the terminal (alacritty_terminal has it), an x64 and arm64 zip and a user installer, no Authenticode signing (the Windows signing decision). Builds on a GitHub Actions `windows` runner. | As milestone 23, for win32-x64 and win32-arm64. |@@ -61,6 +61,60 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,| M23 Linux | app/src/workbench/menubar.rs:173 | open | [linux M] menu bar in the custom title bar. Linux shows now: no menu bar; gpui_linux `set_menus` keeps the menus and draws none. | || M23 Linux | .github/workflows/linux.yml:1 | open | [linux S] move actions/checkout, actions/setup-node and actions/upload-artifact from v4 to their Node 24 majors (pinned by SHA). Linux shows now: run 46222369725 warns that they target the deprecated Node 20 and runs them on Node 24. | || 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` |+| M21 uplift | setup: reference | later | On the Studio: check out `1.148.0` in `~/Developer/vscode-ref`, run `npm ci`, compile it and its extensions (port/notes.md "Reference"), then run `port/tools/fetch-builtin-extensions` again. | `~/Developer/vscode-ref/package.json` names 1.148.0 and `port/tools/ref-screenshot` draws it |+| M21 uplift | setup: upstream checkout | later | `git -C upstream fetch origin tag 1.148.0 --no-tags`, then `git -C upstream checkout 1.148.0` (1.148.0 is not a descendant of 1.147.0: each release is its own branch). 1.148.0 does not change the files that the 9 `port/patches/*.patch` and the `product.json` overlay touch. Rebuild the extension host. | `git -C upstream apply --check port/patches/*.patch`; `port/tools/build-exthost` |+| M21 uplift | setup: proxy ids | later | 1.148.0 appends `MainThreadRemoteAgentHosts` to `MainContext`, so every `ExtHostContext` id after it moves by one: rerun `bun port/tools/gen-proxy-ids.ts`. The port answers the new proxy as inert, the same as the other removed agent proxies. | `cargo test -p exthost`; exthost-probe 30/30 on Bun and Node |+| M21 uplift | setup: reference dumps | later | 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`. | `port/tools/settings-check` lists the new settings and not the removed one |+| M21 uplift | setup: baselines | later | 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 reference numbers for 1.148.0 in port/results/api-tests-reference.md |+| M21 uplift | setup: version bump | later | 1.148.0 in `VERSION` (`native/crates/app/src/main.rs`) and in this file's text that names 1.147.0; rerun `bun port/tools/gen-ledger.ts`. New units: `mainthread/MainThreadRemoteAgentHosts` gets a `removed` row (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` |+| M21 uplift | setup: diff recount | later | 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`. | the counts match, or the plan and these rows take the difference |+| M21 uplift | extension/* grammars | later | 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). | `cargo test -p app syntax` (`colorize_fixtures_match_the_reference`) |+| M21 uplift | extension/theme-defaults | later | 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. | ui-pair 2026-light tab bar and top activity bar, light_modern Cmd+P; the defaultThemeColors.test.ts cases (74 lines) in `cargo test -p app theme` |+| M21 uplift | workbench/services/themes | later | M7, 26 lines (`modernTabColorCustomizations.ts`, `tabDividerColor.ts`): modern tabs fall back to `editorGroupHeader.tabsBorder` for the tab border, and `tab.divider` follows a customized `tab.border` unless `tab.divider` is customized itself. | `cargo test -p app theme` with the 3 cases of the new test |+| M21 uplift | editor/contrib/suggest | later | M13, 6 lines (`suggestWidget.ts`): the default of `editorSuggestWidget.focusHighlightForeground` becomes `quickInputList.focusHighlightForeground`; when the theme sets `editorSuggestWidget.selectedBackground` it is `list.focusHighlightForeground` (`ifDefinedThenElse`). | `cargo test -p app theme` color defaults |+| M21 uplift | editor/browser and editor/contrib/folding | later | M8, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 2 lines (`keybindingsEditorModel`): the Keyboard Shortcuts row id includes `systemWide`. | `cargo test -p app keybindings_editor` |+| M21 uplift | workbench/contrib/modernUI | later | M11, 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, 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, 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, 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, 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, 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, 3 lines (`viewsService`): title actions are rebuilt once, not twice. | the existing view tests |+| M21 uplift | platform/files | later | M12, 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, 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, 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, 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, 12 lines (`virtualWorkspace`, `browser/contextkeys.ts`): the `workspaceHasVirtualContent` context key. | `cargo test -p app context_keys` |+| M21 uplift | workbench/services/workspaces | later | M12, 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, 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, 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, 5 lines: the Comments view container registers once. | `cargo test -p app comment` |+| M21 uplift | mainthread/MainThreadSCM and workbench/contrib/scm | later | M14, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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`). | || Later | Wu memory | later | Measured 99 MiB once and 154 to 156 MiB later, cause not investigated. | || Later | Bun native-watchdog | later | Bun runs without `@vscode/native-watchdog` (oven-sh/bun#18546): a host with a stuck event loop is not killed; recheck on each Bun upgrade. | |