Visual Studio Code, rebuilt in Rust
Rust
Merge branch 'port-audit-views' into port-integrate
rokarturb62c8e201032
diff --cc README.mdindex c936d457f15,cb5a31fedaf..5217192bf9a--- a/README.md+++ b/README.md@@@ -11,8 -11,8 +11,8 @@@ Coverage of VS Code 1.147.0, from [port```mermaidpie showData- "verified" : 408- "ported" : 23- "verified" : 407- "ported" : 24++ "verified" : 409++ "ported" : 22"removed" : 126"n/a" : 28```@@@ -20,10 -20,10 +20,10 @@@| area | verified | ported | removed | n/a | verified of in scope ||---|---:|---:|---:|---:|---|| src/vs/platform | 68 | 1 | 30 | 13 | `████████████████████ 99%` |--| workbench contribution | 58 | 11 | 30 | 3 | `█████████████████░░░ 84%` |++| workbench contribution | 59 | 10 | 30 | 3 | `█████████████████░░░ 86%` || built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` || MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |-| workbench service | 58 | 7 | 23 | 7 | `██████████████████░░ 89%` |+| workbench service | 59 | 6 | 23 | 7 | `██████████████████░░ 91%` || src/vs/editor/contrib | 53 | 1 | 2 | 1 | `████████████████████ 98%` || workbench part | 10 | 1 | 2 | 0 | `██████████████████░░ 91%` || extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` |@@@ -31,7 -31,7 +31,7 @@@| src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |- | **all** | **408** | **23** | **126** | **28** | `███████████████████░ 95%` |-| **all** | **407** | **24** | **126** | **28** | `███████████████████░ 94%` |++| **all** | **409** | **22** | **126** | **28** | `███████████████████░ 95%` |<!-- 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 --cc port/ledger.mdindex 5697f895bb1,d94b6fe7dab..2913a939f3d--- a/port/ledger.md+++ b/port/ledger.md@@@ -529,7 -529,7 +529,7 @@@ One row per upstream unit, generated b| workbench/contrib/remoteTunnel | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/contrib/replNotebook | workbench contribution | M17 | verified | | verified (session m17d): cargo test -p app repl; ui-pair m17/interactive-restart.json with replPair.open repl (executed, restored, executed again, status bar) matches (/tmp/m17f); repl_notebook.rs: `$tryShowNotebookDocument` with view type `repl` (ReplEditorInput: one editor per notebook, `ensureInputBoxCell`, `REPL - N` label or `asRepl` label, scratchpad close without asking, soft revert on dispose, tab kind 4 `jupyter-notebook` editor `repl`, `debug-line-by-line` icon), the last cell as the input box under the list of the others (interactive.rs draws and runs both), `repl.execute` (insert before the input), `repl.input.focus`, `repl.focusLastItemExecuted`, `mostRecentReplEditor`, editors delta `viewType: repl`: cargo test -p app repl_notebook, ui-pair m17/interactive-window.json (replPair.open repl). The REPL editor comes back after a reload (ReplEditorSerializer `workbench.editorinputs.replEditorInput`, notebooks.rs). REPL hot exit (ReplWindowWorkingCopyEditorHandler: `notebook/<type>/repl` backups, a REPL editor opened on the restored notebook): cargo test -p app a_repl_backup_opens_a_repl_editor. Not done: the status bar while the REPL input has the focus (reference: `LF` only, then `Spaces: 4 LF Cell 1 of 1`; port: `Ln 1, Col 1 Spaces: 4 LF`), ui-pair m17/interactive-window.json (replPair.open repl) || workbench/contrib/sash | workbench contribution | M11 | verified | | `workbench.sash.size` (editor group sashes 4..20, their highlight 1..8; the part grid's sashes are its 4px gaps) and `workbench.sash.hoverDelay` on every sash (part grid, view panes, editor groups, find widget, keybindings table), three-dot grippers on the part sashes with `workbench.sash.autoHideGrippers` and its delay (part_grid.rs); cargo test -p app part_grid; verified: ui-pair hot-exit.json `sash` vs the reference (port/results/windows.md, milestone 11 verification) |- | workbench/contrib/scm | workbench contribution | M14 | ported | [3 S] scm_repositories_view.rs:415: the Repositories rows lack the reference's 4px pane inset, the tree's indent guides and the repository row's `...` for its menu's secondary actions <br> [3 S] scm_view.rs:1062: inline submenus are not drawn (git's Stash submenu on the Stashes artifact group) <br> [3 M] scm_view.rs:114, :742: headers as view_panes panes; labels.ts shorten | SCM view: input box, action button, groups, resources with decorations, inline and title actions, activity badge, status bar commands (workbench/scm_view.rs); quick diff gutter and peek (quick_diff.rs, quick_diff_widget.rs), multiple repositories, tree view mode and sort (scm_tree.rs), Graph view (scm_history.rs, scm_graph_view.rs) with its history item ref picker and filters (scm_graph_view/ref_picker.rs; ui-pair m11/scm-graph-refs.json), view actions (scm_actions.rs), editor commands run from the resource row: cargo test -p app scm; Graph subjects draw their `$(icon)`s (cargo test -p app a_subject_draws_its_icons); Repositories view with selection modes, sort keys, nested repositories and explorer mode's artifact groups, folders and artifacts with their menus (scm_repositories_view.rs; cargo test -p app the_repositories_ explorer_mode_), its Shift+click range and list keys (cargo test -p app the_repositories_tree_takes_shift_clicks_and_keys), Escape and `list.toggleSelection` (cargo test -p app escape_and_toggle_selection_leave_the_shown_repositories), the lone repository's expansion and `scm.repositoriesViewState` (cargo test -p app lone_repository), the shown repositories and sort key across sessions (cargo test -p app the_shown_repositories_come_back_with_their_sort_key) |-| workbench/contrib/scm | workbench contribution | M14 | ported | [3 S] scm_repositories_view.rs:572: no Shift+click range or keyboard navigation in the Repositories list <br> [3 S] scm_repositories_view.rs:235: explorer mode expands no lone repository on the setting change and restores no expanded rows (`scm.repositoriesViewState`) <br> [3 S] scm_repositories_view.rs:346: the Repositories rows lack the reference's 4px pane inset, the tree's indent guides and the repository row's `...` for its menu's secondary actions <br> [3 S] scm_view.rs:925: inline submenus are not drawn (git's Stash submenu on the Stashes artifact group) <br> [3 M] scm_view.rs:211: the shown repositories are not restored across sessions (scmViewService.ts `scm:view:visibleRepositories`) <br> [3 L] scm_view.rs:88: the Extensions views and the Explorer's webview views are headers drawn by `section_header`, not view_panes panes (no sashes, header drag or stored sizes); the Extensions viewlet's own expansion rules (extensions_view.rs) move onto `PaneView` | SCM view: input box, action button, groups, resources with decorations, inline and title actions, activity badge, status bar commands (workbench/scm_view.rs); same-named repositories told apart by labels.ts `shorten` of their parent folders (quick_input.rs `shorten` with labels.test.ts's posix cases): cargo test -p app shorten_cuts same_named_repositories; quick diff gutter and peek (quick_diff.rs, quick_diff_widget.rs), multiple repositories, tree view mode and sort (scm_tree.rs), Graph view (scm_history.rs, scm_graph_view.rs) with its history item ref picker and filters (scm_graph_view/ref_picker.rs; ui-pair m11/scm-graph-refs.json), view actions (scm_actions.rs), editor commands run from the resource row: cargo test -p app scm; Graph subjects draw their `$(icon)`s (cargo test -p app a_subject_draws_its_icons); Repositories view with selection modes, sort keys, nested repositories and explorer mode's artifact groups, folders and artifacts with their menus (scm_repositories_view.rs; cargo test -p app the_repositories_ explorer_mode_) |++| workbench/contrib/scm | workbench contribution | M14 | ported | [3 S] scm_repositories_view.rs:415: the Repositories rows lack the reference's 4px pane inset, the tree's indent guides and the repository row's `...` for its menu's secondary actions <br> [3 S] scm_view.rs:1062: inline submenus are not drawn (git's Stash submenu on the Stashes artifact group) <br> [3 L] scm_view.rs:88: the Extensions views and the Explorer's webview views are headers drawn by `section_header`, not view_panes panes (no sashes, header drag or stored sizes); the Extensions viewlet's own expansion rules (extensions_view.rs) move onto `PaneView` | SCM view: input box, action button, groups, resources with decorations, inline and title actions, activity badge, status bar commands (workbench/scm_view.rs); same-named repositories told apart by labels.ts `shorten` of their parent folders (quick_input.rs `shorten` with labels.test.ts's posix cases): cargo test -p app shorten_cuts same_named_repositories; quick diff gutter and peek (quick_diff.rs, quick_diff_widget.rs), multiple repositories, tree view mode and sort (scm_tree.rs), Graph view (scm_history.rs, scm_graph_view.rs) with its history item ref picker and filters (scm_graph_view/ref_picker.rs; ui-pair m11/scm-graph-refs.json), view actions (scm_actions.rs), editor commands run from the resource row: cargo test -p app scm; Graph subjects draw their `$(icon)`s (cargo test -p app a_subject_draws_its_icons); Repositories view with selection modes, sort keys, nested repositories and explorer mode's artifact groups, folders and artifacts with their menus (scm_repositories_view.rs; cargo test -p app the_repositories_ explorer_mode_), its Shift+click range and list keys (cargo test -p app the_repositories_tree_takes_shift_clicks_and_keys), Escape and `list.toggleSelection` (cargo test -p app escape_and_toggle_selection_leave_the_shown_repositories), the lone repository's expansion and `scm.repositoriesViewState` (cargo test -p app lone_repository), the shown repositories and sort key across sessions (cargo test -p app the_shown_repositories_come_back_with_their_sort_key) || workbench/contrib/screenshotTool | workbench contribution | | removed | | Artur: internal infrastructure or developer tool with no 1:1 counterpart in the native port || workbench/contrib/scrollLocking | workbench contribution | M14 | verified | | workbench/scroll_locking.rs: Toggle and Hold Locked Scrolling and the prominent `status.scrollLockingEnabled` entry: cargo test -p app scroll_locking; a locked wheel scroll moves every other visible editor as far from its position when tracked (`onDidEditorPaneScroll`; cargo test -p app a_locked_scroll_moves_every_other_visible_editor); Hold locks while its key is down and unlocks on the key up (keybindingService.ts `enableKeybindingHoldMode`; cargo test -p app a_held_key_locks_scrolling_until_it_goes_up); without a focused element Hold toggles, as the key up reaches the workbench through the focus path || workbench/contrib/search | workbench contribution | M12 | verified | | Search view (workbench/search_view.rs, search_actions.rs) and its model (search_model.rs): cargo test -p app search_model (searchResult, fileMatch and replace tests) and workbench::search_actions (context menu, input history, hover right click, the replace preview opened and updated with the replace string), port/tools/ui-pair frames match the reference in dark, light and hc (port/notes.md milestone 12); anythingQuickAccess.ts file picks: cargo test -p app anything_quick_access quick_open. No notebook or AI results; Find in Folder from the Explorer (cargo test -p app find_in_folder; ui-pair m12/find-in-folder.json with `search.mode` newEditor matches); ui-pair m12/search-replace.json (query, Replace input, preview) matches; the message words at their exact widths, so "2 results in 2 files - Open in editor" fits one line as in the reference (cargo test -p app the_message_words_take_their_exact_width; pair: same box, 408 device px wide) |