Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(scm): show the resource folder menu on tree folders

rokartur2cd9721ac2c6
diff --git a/README.md b/README.md
index e664377ccc8..582c8606f5a 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
```mermaid
pie showData
- "verified" : 414
- "ported" : 16
+ "verified" : 413
+ "ported" : 17
"removed" : 126
"n/a" : 28
```
@@ -20,7 +20,7 @@ pie showData
| area | verified | ported | removed | n/a | verified of in scope |
|---|---:|---:|---:|---:|---|
| src/vs/platform | 69 | 0 | 30 | 13 | `████████████████████ 100%` |
-| workbench contribution | 65 | 3 | 30 | 3 | `███████████████████░ 96%` |
+| workbench contribution | 64 | 4 | 30 | 3 | `███████████████████░ 94%` |
| built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` |
| MainThread* shape (Rust side) | 58 | 1 | 30 | 0 | `████████████████████ 98%` |
| workbench service | 58 | 7 | 23 | 7 | `██████████████████░░ 89%` |
@@ -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** | **414** | **16** | **126** | **28** | `███████████████████░ 96%` |
+| **all** | **413** | **17** | **126** | **28** | `███████████████████░ 96%` |
<!-- 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/native/crates/app/src/menus.rs b/native/crates/app/src/menus.rs
index 7e5bf03cd86..f0ba66c986f 100644
--- a/native/crates/app/src/menus.rs
+++ b/native/crates/app/src/menus.rs
@@ -75,6 +75,8 @@ pub enum MenuId {
ScmTitle,
ScmResourceGroupContext,
ScmResourceStateContext,
+ /// `MenuId.SCMResourceFolderContext`: a tree mode folder row's actions and context menu.
+ ScmResourceFolderContext,
ScmInputBox,
/// `MenuId.SCMSourceControl`: a repository row's context menu.
ScmSourceControl,
@@ -874,7 +876,7 @@ pub fn workbench_menus() -> Vec<MenuItem> {
/// menusExtensionPoint.ts `apiMenus`: the `contributes.menus` keys of the menus the port shows. `commandPalette`
/// is read by `command_palette::menu`.
-const API_MENUS: [(&str, MenuId); 44] = [
+const API_MENUS: [(&str, MenuId); 45] = [
("file/newFile", MenuId::NewFile),
("editor/context", MenuId::EditorContext),
("explorer/context", MenuId::ExplorerContext),
@@ -883,6 +885,7 @@ const API_MENUS: [(&str, MenuId); 44] = [
("scm/title", MenuId::ScmTitle),
("scm/resourceGroup/context", MenuId::ScmResourceGroupContext),
("scm/resourceState/context", MenuId::ScmResourceStateContext),
+ ("scm/resourceFolder/context", MenuId::ScmResourceFolderContext),
("scm/inputBox", MenuId::ScmInputBox),
("scm/change/title", MenuId::ScmChangeContext),
("diffEditor/gutter/hunk", MenuId::DiffEditorHunkToolbar),
diff --git a/native/crates/app/src/menus/tests.rs b/native/crates/app/src/menus/tests.rs
index e50b4fddb35..b27f615fc18 100644
--- a/native/crates/app/src/menus/tests.rs
+++ b/native/crates/app/src/menus/tests.rs
@@ -181,7 +181,11 @@ fn extension_menu_items() {
/// menusExtensionPoint.ts `apiMenus`: the keys of the menus a view of the port shows.
#[test]
fn api_menu_keys_reach_their_menus() {
- let keys = [("terminal/context", MenuId::TerminalInstanceContext), ("terminal/title/context", MenuId::TerminalTabContext)];
+ let keys = [
+ ("terminal/context", MenuId::TerminalInstanceContext),
+ ("terminal/title/context", MenuId::TerminalTabContext),
+ ("scm/resourceFolder/context", MenuId::ScmResourceFolderContext),
+ ];
for (key, menu) in keys {
let items = extension_menus(&[extension("k", json!({ "commands": [{ "command": "k.run", "title": "Run" }], "menus": { key: [{ "command": "k.run" }] } }))]);
let reached: Vec<_> = items.iter().map(|item| item.menu).collect();
diff --git a/native/crates/app/src/workbench/scm_actions/tests.rs b/native/crates/app/src/workbench/scm_actions/tests.rs
index 46375a3f165..7f4d98d8211 100644
--- a/native/crates/app/src/workbench/scm_actions/tests.rs
+++ b/native/crates/app/src/workbench/scm_actions/tests.rs
@@ -267,3 +267,34 @@ fn ref_changes_refresh_the_graph_or_mark_it_outdated_when_scrolled(cx: &mut Test
assert_eq!(graph(&workbench, cx).0, false, "at the top a background change refreshes too");
assert_ne!(graph(&workbench, cx).1, stale);
}
+
+/// scmViewPane.ts `ResourceRenderer` and `onListContextMenu`: a tree mode folder shows
+/// `MenuId.SCMResourceFolderContext`, run with the folder's resources (git's `git.stage` on a folder).
+#[gpui::test]
+fn a_folder_row_shows_the_resource_folder_menu_with_its_resources(cx: &mut TestAppContext) {
+ use crate::menus::{Entry, MenuItem};
+ let (workbench, _receiver, cx) = workbench_in("scm-resource-folder", cx);
+ cx.simulate_resize(gpui::size(gpui::px(1024.), gpui::px(768.)));
+ request(&workbench, cx, "$registerSourceControl", register(0, "/w/repo"));
+ let raw = |handle: u64, path: &str| json!([handle, { "scheme": "file", "path": path }, [null, null], "Modified", false, false, "", null, null, null]);
+ let groups = json!([[2, "workingTree", "Changes", {}, false]]);
+ request(&workbench, cx, "$registerGroups", vec![json!(0), groups, json!([[2, [[0, 0, [raw(1, "/w/repo/src/a.ts"), raw(2, "/w/repo/c.ts"), raw(3, "/w/repo/src/b.ts")]]]]])]);
+ workbench.update_in(cx, |workbench, window, cx| {
+ let when = crate::contextkey::Expr::deserialize("scmProvider == git && scmResourceGroup == workingTree");
+ workbench.menus.push(MenuItem { menu: MenuId::ScmResourceFolderContext, entry: Entry::Command { id: "git.stage".into(), precondition: None, toggled: None, alt: None }, title: "Stage Changes".into(), group: "1_modification".into(), order: 0., when: when.clone() });
+ workbench.menus.push(MenuItem { menu: MenuId::ScmResourceFolderContext, entry: Entry::Command { id: "git.clean".into(), precondition: None, toggled: None, alt: None }, title: "Discard Changes".into(), group: "inline".into(), order: 1., when });
+ drop(workbench.execute_command("workbench.scm.action.setTreeViewMode", Vec::new(), window, cx));
+ drop(workbench.execute_command("workbench.view.scm", Vec::new(), window, cx));
+ workbench.set_part_hidden(crate::workbench::layout::Part::SideBar, false, cx);
+ });
+ cx.run_until_parked();
+ let folder = cx.debug_bounds("scm-folder-0-2-src").expect("the tree shows the src folder").center();
+ cx.simulate_mouse_down(folder, gpui::MouseButton::Right, gpui::Modifiers::none());
+ cx.run_until_parked();
+ workbench.read_with(cx, |workbench, _| {
+ let menu = workbench.context_menu.as_ref().expect("the folder's context menu opens");
+ assert!(matches!(&menu.levels[0].actions[..], [MenuAction::Command { id, .. }] if id == "git.stage"), "{:?}", menu.levels[0].actions);
+ let resource = |handle: u64| json!({ "$mid": 3, "sourceControlHandle": 0, "groupHandle": 2, "handle": handle });
+ assert_eq!(menu.args, [resource(1), resource(3)]);
+ });
+}
diff --git a/native/crates/app/src/workbench/scm_tree.rs b/native/crates/app/src/workbench/scm_tree.rs
index c99b6c676a1..a10e4d40756 100644
--- a/native/crates/app/src/workbench/scm_tree.rs
+++ b/native/crates/app/src/workbench/scm_tree.rs
@@ -4,14 +4,15 @@
use std::path::{Path, PathBuf};
-use gpui::{ClickEvent, Context, Div, Stateful, div, prelude::*, px};
-use serde_json::json;
+use gpui::{Bounds, ClickEvent, Context, Div, MouseButton, MouseDownEvent, Stateful, Window, div, prelude::*, px};
+use serde_json::{Value, json};
use super::Workbench;
use super::scm_view::{INDENT, ROW_HEIGHT, TWISTIE};
use crate::commands::Outcome;
use crate::explorer::compare_file_names;
use crate::file_icons::FolderIcon;
+use crate::menus::MenuId;
use crate::scm::{Group, Provider, Resource};
use crate::search_model::compare_paths;
@@ -46,15 +47,24 @@ impl Workbench {
}
}
- /// `ResourceRenderer` of a folder node: twistie, folder icon and the compressed label; a click toggles it.
- pub(super) fn scm_folder_row(&self, provider: &Provider, group: &Group, path: PathBuf, label: String, depth: usize, cx: &mut Context<Self>) -> Stateful<Div> {
+ /// `ResourceRenderer` of a folder node: twistie, folder icon, the compressed label and `MenuId.SCMResourceFolderContext`
+ /// inline on hover and as its context menu, run with the folder's resources (`RepositoryPaneActionRunner`).
+ pub(super) fn scm_folder_row(&self, provider: &Provider, group: &Group, path: PathBuf, label: String, depth: usize, window: &Window, cx: &mut Context<Self>) -> Stateful<Div> {
let foreground = self.foreground_or("sideBar.foreground");
let key = (provider.handle, group.handle, path);
let expanded = !self.scm.collapsed_folders.contains(&key);
let icon = self.file_icons.as_ref().and_then(|icons| icons.folder_icon(FolderIcon { path: Path::new(&label), is_root: false, expanded }, self.theme.kind, 13., ROW_HEIGHT, foreground)).unwrap_or_else(|| div().w(px(16.)));
let id = gpui::SharedString::from(format!("scm-folder-{}-{}-{}", provider.handle, group.handle, key.2.display()));
+ let context = self.scm_context(provider, Some(group), None, window);
+ let root = PathBuf::from(provider.root_uri["path"].as_str().unwrap_or_default());
+ let paths: Vec<PathBuf> = group.resources.iter().map(resource_path).collect();
+ let args: Vec<Value> = folder_resources(&root.join(&key.2), &paths).into_iter().map(|index| Self::resource_arg(provider, group, &group.resources[index])).collect();
+ let actions = self.inline_actions(MenuId::ScmResourceFolderContext, None, &context, args.clone(), foreground, cx);
+ let selector = id.to_string();
div()
- .id(id)
+ .id(id.clone())
+ .debug_selector(move || selector)
+ .group(id.clone())
.h(px(ROW_HEIGHT))
.pl(px(INDENT * (1 + depth) as f32))
.pr(px(12.))
@@ -68,9 +78,14 @@ impl Workbench {
}
cx.notify();
}))
+ .on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &MouseDownEvent, window, cx| {
+ let actions = crate::menus::menu_group_actions(&workbench.menus, MenuId::ScmResourceFolderContext, &context, |group| group != "inline");
+ workbench.show_context_menu_actions(actions, &context, Bounds::new(event.position, Default::default()), args.clone(), window, cx);
+ }))
.child(self.icon(if expanded { "chevron-down" } else { "chevron-right" }, TWISTIE, 16., foreground))
.child(icon.mr(px(6.)))
.child(div().flex_1().min_w_0().overflow_hidden().whitespace_nowrap().child(label))
+ .child(div().invisible().group_hover(id, |actions| actions.visible()).child(actions))
}
pub(super) fn scm_tree_mode(&self) -> bool {
@@ -98,6 +113,39 @@ fn resource_path(resource: &Resource) -> PathBuf {
PathBuf::from(resource.uri["path"].as_str().unwrap_or_default())
}
+/// `ResourceTree.collect` of the folder at `folder`: its resources depth first, each node's children in the order
+/// they were added.
+pub fn folder_resources(folder: &Path, paths: &[PathBuf]) -> Vec<usize> {
+ let inside: Vec<(usize, Vec<String>)> = paths
+ .iter()
+ .enumerate()
+ .filter_map(|(index, path)| path.strip_prefix(folder).ok().map(|relative| (index, relative.components().map(|part| part.as_os_str().to_string_lossy().into_owned()).collect())))
+ .collect();
+ // A resource at the folder's own path is the node's element, collected before its children.
+ let mut resources: Vec<usize> = inside.iter().filter(|(_, parts)| parts.is_empty()).map(|(index, _)| *index).collect();
+ collect(&inside.iter().filter(|(_, parts)| !parts.is_empty()).map(|(index, parts)| (*index, parts.as_slice())).collect::<Vec<_>>(), &mut resources);
+ resources
+}
+
+fn collect(nodes: &[(usize, &[String])], resources: &mut Vec<usize>) {
+ let mut names: Vec<&String> = Vec::new();
+ for (_, parts) in nodes {
+ if !names.contains(&&parts[0]) {
+ names.push(&parts[0]);
+ }
+ }
+ for name in names {
+ let mut deeper = Vec::new();
+ for (index, parts) in nodes.iter().filter(|(_, parts)| parts[0] == *name) {
+ match parts.len() {
+ 1 => resources.push(*index),
+ _ => deeper.push((*index, &parts[1..])),
+ }
+ }
+ collect(&deeper, resources);
+ }
+}
+
/// `SCMTreeSorter` in list mode.
pub fn list_rows(resources: &[Resource], sort_key: &str) -> Vec<TreeRow> {
let mut order: Vec<usize> = (0..resources.len()).collect();
@@ -203,6 +251,15 @@ mod tests {
assert_eq!(collapsed.len(), 5);
}
+ /// A folder row's actions get `ResourceTree.collect` of its node: depth first in insertion order.
+ #[test]
+ fn a_folder_collects_its_resources_depth_first() {
+ let resources = resources(&["src/b.ts", "src/deep/x.ts", "lib/one.ts", "src/a.ts", "src/deep/y.ts"]);
+ let paths: Vec<PathBuf> = resources.iter().map(resource_path).collect();
+ assert_eq!(folder_resources(Path::new("/r/src"), &paths), [0, 1, 4, 3]);
+ assert_eq!(folder_resources(Path::new("/r/src/deep"), &paths), [1, 4]);
+ }
+
#[test]
fn the_list_sorts_by_path_then_by_name() {
let resources = resources(&["z/a.txt", "b.txt", "a/c.txt"]);
diff --git a/native/crates/app/src/workbench/scm_view.rs b/native/crates/app/src/workbench/scm_view.rs
index 5bfb352fdb0..bdff3341989 100644
--- a/native/crates/app/src/workbench/scm_view.rs
+++ b/native/crates/app/src/workbench/scm_view.rs
@@ -596,7 +596,7 @@ impl Workbench {
}
/// The `ISCMResource` argument a resource menu action gets, as `MainThreadSCMResource.toJSON`.
- fn resource_arg(provider: &Provider, group: &Group, resource: &Resource) -> Value {
+ pub(super) fn resource_arg(provider: &Provider, group: &Group, resource: &Resource) -> Value {
json!({ "$mid": 3, "sourceControlHandle": provider.handle, "groupHandle": group.handle, "handle": resource.handle })
}
@@ -678,7 +678,7 @@ impl Workbench {
let tree = self.scm_tree_mode();
for row in self.scm_rows(&root, &group.resources, &collapsed) {
rows.push(match row {
- TreeRow::Folder { path, label, depth } => self.scm_folder_row(provider, group, path, label, depth + level, cx).into_any_element(),
+ TreeRow::Folder { path, label, depth } => self.scm_folder_row(provider, group, path, label, depth + level, window, cx).into_any_element(),
TreeRow::Resource { index, depth } => self.scm_resource_row(provider, group, &group.resources[index], tree.then_some(depth), level, window, cx).into_any_element(),
});
}
diff --git a/port/fixtures/ui-pair/m11/scm-folder-menu.json b/port/fixtures/ui-pair/m11/scm-folder-menu.json
new file mode 100644
index 00000000000..e54c408f29c
--- /dev/null
+++ b/port/fixtures/ui-pair/m11/scm-folder-menu.json
@@ -0,0 +1,12 @@
+[
+ {"hotkey": ["ctrl", "shift", "g"]},
+ {"wait": 3000},
+ {"hover": [150, 199]},
+ {"wait": 800},
+ {"shot": "hover"},
+ {"rightClick": [150, 199], "foreground": true},
+ {"wait": 1000},
+ {"shot": "menu"},
+ {"key": "escape"},
+ {"wait": 500}
+]
diff --git a/port/ledger.md b/port/ledger.md
index cf74151739a..663f33f0b07 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -28,7 +28,7 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,
| Milestones | M11 workbench layout and chrome | in progress | The part grid with sashes and hidden parts, panel and secondary side bar, view containers and collapsible views, tree views from extensions (with the Refactor Preview of workbench/contrib/bulkEdit, which file operation participants open), editor groups and splits, notifications, dialogs (native open/save), progress, banner, status bar entries from extensions, decorations, window lifecycle (close, quit, hot exit backup), multiple windows, focus and inactive look. Open gaps: the gaps column of its unit rows. | api-tests `window.test` (messages, progress, tree views, status bar) pass as in the reference; pixel-check gains a window with panel and split editor; hot exit restores an unsaved buffer after quit. |
| Milestones | M12 files, explorer, search, workspace | in progress | File system service with watcher (FSEvents) and extension file system providers, Explorer file operations (new, rename, delete to Trash, drag and drop, copy/paste), Seti file icons, numeric name collation, workspace trust, multi-root `.code-workspace`, recent workspaces, text search through ripgrep, search view and search editor, bulk edits, local history, opener and URL handling. Open gaps: the gaps column of its unit rows. | api-tests `workspace.test`, `workspace.fs.test`, `workspace.event.test`, `workspace.tasks` excluded, and the api-workspace suite pass as in the reference; pixel-check folder window with Seti icons (reference captured without `workbench.iconTheme: null`); `cargo test -p app` sorting test with `file9`/`file10`. |
| Milestones | M13 language features | in progress | Everything `MainThreadLanguageFeatures` registers, drawn by the native editor: completion, hover, signature help, code actions and lightbulb, code lens, inlay hints, go to definition and peek, references, rename, formatting, document symbols and Outline, semantic tokens, semantic word highlight, links, color picker, linked editing, snippets, call and type hierarchy, inline completions from extensions; diagnostics with squiggles and the Problems panel; comments threads; Emmet; the language status item. Open gaps: the gaps column of its unit rows. | api-tests `languages.test`, `languagefeatures.test`-family and `comments` cases pass as in the reference; with `src/main.ts` open TypeScript completion, hover, go to definition and a diagnostic squiggle work (pixel-check window with a squiggle and the suggest widget). |
-| Milestones | M14 source control and diff | done | SCM view and input box, quick diff gutter, the diff editor (side by side and inline), multi-file diff, merge editor and merge-conflict decorations, timeline, the git, git-base and github extensions fully working (no sign-in: github features that need a token stay off). Open gaps: the gaps column of its unit rows. | api-tests SCM cases pass as in the reference; with the fixture copied into a git repository the SCM view lists a changed file and opening it shows the diff (pixel-check window). |
+| Milestones | M14 source control and diff | in progress | SCM view and input box, quick diff gutter, the diff editor (side by side and inline), multi-file diff, merge editor and merge-conflict decorations, timeline, the git, git-base and github extensions fully working (no sign-in: github features that need a token stay off). Open gaps: the gaps column of its unit rows. | api-tests SCM cases pass as in the reference; with the fixture copied into a git repository the SCM view lists a changed file and opening it shows the diff (pixel-check window). |
| 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. |
@@ -365,7 +365,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/parts/views | workbench part | M11 | verified | | Explorer views as panes (view_panes.rs): collapse by mouse and keys, sashes, header drag to reorder with drop overlay, state in workbench.explorer.views.state; no view actions, view menus or hidden views; cargo test -p app view_panes, ui-pair port/results/layout.md; pane headers drawn statically (workbench.rs section_header): no collapse, resize or view actions; verified: ui-pair port/results/references-view.md and every pair of port/results/windows.md (milestone 11 verification): the Explorer panes and contributed views as the reference; Explorer and Source Control views as panes of a ViewPaneContainer (view_panes.rs `PaneContainer`): collapse by mouse and keys, sashes, header drag to reorder with drop overlay, single view merged into the container, header actions, state in the container's storageId; cargo test -p app view_panes scm_container, ui-pair port/results/layout.md and port/fixtures/ui-pair/m11/scm-panes.json (port/notes.md View panes); verified: ui-pair port/results/references-view.md and every pair of port/results/windows.md (milestone 11 verification): the Explorer panes and contributed views as the reference; Run and Debug, Extensions and webview containers still draw section_header rows: no collapse, resize or view actions; welcome buttons draw their `$(icon)`s (cargo test -p app a_welcome_button_draws_its_label_icons; ui-pair port/fixtures/ui-pair/icons/scm-welcome.json: github's Publish to GitHub button with the github codicon as the reference); wrapped text stacks unsnapped 18.2px lines as Chromium (vendor gpui elements/text.rs; cargo test -p app wrapped_lines_keep_their_fractional_line_height): scm-welcome's Publish button 0.5pt from the reference, was 2.5pt; left: the port wraps "Git" of "To learn more about how to use Git" to the next line; a merged view's "..." puts the Views submenu, a separator and the view's own actions (panecomposite.ts `getSecondaryActions`; cargo test -p app a_merged_changes_view_shows_the_views_submenu_in_its_more_actions a_merged_view_without_actions_lists_the_view_toggles_flat) |
| workbench/services/accessibility | workbench service | M19 | verified | | electron-browser accessibilityService.ts over GPUI: screen reader attach follows Electron's `isAccessibilitySupportEnabled` on macOS (VoiceOver, or an assistive app setting AXManualAccessibility or AXEnhancedUserInterface, as cua-driver does; ui-pair screen-reader-detection.json with accessibility support auto shows the prompt in both), the Screen reader usage detected prompt and status entry; port/tools/a11y-check; cargo test -p app accessib; electron-browser accessibilityService.ts over GPUI: screen reader attach follows is_a11y_active, the Screen reader usage detected prompt and status entry; port/tools/a11y-check; cargo test -p app accessib |
| workbench/services/accounts | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
-| workbench/services/actions | workbench service | M9 | ported | [3 L] contributes.menus: about 32 unmapped ids, none with a MenuId or a menu shown by the port yet (each needs its view's menu first, e.g. the debug variables and watch context menus with their built-in items): debug/*, testing/*, viewContainer/title, webview/context, extension/context, editor/title/run, modalEditor/editorTitle, notebook/cell/execute, notebook/kernelSource, mergeEditor/result/title, comments peek, issue/reporter; chat/*, agents/*, ports/*, statusBar/remoteIndicator class 4; touchBar class 2 | contributes.menus and contributes.submenus for editor/context, explorer/context, editor/title/context (menus::extension_menus): cargo test -p app menus explorer_actions; terminal/context and terminal/title/context (cargo test -p app api_menu_keys_reach_their_menus); ui-pair README.md Explorer menu (port/results/contextmenu.md); other menu ids wait for their views |
+| workbench/services/actions | workbench service | M9 | ported | [3 L] contributes.menus: unmapped ids of menusExtensionPoint.ts, each needing its view's menu first (e.g. the debug variables and watch context menus with their built-in items): debug/*, scm/historyItemRef/context, testing/item/gutter, testing/profiles/context, testing/item/result, testing/message/context, testing/message/content, viewContainer/title, webview/context, extension/context, editor/title/run, modalEditor/editorTitle, editor/inlineCompletions/actions, diffEditor/gutter/selection, multiDiffEditor/content, notebook/cell/execute, notebook/kernelSource, notebook/variables/context, mergeEditor/result/title, comments/comment/editorActions, comments/commentThread/additionalActions, comments/commentThread/title/context, comments/commentThread/comment/context, issue/reporter, searchPanel/aiResults/commands, titleBar; chat/*, chatSessions/*, agents/*, editor/context/chat, ports/*, statusBar/remoteIndicator, menuBar/home class 4; touchBar class 2 | contributes.menus and contributes.submenus for editor/context, explorer/context, editor/title/context (menus::extension_menus): cargo test -p app menus explorer_actions; terminal/context and terminal/title/context (cargo test -p app api_menu_keys_reach_their_menus); ui-pair README.md Explorer menu (port/results/contextmenu.md); other menu ids wait for their views |
| workbench/services/activity | workbench service | M11 | verified | | activity badges of view containers: view `$setBadge` values, the SCM and Extensions counts and `withProgress` progress badges (300 ms delay, kept 300 ms), numbers summed and shortened as compositeBarActions.ts (workbench/activity.rs; cargo test -p app -- activity progress_at_a_view_container_badges_its_activity_bar_item); `withCompositeProgress` progress bars of a container (side bar or panel title bottom) and of a view (pane header, merged title): `options.delay`, discrete worked of total, infinite, gone on done (progress_at_a_view_container_shows_its_progress_bar_under_the_title); ui-pair `activity-badge.json` on a git folder with two changes: the Source Control badge matches the reference (AE 1808 over the window, port/results/layout.md) |
| workbench/services/agentEditorComments | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/services/agentHost | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
@@ -529,7 +529,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| 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 | verified | | 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), inline submenus with their contributed icon (cargo test -p app an_inline_submenu_opens_with_the_toolbar_arguments extension_submenus), the Repositories rows' inset, indent guides and "..." (cargo test -p app the_repositories_rows_draw_inset_guides_and_more_actions) |
+| workbench/contrib/scm | workbench contribution | M14 | ported | [3 S] workbench/scm_view.rs resource and resource group rows, scm_actions.rs repository row: their right-click menus keep the `inline` group, upstream drops it (scmViewPane.ts `onListContextMenu`, util.ts `collectContextMenuActions`)<br>[3 S] workbench/scm_tree.rs tree rows: the `src` folder's twistie and label sit at x 66 and 104 against the reference's 80 and 100, without its indent guides, folder decoration dot and path hover (ui-pair m11/scm-folder-menu.json `tree`, `hover`) | Resource folder menu with its resources as arguments, inline on hover (cargo test -p app a_folder_row a_folder_collects; ui-pair m11/scm-folder-menu.json `menu` with the git extension); 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), inline submenus with their contributed icon (cargo test -p app an_inline_submenu_opens_with_the_toolbar_arguments extension_submenus), the Repositories rows' inset, indent guides and "..." (cargo test -p app the_repositories_rows_draw_inset_guides_and_more_actions) |
| 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) |