Visual Studio Code, rebuilt in Rust
Rust
docs(port): close the quickinput anchor gap, no 1.147 caller left
rokartur69219f8d5a3c
diff --git a/README.md b/README.mdindex ac48d7b173f..fc11dc80610 100644--- a/README.md+++ b/README.md@@ -11,15 +11,15 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V```mermaidpie showData- "verified" : 414- "ported" : 16+ "verified" : 415+ "ported" : 15"removed" : 126"n/a" : 28```| area | verified | ported | removed | n/a | verified of in scope ||---|---:|---:|---:|---:|---|-| src/vs/platform | 68 | 1 | 30 | 13 | `████████████████████ 99%` |+| src/vs/platform | 69 | 0 | 30 | 13 | `████████████████████ 100%` || workbench contribution | 64 | 4 | 30 | 3 | `███████████████████░ 94%` || built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` || MainThread* shape (Rust side) | 58 | 1 | 30 | 0 | `████████████████████ 98%` |@@ -31,7 +31,7 @@ pie showData| src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |-| **all** | **414** | **16** | **126** | **28** | `███████████████████░ 96%` |+| **all** | **415** | **15** | **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 8432738abb0..d2964ee2180 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -252,7 +252,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| 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 || platform/progress | src/vs/platform | M11 | verified | | ProgressLocation values and the step shape, in main_thread_progress.rs; verified: ui-pair messages.json `progress` vs the reference (port/results/windows.md, milestone 11 verification) || platform/protocol | src/vs/platform | | n/a | | Electron process, IPC or DOM layer; replaced by the single-process Rust/GPUI architecture (port/notes.md) |-| platform/quickinput | src/vs/platform | M9 | ported | [3 M] platform/quickinput: anchored pickers for editor tabs; QuickWidget class 1; QuickTree class 4 (chat) | quickPickPin.ts pins match a terminal session command by its timestamp `id`, store label, description and detail, and stay for the session after the picker hides: cargo test -p app a_pinned_session_command_stays_pinned_until_the_session_ends; cargo test -p app quick_input, filters, tf_idf (`\p{Letter}` words: tf_idf::tests::words_follow_the_javascript_regex), command_palette: the model cases of quickinput.test.ts (pick, input, active and selected items, section navigation, keepScrollPosition, title bar visibility, close animation and reopening); api-tests quick input 11/11; ad-hoc palette screenshot 0.28% pixels differ at 2% fuzz; a row's description at the highlighted name's exact width (cargo test -p app the_description_follows_the_highlighted_name_s_exact_width; Cmd+P `ts` pair: `src` within 0.3 device px of the reference); a separator's buttons show while an item of its section is active (a_separator_s_buttons_show_while_an_item_of_its_section_is_active); an item's tooltip is its hover, 6px wider from the list's padding, kept on key down and hidden on a value change (an_item_s_tooltip_is_its_row_s_hover_until_the_value_changes; port/fixtures/ui-pair/quick-input-item-hover.json: the command palette hover falls back below the row as the reference's) |+| platform/quickinput | src/vs/platform | M9 | verified | [1 S] platform/quickinput: createQuickWidget, whose only non-chat caller is the profile icon picker (QuickTree is chat only, port/notes.md) | quickPickPin.ts pins match a terminal session command by its timestamp `id`, store label, description and detail, and stay for the session after the picker hides: cargo test -p app a_pinned_session_command_stays_pinned_until_the_session_ends; cargo test -p app quick_input, filters, tf_idf (`\p{Letter}` words: tf_idf::tests::words_follow_the_javascript_regex), command_palette: the model cases of quickinput.test.ts (pick, input, active and selected items, section navigation, keepScrollPosition, title bar visibility, close animation and reopening); api-tests quick input 11/11; ad-hoc palette screenshot 0.28% pixels differ at 2% fuzz; a row's description at the highlighted name's exact width (cargo test -p app the_description_follows_the_highlighted_name_s_exact_width; Cmd+P `ts` pair: `src` within 0.3 device px of the reference); a separator's buttons show while an item of its section is active (a_separator_s_buttons_show_while_an_item_of_its_section_is_active); an item's tooltip is its hover, 6px wider from the list's padding, kept on key down and hidden on a value change (an_item_s_tooltip_is_its_row_s_hover_until_the_value_changes; port/fixtures/ui-pair/quick-input-item-hover.json: the command palette hover falls back below the row as the reference's) || platform/registry | src/vs/platform | M9 | n/a | | Registry.add/as, a string-keyed registry of registries for the JS module graph; the port passes its typed registries directly (config::registry::Registry, Commands, the menus and keybindings modules), so there is no lookup by id to port || platform/remote | src/vs/platform | | removed | | no remote or tunnels by decision (port/notes.md); one local extension host || platform/remoteTunnel | src/vs/platform | | removed | | no sign-in/AI by decision (port/notes.md); not ported |diff --git a/port/notes.md b/port/notes.mdindex da0f9702c56..58ab438655a 100644--- a/port/notes.md+++ b/port/notes.md@@ -262,7 +262,7 @@ Scope as in its Work row of port/ledger.md. Done in this milestone: the command- `--export-default-keybindings [folder]` (keybindingsExport.contribution.ts; ignored on a stable build, a packaged latest one): writes `doc.keybindings.osx.json` into the folder (relative to the working directory, default `<appRoot>/doc`), the core defaults in registry order and then each built-in extension's rules unsorted, followed by the unbound commands, and quits. The Windows and Linux files are not written: the port carries only the macOS default table (`keybindings/default-macos.json`), a product decision of a macOS-only port.- File Icon Theme picker (`workbench.action.selectIconTheme`, themes.contribution.ts): None (`''`, written as `null`) and the `contributes.iconThemes` entries by label, previewed and restored as the color theme picker. Icon theme files are JSONC (vs_minimal-icon-theme.json has comments), so `FileIconTheme::load` strips comments as the color theme loader does. shortcut: no product icon theme picker; no built-in extension contributes one, and a third-party one needs its font to replace codicons.-- quickinput.test.ts cases the port leaves for their callers: `createQuickWidget` (only the profile icon picker, milestone 10, and chat), `createQuickTree` (chat only; quickInputTreeSorter.test.ts with it), `anchor`/`anchorPosition` (editor tab and browser view pickers, milestone 11), separators with buttons drawn as header rows (terminal run recent, browser history), item hovers (`quickPickItemTooltip` is a proposed API and the hover is markdown, milestone 13). `isKeyModified` and `quickInputButtonsToActionArrays` secondary buttons have no non-AI caller; toggle and alwaysVisible buttons are in `quick_input.rs`.+- quickinput.test.ts cases the port leaves for their callers: `createQuickWidget` (only the profile icon picker, milestone 10, and chat), `createQuickTree` (chat only; quickInputTreeSorter.test.ts with it), `anchor`/`anchorPosition` (only removed parts set them in 1.147: the integrated browser's browserUrlBarWidget.ts, chat and sessions; `withQuickInputAnchor` has no workbench caller, and the editor tab bar's `+` of editorAddTabControl.ts is a context menu dropdown). Separators with buttons show while an item of their section is active (`focusInsideSeparator`); an item's `tooltip` is its row's hover, padded by the list's `.monaco-scrollable-element` rule since its host sits in the list, and it hides when the value changes (`hideHoverOnValueChange`) though not on other keys (`hideOnKeyDown: false`); `quickPickItemTooltip` markdown tooltips from extensions are a proposed API. `isKeyModified` and `quickInputButtonsToActionArrays` secondary buttons have no non-AI caller; toggle and alwaysVisible buttons are in `quick_input.rs`.- Help quick access (`?`, helpQuickAccess.ts): one pick per help entry of the providers the port has, sorted by prefix with `locale_compare`, labelled with the prefix (`…` for Quick Open), with the command's keybinding; accepting or typing a provider's prefix after `?` shows that provider with its value kept. The command center's help picks gain More `?`. The list filters by label containment, where upstream's quick pick filter matches fuzzily. shortcut: the `view ` provider (Open View) waits for view containers and the panel of milestone 11; the reference's `%`, `@`, `#`, `debug`, `task`, `term`, `edt`, `ext` providers come with their milestones.- Context menu submenus (`workbench/context_menu.rs`, menu.ts `SubmenuMenuActionViewItem`): the menu is a stack of levels, keys go to the last. Hover opens a submenu after 250ms, another item of its menu (or the pointer leaving the menus) closes it after 750ms unless the pointer returns; a click, Right, Enter or Space opens it with its first item focused; Left and Escape close only the submenu. Submenus are placed by `calculateSubmenuMenuLayout` and have no open animation. The Manage gear opens `MenuId.GlobalActivity` beside it (`layout2d` with `AnchorAxisAlignment.HORIZONTAL`, `AnchorAlignment.RIGHT`). Share and Copy As submenus (clipboard.ts, editor.contribution.ts) take the `*/share` and `*/copy` contributions. shortcut: no `window.menuStyle: native` context menus, GPUI has no native popup menu.