Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(menus): comment editor actions, comment context menus and merge result toolbar

rokarturf8f2d4ac224d
diff --git a/README.md b/README.md
index 06d228e8c71..b06b6d217ab 100644
--- a/README.md
+++ b/README.md
@@ -7,31 +7,31 @@ Not a fork of VS Code's TypeScript: this repository holds the port only. Upstrea
## Coverage
<!-- coverage:start -->
-Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). Verified means 1:1 with a named check; ported means written, with its open gaps in the same row.
+Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (586 rows). Verified means 1:1 with a named check; ported means written, with its open gaps in the same row.
```mermaid
pie showData
- "verified" : 414
- "ported" : 16
+ "verified" : 407
+ "ported" : 25
"removed" : 126
"n/a" : 28
```
| area | verified | ported | removed | n/a | verified of in scope |
|---|---:|---:|---:|---:|---|
+| workbench contribution | 59 | 11 | 30 | 3 | `█████████████████░░░ 84%` |
| src/vs/platform | 69 | 0 | 30 | 13 | `████████████████████ 100%` |
-| workbench contribution | 62 | 6 | 30 | 3 | `██████████████████░░ 91%` |
| built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` |
| MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |
| workbench service | 58 | 7 | 23 | 7 | `██████████████████░░ 89%` |
-| src/vs/editor/contrib | 54 | 0 | 2 | 1 | `████████████████████ 100%` |
-| workbench part | 10 | 1 | 2 | 0 | `██████████████████░░ 91%` |
+| src/vs/editor/contrib | 53 | 1 | 2 | 1 | `████████████████████ 98%` |
+| workbench part | 8 | 3 | 2 | 0 | `███████████████░░░░░ 73%` |
| extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` |
| cross-cutting check | 5 | 0 | 0 | 0 | `████████████████████ 100%` |
-| src/vs/editor | 1 | 1 | 1 | 1 | `██████████░░░░░░░░░░ 50%` |
+| 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** | **407** | **25** | **126** | **28** | `███████████████████░ 94%` |
<!-- 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 0da9f88c1b2..307602566ed 100644
--- a/native/crates/app/src/menus.rs
+++ b/native/crates/app/src/menus.rs
@@ -103,6 +103,8 @@ pub enum MenuId {
DiffEditorHunkToolbar,
/// `MenuId.MultiDiffEditorFileToolbar`: a multi diff editor file header's toolbar.
MultiDiffEditorFileToolbar,
+ /// `MenuId.MergeInputResultToolbar`: the merge editor result's title toolbar.
+ MergeInputResultToolbar,
EditorTitle,
/// `MenuId.EditorTitleRun`: the editor title's Run or Debug... split button.
EditorTitleRun,
@@ -158,6 +160,12 @@ pub enum MenuId {
CommentTitle,
CommentActions,
CommentsViewThreadActions,
+ /// `MenuId.CommentEditorActions`: secondary buttons left of a reply or edit form's actions.
+ CommentEditorActions,
+ /// `MenuId.CommentThreadTitleContext`: the context menu of a thread widget's header.
+ CommentThreadTitleContext,
+ /// `MenuId.CommentThreadCommentContext`: the context menu of a comment in a thread widget.
+ CommentThreadCommentContext,
TerminalStickyScrollContext,
/// A `contributes.submenus` entry, `MenuId.for('api:<id>')`, by registration order.
Api(usize),
@@ -941,7 +949,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); 53] = [
+const API_MENUS: [(&str, MenuId); 57] = [
("file/newFile", MenuId::NewFile),
("editor/context", MenuId::EditorContext),
("explorer/context", MenuId::ExplorerContext),
@@ -993,6 +1001,10 @@ const API_MENUS: [(&str, MenuId); 53] = [
("comments/comment/title", MenuId::CommentTitle),
("comments/comment/context", MenuId::CommentActions),
("commentsView/commentThread/context", MenuId::CommentsViewThreadActions),
+ ("comments/comment/editorActions", MenuId::CommentEditorActions),
+ ("comments/commentThread/title/context", MenuId::CommentThreadTitleContext),
+ ("comments/commentThread/comment/context", MenuId::CommentThreadCommentContext),
+ ("mergeEditor/result/title", MenuId::MergeInputResultToolbar),
("terminal/context", MenuId::TerminalInstanceContext),
("terminal/title/context", MenuId::TerminalTabContext),
];
@@ -1096,6 +1108,9 @@ pub fn extension_menus(extensions: &[ScannedExtension]) -> Vec<MenuItem> {
"editor/content" => Some("contribEditorContentMenu"),
"debug/createConfiguration" => Some("contribDebugCreateConfiguration"),
"commentsView/commentThread/context" => Some("contribCommentsViewThreadMenus"),
+ "comments/comment/editorActions" => Some("contribCommentEditorActionsMenu"),
+ "comments/commentThread/title/context" | "comments/commentThread/comment/context" => Some("contribCommentPeekContext"),
+ "mergeEditor/result/title" => Some("contribMergeEditorMenus"),
"scm/historyItemRef/context" => Some("contribSourceControlHistoryItemMenu"),
"viewContainer/title" => Some("contribViewContainerTitle"),
_ => None,
diff --git a/native/crates/app/src/workbench/comment_node.rs b/native/crates/app/src/workbench/comment_node.rs
index a87a241dcb9..6f9cf2e842f 100644
--- a/native/crates/app/src/workbench/comment_node.rs
+++ b/native/crates/app/src/workbench/comment_node.rs
@@ -133,8 +133,19 @@ impl Workbench {
let details = div().pl(px(20.)).flex_1().min_w_0().overflow_hidden().child(header).child(body);
// commentNode.ts `setFocus`: the comment the arrows moved to has the focus outline.
let focused = self.comments.focused_thread == Some((widget.controller, widget.thread, Some(index))) && self.comments.thread_focus.is_focused(window);
+ let context = self.comment_context(widget.controller, thread, comment, window);
+ let args = Self::comment_node_args(widget.controller, widget.thread, comment);
div()
.relative()
+ .debug_selector(move || format!("comment-node-{index}"))
+ // commentNode.ts `onContextMenu`: `comments/commentThread/comment/context` with the `commentNodeContext`.
+ .on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &gpui::MouseDownEvent, window, cx| {
+ cx.stop_propagation();
+ let actions = menu_actions(&workbench.menus, MenuId::CommentThreadCommentContext, &context);
+ if !actions.is_empty() {
+ workbench.show_context_menu_actions(actions, &context, gpui::Bounds::new(event.position, Default::default()), args.clone(), window, cx);
+ }
+ }))
.pt(px(8.))
.pb(px(8.))
.pl(px(20.))
@@ -206,36 +217,13 @@ impl Workbench {
let mut buttons = Vec::new();
for (index, action) in menu_actions(&self.menus, MenuId::CommentActions, &context).into_iter().enumerate() {
let MenuAction::Command { id, title, enabled, .. } = action else { continue };
- let (background, foreground, hover) = match index {
- 0 => ("button.background", "button.foreground", "button.hoverBackground"),
- _ => ("button.secondaryBackground", "button.secondaryForeground", "button.secondaryHoverBackground"),
- };
- let button = div()
- .id(gpui::SharedString::from(format!("comment-edit-action-{id}")))
- .h(px(22.))
- .ml(px(5.))
- // button.css `.monaco-text-button.small` (CommentFormActions' `small: true`).
- .px(px(6.))
- .text_size(px(11.))
- .line_height(px(14.))
- .flex()
- .items_center()
- .rounded(px(4.))
- .bg(self.color(background))
- .text_color(self.color(foreground))
- .when(!enabled, |button| button.opacity(0.4))
- .when(enabled, |button| {
- button
- .cursor_pointer()
- .hover(|button| button.bg(self.color(hover)))
- .on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation())
- .on_click(cx.listener(move |workbench, _, window, cx| workbench.run_comment_edit_action(&id, controller, thread_handle, comment_id, window, cx)))
- })
- .child(title);
- buttons.push(button);
+ let key = format!("comment-edit-action-{id}");
+ buttons.push(self.comment_form_button(key, title, enabled, index == 0, move |workbench, window, cx| workbench.run_comment_edit_action(&id, controller, thread_handle, comment_id, window, cx), cx));
}
- let actions = div().mt(px(10.)).pt(px(10.)).mb(px(10.)).flex().flex_row_reverse().children(buttons.into_iter().rev());
- div().mt(px(5.)).mr(px(12.)).child(input).child(actions).into_any_element()
+ let editor_actions = self.comment_editor_actions(&context, controller, thread_handle, Some(comment_id), cx);
+ let actions = div().mt(px(10.)).pt(px(10.)).mb(px(10.)).flex().flex_row_reverse().children(buttons.into_iter().rev()).children(editor_actions);
+ // review.css: `.edit-textarea` keeps 12px from the right, the form actions do not.
+ div().mt(px(5.)).child(div().mr(px(12.)).child(input)).child(actions).into_any_element()
}
/// `createReactionsContainer`: each reaction with a count, its icon or label and the count, active when the user
diff --git a/native/crates/app/src/workbench/comment_thread_widget.rs b/native/crates/app/src/workbench/comment_thread_widget.rs
index a2aad33eca1..b48be1d368d 100644
--- a/native/crates/app/src/workbench/comment_thread_widget.rs
+++ b/native/crates/app/src/workbench/comment_thread_widget.rs
@@ -522,12 +522,30 @@ impl Workbench {
.flex()
.items_center()
.when_some(state_color, |head, color| head.bg(Rgba { a: color.a * 0.1, ..color }))
+ .debug_selector(|| "comment-thread-head".into())
+ .on_mouse_down(MouseButton::Right, cx.listener(move |workbench, event: &gpui::MouseDownEvent, window, cx| {
+ cx.stop_propagation();
+ workbench.show_comment_thread_title_context_menu(controller, thread_handle, event.position, window, cx);
+ }))
.child(div().ml(px(20.)).flex_1().min_w_0().overflow_hidden().text_ellipsis().whitespace_nowrap().child(label))
// The actions take their own clicks: a floating widget's title drags from everywhere else.
.child(div().flex_none().flex().items_center().pr(px(2.)).children(actions).on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation()))
.into_any_element()
}
+ /// commentThreadHeader.ts `onContextMenu`: the `comments/commentThread/title/context` actions without their
+ /// groups' separators, run with the thread; nothing without actions.
+ fn show_comment_thread_title_context_menu(&mut self, controller: u64, thread_handle: u64, position: gpui::Point<gpui::Pixels>, window: &mut Window, cx: &mut Context<Self>) {
+ let Some(thread) = self.comment_thread(controller, thread_handle) else { return };
+ let context = self.comment_thread_context(controller, thread, window);
+ let actions: Vec<_> = menu_actions(&self.menus, MenuId::CommentThreadTitleContext, &context).into_iter().filter(|action| !matches!(action, MenuAction::Separator)).collect();
+ if actions.is_empty() {
+ return;
+ }
+ let marshalled = json!({ "$mid": 7, "commentControlHandle": controller, "commentThreadHandle": thread_handle });
+ self.show_context_menu_actions(actions, &context, gpui::Bounds::new(position, Default::default()), vec![marshalled], window, cx);
+ }
+
/// `CommentThreadBody` and the reply form.
fn comment_thread_body(&self, widget: &ThreadWidget, thread: &Thread, window: &mut Window, cx: &mut Context<Self>) -> AnyElement {
let mut comments = div().relative().flex().flex_col();
@@ -605,33 +623,75 @@ impl Workbench {
let mut buttons = Vec::new();
for (index, action) in menu_actions(&self.menus, MenuId::CommentThreadActions, &context).into_iter().enumerate() {
let MenuAction::Command { id, title, enabled, .. } = action else { continue };
- let (background, foreground, hover) = match index {
- 0 => ("button.background", "button.foreground", "button.hoverBackground"),
- _ => ("button.secondaryBackground", "button.secondaryForeground", "button.secondaryHoverBackground"),
+ let key = format!("comment-reply-action-{id}");
+ buttons.push(self.comment_form_button(key, title, enabled, index == 0, move |workbench, window, cx| workbench.run_comment_reply_action(&id, controller, thread_handle, window, cx), cx));
+ }
+ let editor_actions = self.comment_editor_actions(&context, controller, thread_handle, None, cx);
+ form.child(input).child(div().my(px(10.)).flex().flex_row_reverse().children(buttons.into_iter().rev()).children(editor_actions)).into_any_element()
+ }
+
+ /// commentFormActions.ts: a `small` text button (button.css `.monaco-text-button.small`) in the primary or the
+ /// secondary button colors with button.ts's 1px border when the theme has one, at 0.4 opacity while disabled.
+ pub(super) fn comment_form_button(&self, key: String, title: String, enabled: bool, primary: bool, on_click: impl Fn(&mut Self, &mut Window, &mut Context<Self>) + 'static, cx: &mut Context<Self>) -> gpui::Stateful<gpui::Div> {
+ let (background, foreground, hover, border) = match primary {
+ true => ("button.background", "button.foreground", "button.hoverBackground", "button.border"),
+ false => ("button.secondaryBackground", "button.secondaryForeground", "button.secondaryHoverBackground", "button.secondaryBorder"),
+ };
+ div()
+ .id(gpui::SharedString::from(key.clone()))
+ .debug_selector(|| key)
+ .h(px(22.))
+ .ml(px(5.))
+ .px(px(6.))
+ .text_size(px(11.))
+ .line_height(px(14.))
+ .flex()
+ .items_center()
+ .rounded(px(4.))
+ .bg(self.color(background))
+ .text_color(self.color(foreground))
+ .when_some(self.theme.color(border), |button, border| button.border_1().border_color(border))
+ .when(!enabled, |button| button.opacity(0.4))
+ .when(enabled, |button| {
+ button
+ .cursor_pointer()
+ .hover(|button| button.bg(self.color(hover)))
+ .on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation())
+ .on_click(cx.listener(move |workbench, _, window, cx| on_click(workbench, window, cx)))
+ })
+ .child(title)
+ }
+
+ /// `createCommentWidgetEditorActions`: the `comments/comment/editorActions` buttons, all secondary, floated right
+ /// after the form's own actions so they sit left of them, the first rightmost; `comment` is the edited comment.
+ pub(super) fn comment_editor_actions(&self, context: &HashMap<String, Value>, controller: u64, thread: u64, comment: Option<u64>, cx: &mut Context<Self>) -> Vec<gpui::Stateful<gpui::Div>> {
+ let mut buttons = Vec::new();
+ for action in menu_actions(&self.menus, MenuId::CommentEditorActions, context) {
+ let MenuAction::Command { id, title, enabled, .. } = action else { continue };
+ let key = match comment {
+ Some(comment) => format!("comment-edit-editor-action-{comment}-{id}"),
+ None => format!("comment-reply-editor-action-{id}"),
};
- let button = div()
- .id(gpui::SharedString::from(format!("comment-reply-action-{id}")))
- .h(px(22.))
- .ml(px(5.))
- // button.css `.monaco-text-button.small` (CommentFormActions' `small: true`).
- .px(px(6.))
- .text_size(px(11.))
- .line_height(px(14.))
- .flex()
- .items_center()
- .rounded(px(4.))
- .bg(self.color(background))
- .text_color(self.color(foreground))
- .when(!enabled, |button| button.opacity(0.4))
- .when(enabled, |button| {
- button.cursor_pointer().hover(|button| button.bg(self.color(hover))).on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation()).on_click(cx.listener(
- move |workbench, _, window, cx| workbench.run_comment_reply_action(&id, controller, thread_handle, window, cx),
- ))
- })
- .child(title);
- buttons.push(button);
+ buttons.push(self.comment_form_button(key, title, enabled, false, move |workbench, window, cx| workbench.run_comment_editor_action(&id, controller, thread, comment, window, cx), cx));
+ }
+ buttons
+ }
+
+ /// The editor actions' run: the command gets the reply (`MarshalledId.CommentThreadReply`, 9) or the edited
+ /// comment (`CommentThreadNode`, 11) with the typed text; the form stays open and its editor takes the focus.
+ fn run_comment_editor_action(&mut self, id: &str, controller: u64, thread: u64, comment: Option<u64>, window: &mut Window, cx: &mut Context<Self>) {
+ let Some(form) = self.comment_form(controller, thread, comment) else { return };
+ let text = self.form_text(form);
+ let model_id = self.form_editor(form).map(|editor| editor.model_id);
+ let marshalled = json!({ "$mid": 7, "commentControlHandle": controller, "commentThreadHandle": thread });
+ let argument = match comment {
+ Some(comment) => json!({ "thread": marshalled, "commentUniqueId": comment, "text": text, "$mid": 11 }),
+ None => json!({ "thread": marshalled, "text": text, "$mid": 9 }),
+ };
+ self.run_code_lens_command(id, vec![argument], window, cx);
+ if let Some(model_id) = model_id {
+ self.focus_code_editor(model_id, window, cx);
}
- form.child(input).child(div().my(px(10.)).flex().flex_row_reverse().children(buttons.into_iter().rev())).into_any_element()
}
/// review.css `.comment-form .monaco-editor`: the reply or edit editor, 90px in 6px and 12px padding on
diff --git a/native/crates/app/src/workbench/comment_thread_widget/tests.rs b/native/crates/app/src/workbench/comment_thread_widget/tests.rs
index 94f7d7c4c93..cd4ae3d6462 100644
--- a/native/crates/app/src/workbench/comment_thread_widget/tests.rs
+++ b/native/crates/app/src/workbench/comment_thread_widget/tests.rs
@@ -245,3 +245,78 @@ fn two_threads_keep_their_reply_forms_open_together(cx: &mut TestAppContext) {
assert_eq!(ran.lock().unwrap()[0]["text"], json!("first"));
workbench.read_with(cx, |workbench, _| assert_eq!(workbench.comments.forms.iter().map(|form| form.thread).collect::<Vec<_>>(), vec![8]));
}
+
+/// The proposed comment menus: `comments/comment/editorActions` buttons left of the reply and edit form actions run
+/// with the typed text and keep the form open (commentReply.ts and commentNode.ts `createCommentWidgetEditorActions`);
+/// a right click on the head shows `comments/commentThread/title/context` with the thread (commentThreadHeader.ts) and
+/// on a comment `comments/commentThread/comment/context` with the `commentNodeContext` (commentNode.ts).
+#[gpui::test]
+fn the_comment_editor_actions_and_context_menus_run_their_menus(cx: &mut TestAppContext) {
+ let (workbench, cx, _host, dir) = open(cx, "comment-editor-actions", "one\ntwo\nthree\n");
+ let resource = json!({ "scheme": "file", "path": dir.join("a.txt").to_string_lossy() });
+ let request = |method: &str, args: Vec<Value>, cx: &mut VisualTestContext| {
+ workbench.update_in(cx, |workbench, window, cx| drop(workbench.handle_comments_request(method, &args, window, cx)));
+ };
+ request("$registerCommentController", vec![json!(1), json!("review"), json!("Review"), json!("test.ext")], cx);
+ let range = json!({ "startLineNumber": 2, "startColumn": 1, "endLineNumber": 2, "endColumn": 4 });
+ request("$createCommentThread", vec![json!(1), json!(7), json!("t"), resource.clone(), range, json!([]), json!({ "value": "test.ext" }), json!(false)], cx);
+ let comment = json!({ "uniqueIdInThread": 1, "body": "Looks good", "userName": "Ann" });
+ request("$updateCommentThread", vec![json!(1), json!(7), json!("t"), resource.clone(), json!({ "comments": [comment], "collapseState": 1 })], cx);
+ let ran = Arc::new(Mutex::new(Vec::new()));
+ workbench.update_in(cx, |workbench, window, cx| {
+ let record = ran.clone();
+ workbench.commands.register("test.insert", move |_, args, _, _| {
+ record.lock().unwrap().extend(args);
+ crate::commands::Outcome::done()
+ });
+ for (menu, title) in [(MenuId::CommentThreadActions, "Reply"), (MenuId::CommentActions, "Save"), (MenuId::CommentEditorActions, "Insert"), (MenuId::CommentThreadTitleContext, "Title Action"), (MenuId::CommentThreadCommentContext, "Comment Action")] {
+ let id = if menu == MenuId::CommentEditorActions { "test.insert" } else { "test.other" };
+ let entry = Entry::Command { id: id.into(), precondition: None, toggled: None, alt: None };
+ workbench.menus.push(MenuItem { menu, entry, title: title.into(), group: "inline".into(), order: 0., when: None });
+ }
+ workbench.expand_comment_reply(1, 7, window, cx);
+ });
+ cx.run_until_parked();
+ cx.simulate_input("Draft");
+ cx.run_until_parked();
+ let insert = cx.debug_bounds("comment-reply-editor-action-test.insert").expect("the reply form shows the editor action");
+ let reply = cx.debug_bounds("comment-reply-action-test.other").expect("the reply form shows its action");
+ assert!(insert.right() <= reply.left(), "the editor actions sit left of the form actions");
+ cx.simulate_click(insert.center(), gpui::Modifiers::none());
+ cx.run_until_parked();
+ let thread = json!({ "$mid": 7, "commentControlHandle": 1, "commentThreadHandle": 7 });
+ assert_eq!(ran.lock().unwrap().drain(..).collect::<Vec<_>>(), vec![json!({ "thread": thread, "text": "Draft", "$mid": 9 })]);
+ workbench.read_with(cx, |workbench, _| assert!(workbench.comment_editor().is_some(), "the reply form stays open"));
+
+ let head = cx.debug_bounds("comment-thread-head").expect("the zone shows its head").center();
+ cx.simulate_mouse_down(head, gpui::MouseButton::Right, gpui::Modifiers::none());
+ cx.run_until_parked();
+ workbench.update_in(cx, |workbench, _, cx| {
+ let menu = workbench.context_menu.as_ref().expect("the head's context menu opens");
+ assert!(matches!(&menu.levels[0].actions[..], [MenuAction::Command { title, .. }] if title == "Title Action"), "{:?}", menu.levels[0].actions);
+ assert_eq!(menu.args, [thread.clone()]);
+ workbench.context_menu = None;
+ cx.notify();
+ });
+ let node = cx.debug_bounds("comment-node-0").expect("the zone shows its comment").center();
+ cx.simulate_mouse_down(node, gpui::MouseButton::Right, gpui::Modifiers::none());
+ cx.run_until_parked();
+ workbench.update_in(cx, |workbench, _, cx| {
+ let menu = workbench.context_menu.as_ref().expect("the comment's context menu opens");
+ assert!(matches!(&menu.levels[0].actions[..], [MenuAction::Command { title, .. }] if title == "Comment Action"), "{:?}", menu.levels[0].actions);
+ assert_eq!(menu.args, [json!({ "thread": thread, "commentUniqueId": 1, "$mid": 10 }), thread.clone()]);
+ workbench.context_menu = None;
+ cx.notify();
+ });
+
+ let editing = json!({ "uniqueIdInThread": 1, "body": "Looks good", "userName": "Ann", "mode": 0 });
+ request("$updateCommentThread", vec![json!(1), json!(7), json!("t"), resource, json!({ "comments": [editing], "collapseState": 1 })], cx);
+ cx.run_until_parked();
+ let insert = cx.debug_bounds("comment-edit-editor-action-1-test.insert").expect("the edit form shows the editor action");
+ let save = cx.debug_bounds("comment-edit-action-test.other").expect("the edit form shows its action");
+ assert!(insert.right() <= save.left());
+ cx.simulate_click(insert.center(), gpui::Modifiers::none());
+ cx.run_until_parked();
+ assert_eq!(*ran.lock().unwrap(), vec![json!({ "thread": thread, "commentUniqueId": 1, "text": "Looks good", "$mid": 11 })]);
+ workbench.read_with(cx, |workbench, _| assert!(workbench.comments.forms.iter().any(|form| form.comment == Some(1)), "the edit form stays open"));
+}
diff --git a/native/crates/app/src/workbench/editor_view/merge_editor_view.rs b/native/crates/app/src/workbench/editor_view/merge_editor_view.rs
index 25429ed7410..a6964e9aad7 100644
--- a/native/crates/app/src/workbench/editor_view/merge_editor_view.rs
+++ b/native/crates/app/src/workbench/editor_view/merge_editor_view.rs
@@ -775,7 +775,7 @@ impl Workbench {
let base_scroll = self.merge_base_scroll(merge, result, &base_zones, layout);
let input = |workbench: &Self, input: Input, window: &mut Window, cx: &mut Context<Self>| workbench.merge_input_pane(merge, input, window, cx).flex_1().min_w_0().min_h_0();
let base = |workbench: &Self, window: &mut Window, cx: &mut Context<Self>| workbench.merge_base_pane(merge, &base_zones, base_scroll, window, cx).flex_1().min_w_0().min_h_0();
- let result_pane = div().flex().flex_col().min_h_0().min_w_0().child(self.merge_result_title(merge, result, cx)).child(self.merge_result_area(merge, result, window, cx));
+ let result_pane = div().flex().flex_col().min_h_0().min_w_0().child(self.merge_result_title(merge, result, window, cx)).child(self.merge_result_area(merge, result, window, cx));
let base_on_top = |body: Div, window: &mut Window, cx: &mut Context<Self>, size: f32| match layout.show_base {
true => body.child(base(self, window, cx).flex_none().h(relative(size)).border_b_1().border_color(border)),
false => body,
@@ -863,7 +863,7 @@ impl Workbench {
/// resultCodeEditorView.ts title: "Result", the result's path, the remaining conflicts counter and Reset. Complete
/// Merge is git's `git.acceptMerge` in the result's `editor/content` floating menu.
- fn merge_result_title(&self, merge: &MergeInput, result: &OpenEditor, cx: &mut Context<Self>) -> Div {
+ fn merge_result_title(&self, merge: &MergeInput, result: &OpenEditor, window: &Window, cx: &mut Context<Self>) -> Div {
let count = merge.model.as_ref().map_or(0, MergeModel::unhandled_count);
let counter = if count == 1 { "1 Conflict Remaining".to_string() } else { format!("{count} Conflicts Remaining") };
let path = self.merge_result_path(result);
@@ -881,8 +881,22 @@ impl Workbench {
.when(count > 0, |counter| counter.cursor_pointer().on_click(cx.listener(|workbench, _, _, cx| workbench.go_to_unhandled_conflict(true, cx))))
.child(counter),
)
- // `MergeInputResultToolbar`: Reset.
+ // `MergeInputResultToolbar`: Reset, then the contributed `mergeEditor/result/title` primary commands.
.child(self.merge_toolbar_button("mergeEditor.resetResultToBaseAndAutoMerge", "discard", "Reset Result", cx).flex_none())
+ .children(self.merge_result_contributed_actions(window, cx))
+ }
+
+ /// codeEditorView.ts `TitleMenu`: the `primary` group as icon buttons.
+ fn merge_result_contributed_actions(&self, window: &Window, cx: &mut Context<Self>) -> Vec<gpui::Stateful<Div>> {
+ let context = self.key_context(window);
+ let foreground = self.color("icon.foreground");
+ let mut buttons = Vec::new();
+ for action in crate::menus::menu_group_actions(&self.menus, crate::menus::MenuId::MergeInputResultToolbar, &context, |group| group == "primary") {
+ let crate::menus::MenuAction::Command { id, title, enabled: true, .. } = action else { continue };
+ let selector = format!("merge-result-action-{id}");
+ buttons.push(self.command_button(&id, title, Vec::new(), foreground, cx).flex_none().debug_selector(|| selector));
+ }
+ buttons
}
/// resultCodeEditorView.ts `getUriLabel(resultUri, { relative: true })`.
diff --git a/native/crates/app/src/workbench/editor_view/merge_editor_view/tests.rs b/native/crates/app/src/workbench/editor_view/merge_editor_view/tests.rs
index 875e463717e..51f0819b733 100644
--- a/native/crates/app/src/workbench/editor_view/merge_editor_view/tests.rs
+++ b/native/crates/app/src/workbench/editor_view/merge_editor_view/tests.rs
@@ -82,6 +82,26 @@ fn open_merge_editor_resets_the_conflict_and_accepts_incoming(cx: &mut TestAppCo
let result = workbench.read_with(cx, |workbench, _| workbench.editors.active().unwrap().document().lines.join("\n"));
assert_eq!(result, "one\nTWO incoming\nTWO current\nthree");
+ // `mergeEditor/result/title`: a contributed `primary` command shows in the result's title and runs; other groups not.
+ let ran = std::sync::Arc::new(std::sync::Mutex::new(0));
+ workbench.update_in(cx, |workbench, _, cx| {
+ let count = ran.clone();
+ workbench.commands.register("test.result", move |_, _, _, _| {
+ *count.lock().unwrap() += 1;
+ crate::commands::Outcome::done()
+ });
+ for (id, group) in [("test.result", "primary"), ("test.secondary", "other")] {
+ let entry = crate::menus::Entry::Command { id: id.into(), precondition: None, toggled: None, alt: None };
+ workbench.menus.push(crate::menus::MenuItem { menu: crate::menus::MenuId::MergeInputResultToolbar, entry, title: id.into(), group: group.into(), order: 0., when: None });
+ }
+ cx.notify();
+ });
+ cx.run_until_parked();
+ assert!(cx.debug_bounds("merge-result-action-test.secondary").is_none());
+ let action = cx.debug_bounds("merge-result-action-test.result").expect("the result title shows the contributed command").center();
+ cx.simulate_click(action, gpui::Modifiers::none());
+ assert_eq!(*ran.lock().unwrap(), 1);
+
run(&workbench, cx, "mergeEditor.resetResultToBaseAndAutoMerge", Vec::new());
let result = workbench.read_with(cx, |workbench, _| workbench.editors.active().unwrap().document().lines.join("\n"));
assert_eq!(result, "one\ntwo\nthree");
diff --git a/port/fixtures/extensions/comments/package.json b/port/fixtures/extensions/comments/package.json
index 4ed21518bb0..382a74f0223 100644
--- a/port/fixtures/extensions/comments/package.json
+++ b/port/fixtures/extensions/comments/package.json
@@ -7,18 +7,25 @@
"engines": { "vscode": "^1.100.0" },
"main": "./extension.js",
"activationEvents": ["onStartupFinished"],
+ "enabledApiProposals": ["contribCommentEditorActionsMenu", "contribCommentPeekContext"],
"contributes": {
"commands": [
{ "command": "port-comments.reply", "title": "Reply" },
{ "command": "port-comments.resolve", "title": "Resolve", "icon": "$(check)" },
{ "command": "port-comments.edit", "title": "Edit", "icon": "$(edit)" },
- { "command": "port-comments.save", "title": "Save" }
+ { "command": "port-comments.save", "title": "Save" },
+ { "command": "port-comments.insert", "title": "Insert Note" },
+ { "command": "port-comments.copyThread", "title": "Copy Thread Link" },
+ { "command": "port-comments.copyComment", "title": "Copy Comment Link" }
],
"menus": {
"comments/commentThread/context": [{ "command": "port-comments.reply", "group": "inline" }],
"comments/commentThread/title": [{ "command": "port-comments.resolve", "group": "inline" }],
"comments/comment/title": [{ "command": "port-comments.edit", "group": "inline", "when": "comment == editable" }],
- "comments/comment/context": [{ "command": "port-comments.save", "group": "inline" }]
+ "comments/comment/context": [{ "command": "port-comments.save", "group": "inline" }],
+ "comments/comment/editorActions": [{ "command": "port-comments.insert" }],
+ "comments/commentThread/title/context": [{ "command": "port-comments.copyThread" }],
+ "comments/commentThread/comment/context": [{ "command": "port-comments.copyComment" }]
}
}
}
diff --git a/port/fixtures/language-features/steps-comment-menus.json b/port/fixtures/language-features/steps-comment-menus.json
new file mode 100644
index 00000000000..36928ec43b5
--- /dev/null
+++ b/port/fixtures/language-features/steps-comment-menus.json
@@ -0,0 +1 @@
+[{"wait": 10000}, {"hotkey": ["cmd", "shift", "p"]}, {"wait": 800}, {"type": "Expand All Comments"}, {"wait": 800}, {"key": "return"}, {"wait": 2000}, {"shot": "expanded"}, {"rightClick": [600, 190]}, {"wait": 1000}, {"shot": "comment-context"}, {"key": "escape"}, {"wait": 500}, {"rightClick": [600, 140]}, {"wait": 1000}, {"shot": "title-context"}, {"key": "escape"}, {"wait": 500}, {"click": [896, 177]}, {"wait": 1500}, {"shot": "editing"}]
diff --git a/port/ledger.md b/port/ledger.md
index 2586b43e0e7..63198a5408b 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -285,7 +285,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| platform/windows | src/vs/platform | M11 | verified | | windows_state.rs (windowsStateHandler.ts, windowsMainService.ts `doGetPathsFromLastSession`): `windowsState` in `User/globalStorage/storage.json` saved on quit (the last window closed, else the active one; all windows when two or more), restored on a start without paths and on every start with `preserve` (`window.restoreWindows` none, one, folders, all), each window in its display and bounds when that display is still there, fullscreen only with `window.restoreFullscreen`; empty windows reopen on their backup folder; a reload keeps the window's place; a new window takes the stored place of its workspace, folder or empty window, the first one the last active window's, else `window.newWindowDimensions` (default and offset cascade 30 points off the open windows, inherit, maximized, fullscreen). The default size stays 1024x768, the reference capture size of port/tools/ref-screenshot, where upstream takes 1200x800 or 1440x900. `cargo test -p app windows_state`; verified: ui-pair hot-exit.json `restored` vs the reference (port/results/windows.md, milestone 11 verification): the window restored on its folder after quit |
| platform/workspace | src/vs/platform | M12 | verified | | virtual workspaces (non-file folders): milestone 25; config/src/workspace.rs: folders, getFolder, toWorkspaceFolders, workspace label; cargo test -p config workspace (workspace.test.ts cases); api-workspace 4/4; 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"), api-workspace 4/4 |
| platform/workspaces | src/vs/platform | M12 | verified | | getWorkspaceIdentifier and getSingleFolderWorkspaceIdentifier (session.rs, workspaces.test.ts stable id case, cargo test -p exthost); recently opened list (recently_opened.rs, workspacesHistoryMainService: `history.recentlyOpenedPathsList` in shared storage, 500 per kind, cargo test -p app recently_opened); untitled workspaces under `<user data>/Workspaces/<id>/workspace.json` (config/src/workspace.rs isUntitledWorkspace, workbench/workspace_editing.rs createUntitledWorkspace, deleteUntitledWorkspace, Save Workspace As with rewritten relative paths): cargo test -p config workspace:: 5/5, cargo test -p app workspace_editing; ui-pair port/fixtures/ui-pair/m12/workspace-folders.json (Remove Folder from Workspace enters Untitled (Workspace)), verified at port-m12b-verify; getWorkspaceIdentifier and getSingleFolderWorkspaceIdentifier (session.rs, workspaces.test.ts stable id case, cargo test -p exthost); no untitled workspaces or recent list; getWorkspaceIdentifier and getSingleFolderWorkspaceIdentifier (session.rs, workspaces.test.ts stable id case, cargo test -p exthost); recently opened list (recently_opened.rs, workspacesHistoryMainService: `history.recentlyOpenedPathsList` in shared storage, 500 per kind, cargo test -p app recently_opened); no untitled workspaces; getWorkspaceIdentifier and getSingleFolderWorkspaceIdentifier (session.rs, workspaces.test.ts stable id case, cargo test -p exthost); no untitled workspaces or recent list |
-| editor/browser | src/vs/editor | M8 | verified | [scheduling L] minimap.rs:87; minimap_view.rs:432; unicode_highlight.rs:63; indentation.rs:43; comment.rs:45; smart_select.rs:292: sticky minimap sampling, worker section headers and unicode highlights, tokenizeIfCheap, the 30 ms smart select yield. Accepted as "Scheduling differences" only with a measured same result and typing on a 50k-line TS file under 16 ms per edit; otherwise class 3. Audit inputs at 5e5b1b0a915. | scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests (8); folding (editor/folding.rs): cargo test -p app editor::folding (49); minimap with slider, decorations, section headers, settings and the scrollbar context menu (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap (11), section_headers (18), editor_menus (8); sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`): cargo test -p app selection_corners (1); `editor.renderWhitespace` (editor/whitespace.rs): cargo test -p app whitespace (39); control characters and bidi format characters as `[U+XXXX]` (workbench/control_characters.rs): cargo test -p app control_characters (4); glyph margin and line number presses (workbench/gutter_mouse.rs): cargo test -p app gutter_presses (1); word wrap with view lines, Toggle Word Wrap and the wrap indicator (editor/word_wrap.rs): cargo test -p app word_wrap (21), ui-pair /tmp/m8wrap wrap.ts; `editor.smoothScrolling` (editor/smooth_scroll.rs, workbench/smooth_scrolling.rs): cargo test -p app smooth_scroll (11, the scrollable.test.ts cases); diff editor widget (port/notes.md milestone 14): cargo test -p app diff_editor (22), diff_gutter (2); all run at the milestone 20 sweep; scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests; folding (editor/folding.rs): cargo test -p app editor::folding; minimap with slider, decorations and section headers (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap, cargo test -p app section_headers; sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`, selections.ts): cargo test -p app selection_corners, ui-pair corners match; `editor.renderWhitespace` marks drawn as svg circles and arrows (editor/whitespace.rs, viewParts/whitespace): cargo test -p app whitespace, ui-pair notes.txt; control characters as Control Pictures (`editor.renderControlCharacters`, workbench/control_characters.rs): cargo test -p app control_characters; glyph margin and line number presses select lines, drags extend them, Alt adds a line cursor (mouseHandler.ts `startedOnLineNumbers`, workbench/gutter_mouse.rs): cargo test -p app gutter_presses; no smooth scrolling, no word wrap (`editor.wordWrap`, viewModelLines with line breaks), bidi format characters not drawn as `[U+XXXX]` (port/notes.md milestone 8); diff editor widget (side by side, inline, view zones, gutter toolbar, overview ruler, title actions; port/notes.md milestone 14): cargo test -p app diff_editor diff_gutter; Switch Side (`diffEditor.switchSide`, the selection mapped through the diff) and Focus Primary, Secondary and Other Side, in the diff and the multi diff editor: cargo test -p app switch_side; bracket pair guides (`editor.guides.bracketPairs`, `bracketPairsHorizontal`, `highlightActiveBracketPair`; guidesTextModelPart.ts) in every code editor, on a wrapped line only on the view lines `getViewLinesBracketGuides` keeps (viewModelLines.ts): cargo test -p app bracket_pair_guide; indent guides on a wrapped line repeated on its view lines only with a wrapping indent (`getViewLinesIndentGuides`, viewModelLines.ts), none past the wrapping column (`_maxIndentLeft`, indentGuides.ts): cargo test -p app wrapping_indent_repeats without_a_wrapping_indent; scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests; folding (editor/folding.rs): cargo test -p app editor::folding; minimap with slider, decorations and section headers (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap, cargo test -p app section_headers; sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`, selections.ts): cargo test -p app selection_corners, ui-pair corners match; no `renderWhitespace` yet; no smooth scrolling (port/notes.md milestone 8); scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests; folding (editor/folding.rs): cargo test -p app editor::folding; minimap with slider, decorations and section headers (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap, cargo test -p app section_headers; sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`, selections.ts): cargo test -p app selection_corners, ui-pair corners match; `editor.renderWhitespace` marks drawn as svg circles and arrows (editor/whitespace.rs, viewParts/whitespace): cargo test -p app whitespace, ui-pair notes.txt; control characters as Control Pictures (`editor.renderControlCharacters`, workbench/control_characters.rs): cargo test -p app control_characters; glyph margin and line number presses select lines, drags extend them, Alt adds a line cursor (mouseHandler.ts `startedOnLineNumbers`, workbench/gutter_mouse.rs): cargo test -p app gutter_presses; word wrap with view lines, Toggle Word Wrap and the wrap indicator (editor/word_wrap.rs: cargo test -p app word_wrap; ui-pair /tmp/m8wrap wrap.ts: breaks, End, Down and Alt+Z match the reference); bidi format characters as `[U+XXXX]` (cargo test -p app control_characters); minimap settings and the scrollbar context menu (cargo test -p app minimap editor_menus); `editor.smoothScrolling` over 125 ms for cursor, find and API reveals and mouse wheel notches (editor/smooth_scroll.rs, workbench/smooth_scrolling.rs: cargo test -p app smooth_scroll, the scrollable.test.ts cases); diff editor widget (side by side, inline, view zones, gutter toolbar, overview ruler, title actions; port/notes.md milestone 14): cargo test -p app diff_editor diff_gutter; each side its own editor (the original's cursor and active line number, inline only its line numbers wide), char changes filled past the line break (`shouldFillLineOnLineBreak`) but not in the inline deleted lines, the sides' overview ruler without the minimap background, a press with no move before it shows the scrollbars: cargo test -p app file_compare char_ranges a_click_without_a_move, ui-pair m12/compare.json; mouse selection: four clicks select all, a double click the word (`WordOperations.word`) or the inside of brackets and strings (`editor.doubleClickSelectsBlock`), double and triple click drags go on by words and lines, their Alt forms on the cursor added last, a drag past the text scrolls each frame (dragScrolling.ts) (editor/mouse_selection.rs, workbench/drag_scrolling.rs): cargo test -p app mouse_selection text_clicks_select a_selecting_drag_below (6), in the vertical scrollbar without the minimap, below the horizontal scrollbar's top and in a comment reply editor: cargo test -p app a_drag_into_the_vertical the_bottom_edge_hit a_drag_below_a_comment; the IME input handler sees the selection's lines, a caret inside marked text places the cursor and character bounds follow the text (nativeEditContext.ts): cargo test -p app text_input::; decoration type outlines outside the range and borders inside it, the CSS cascade of their shorthands and longhands, `before`/`after` content text as injected text (workbench/editor_view/text_decorations.rs): cargo test -p app outline_and_border_follow_the_css_cascade a_decoration_outline_is_drawn_outside_its_range decoration_types_set_and_remove_editor_decorations, ui-pair of a merge conflict file: the header's "(Incoming Change)" text matches the reference; a padded inlay hint broken by word wrap draws a padding box per piece (word_wrap.rs `hint_splits`, inlayHintsController.ts `cssProperties.padding` per span): cargo test -p app wrapping_a_padded_inlay_hint_skips_its_padding_box, ui-pair port/fixtures/ui-pair/m8/inlay-hint-wrap.json dark with `PORT_MESSAGES=inlayHints FILE=notes.txt`, the messages extension and `editor.wordWrap` `wordWrapColumn` 24 plus `editor.inlayHints.padding`: matches the reference |
+| editor/browser | src/vs/editor | M8 | ported | [3 M] editor_view/diff_gutter.rs: no selection toolbar (gutterFeature.ts:140): a selection over changes shows one `diffEditor/gutter/selection` item over the selected mappings in place of the hunk toolbars <br> [scheduling L] minimap.rs:87; minimap_view.rs:432; unicode_highlight.rs:63; indentation.rs:43; comment.rs:45; smart_select.rs:292: sticky minimap sampling, worker section headers and unicode highlights, tokenizeIfCheap, the 30 ms smart select yield. Accepted as "Scheduling differences" only with a measured same result and typing on a 50k-line TS file under 16 ms per edit; otherwise class 3. Audit inputs at 5e5b1b0a915. | scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests (8); folding (editor/folding.rs): cargo test -p app editor::folding (49); minimap with slider, decorations, section headers, settings and the scrollbar context menu (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap (11), section_headers (18), editor_menus (8); sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`): cargo test -p app selection_corners (1); `editor.renderWhitespace` (editor/whitespace.rs): cargo test -p app whitespace (39); control characters and bidi format characters as `[U+XXXX]` (workbench/control_characters.rs): cargo test -p app control_characters (4); glyph margin and line number presses (workbench/gutter_mouse.rs): cargo test -p app gutter_presses (1); word wrap with view lines, Toggle Word Wrap and the wrap indicator (editor/word_wrap.rs): cargo test -p app word_wrap (21), ui-pair /tmp/m8wrap wrap.ts; `editor.smoothScrolling` (editor/smooth_scroll.rs, workbench/smooth_scrolling.rs): cargo test -p app smooth_scroll (11, the scrollable.test.ts cases); diff editor widget (port/notes.md milestone 14): cargo test -p app diff_editor (22), diff_gutter (2); all run at the milestone 20 sweep; scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests; folding (editor/folding.rs): cargo test -p app editor::folding; minimap with slider, decorations and section headers (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap, cargo test -p app section_headers; sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`, selections.ts): cargo test -p app selection_corners, ui-pair corners match; `editor.renderWhitespace` marks drawn as svg circles and arrows (editor/whitespace.rs, viewParts/whitespace): cargo test -p app whitespace, ui-pair notes.txt; control characters as Control Pictures (`editor.renderControlCharacters`, workbench/control_characters.rs): cargo test -p app control_characters; glyph margin and line number presses select lines, drags extend them, Alt adds a line cursor (mouseHandler.ts `startedOnLineNumbers`, workbench/gutter_mouse.rs): cargo test -p app gutter_presses; no smooth scrolling, no word wrap (`editor.wordWrap`, viewModelLines with line breaks), bidi format characters not drawn as `[U+XXXX]` (port/notes.md milestone 8); diff editor widget (side by side, inline, view zones, gutter toolbar, overview ruler, title actions; port/notes.md milestone 14): cargo test -p app diff_editor diff_gutter; Switch Side (`diffEditor.switchSide`, the selection mapped through the diff) and Focus Primary, Secondary and Other Side, in the diff and the multi diff editor: cargo test -p app switch_side; bracket pair guides (`editor.guides.bracketPairs`, `bracketPairsHorizontal`, `highlightActiveBracketPair`; guidesTextModelPart.ts) in every code editor, on a wrapped line only on the view lines `getViewLinesBracketGuides` keeps (viewModelLines.ts): cargo test -p app bracket_pair_guide; indent guides on a wrapped line repeated on its view lines only with a wrapping indent (`getViewLinesIndentGuides`, viewModelLines.ts), none past the wrapping column (`_maxIndentLeft`, indentGuides.ts): cargo test -p app wrapping_indent_repeats without_a_wrapping_indent; scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests; folding (editor/folding.rs): cargo test -p app editor::folding; minimap with slider, decorations and section headers (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap, cargo test -p app section_headers; sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`, selections.ts): cargo test -p app selection_corners, ui-pair corners match; no `renderWhitespace` yet; no smooth scrolling (port/notes.md milestone 8); scrolling: wheel, scrollbars with drag, track press and fade, scroll shadow, reveal on cursor moves and from the API, per-editor scroll position (editor/view.rs, workbench/editor_view.rs): cargo test -p app editor::view::tests; folding (editor/folding.rs): cargo test -p app editor::folding; minimap with slider, decorations and section headers (editor/minimap.rs, editor/section_headers.rs, workbench/minimap_view.rs): cargo test -p app minimap, cargo test -p app section_headers; sticky scroll (editor/contrib/stickyScroll row); rounded selections (`editor.roundedSelection`, selections.ts): cargo test -p app selection_corners, ui-pair corners match; `editor.renderWhitespace` marks drawn as svg circles and arrows (editor/whitespace.rs, viewParts/whitespace): cargo test -p app whitespace, ui-pair notes.txt; control characters as Control Pictures (`editor.renderControlCharacters`, workbench/control_characters.rs): cargo test -p app control_characters; glyph margin and line number presses select lines, drags extend them, Alt adds a line cursor (mouseHandler.ts `startedOnLineNumbers`, workbench/gutter_mouse.rs): cargo test -p app gutter_presses; word wrap with view lines, Toggle Word Wrap and the wrap indicator (editor/word_wrap.rs: cargo test -p app word_wrap; ui-pair /tmp/m8wrap wrap.ts: breaks, End, Down and Alt+Z match the reference); bidi format characters as `[U+XXXX]` (cargo test -p app control_characters); minimap settings and the scrollbar context menu (cargo test -p app minimap editor_menus); `editor.smoothScrolling` over 125 ms for cursor, find and API reveals and mouse wheel notches (editor/smooth_scroll.rs, workbench/smooth_scrolling.rs: cargo test -p app smooth_scroll, the scrollable.test.ts cases); diff editor widget (side by side, inline, view zones, gutter toolbar, overview ruler, title actions; port/notes.md milestone 14): cargo test -p app diff_editor diff_gutter; each side its own editor (the original's cursor and active line number, inline only its line numbers wide), char changes filled past the line break (`shouldFillLineOnLineBreak`) but not in the inline deleted lines, the sides' overview ruler without the minimap background, a press with no move before it shows the scrollbars: cargo test -p app file_compare char_ranges a_click_without_a_move, ui-pair m12/compare.json; mouse selection: four clicks select all, a double click the word (`WordOperations.word`) or the inside of brackets and strings (`editor.doubleClickSelectsBlock`), double and triple click drags go on by words and lines, their Alt forms on the cursor added last, a drag past the text scrolls each frame (dragScrolling.ts) (editor/mouse_selection.rs, workbench/drag_scrolling.rs): cargo test -p app mouse_selection text_clicks_select a_selecting_drag_below (6), in the vertical scrollbar without the minimap, below the horizontal scrollbar's top and in a comment reply editor: cargo test -p app a_drag_into_the_vertical the_bottom_edge_hit a_drag_below_a_comment; the IME input handler sees the selection's lines, a caret inside marked text places the cursor and character bounds follow the text (nativeEditContext.ts): cargo test -p app text_input::; decoration type outlines outside the range and borders inside it, the CSS cascade of their shorthands and longhands, `before`/`after` content text as injected text (workbench/editor_view/text_decorations.rs): cargo test -p app outline_and_border_follow_the_css_cascade a_decoration_outline_is_drawn_outside_its_range decoration_types_set_and_remove_editor_decorations, ui-pair of a merge conflict file: the header's "(Incoming Change)" text matches the reference; a padded inlay hint broken by word wrap draws a padding box per piece (word_wrap.rs `hint_splits`, inlayHintsController.ts `cssProperties.padding` per span): cargo test -p app wrapping_a_padded_inlay_hint_skips_its_padding_box, ui-pair port/fixtures/ui-pair/m8/inlay-hint-wrap.json dark with `PORT_MESSAGES=inlayHints FILE=notes.txt`, the messages extension and `editor.wordWrap` `wordWrapColumn` 24 plus `editor.inlayHints.padding`: matches the reference |
| editor/common | src/vs/editor | M8 | ported | [scheduling L] minimap.rs:87; minimap_view.rs:432; unicode_highlight.rs:63; indentation.rs:43; comment.rs:45; smart_select.rs:292: sticky minimap sampling, worker section headers and unicode highlights, tokenizeIfCheap, the 30 ms smart select yield. Accepted as "Scheduling differences" only with a measured same result and typing on a 50k-line TS file under 16 ms per edit; otherwise class 3. Audit inputs at 5e5b1b0a915. | the model and cursor layer under every editor (app/src/editor, decorations.rs, link_computer.rs, syntax.rs, the diff crate): cursors (CursorCollection normalize, per-cursor edits, loser edits, paste distribution, column selection), core moves and deletes over grapheme clusters, word operations, the edit stack with its stops and the alternative version id dirty state, onEnter and indentation rules (`languages/autoIndent.ts`, `enterAction.ts`, EnterOperation, electric characters, TabOperation, ShiftCommand miss-aligned lines), auto-closing of typed brackets and quotes (`AutoClosingOpenCharTypeOperation`, `hasUnmatchedClosingBracketAfter`: cargo test -p app auto_closing), indentation guessing, model decorations with injected text, bracket matching and bracket pair colorization over the incremental bracket tree (bracketPairsTree/, brackets/tree.rs: cargo test -p app brackets; typing on the 52k-line TS file 1.40, 1.73, 2.29 ms median per edit: cargo test --release -p app -- --ignored typing_latency_on_a_large_file), the lines in view past the tokenized ones tokenized from a guessed start state (`tokenizeHeuristically`: cargo test -p app lines_in_view_past_the_tokenized_ones), the link computer, view lines with word wrap: cargo test -p app editor:: decorations:: link_computer syntax:: (781 passed, 13 ignored: the upstream `test.skip` cases of indentation.test.ts); the diff algorithms of editor/common/diff: cargo test -p diff (15 passed). `getWordAtPosition` inside the token language with its `wordPattern`: cargo test -p app the_word_at_a_column (model.test.ts 'Get word at position', 'getWordAtPosition at embedded language boundaries', 'issue #61296'). Swapped by design: the piece tree text buffer is a vector of lines (no observable difference; large files go through workbench/large_file.rs). Gap (editor audit): pushEOL not on the undo stack (edit.rs). Full-width chars take two visible columns for tab stops and cursor moves and draw at the font's full-width advance: cargo test -p app full_width_chars_take moving_down_keeps. Language configuration regexes read a class hyphen next to `\w`, `\d` or `\s` as JavaScript does (css `[\w-?]`, folding.rs `marker_regex`): cargo test -p app a_hyphen_next_to_a_class_escape_is_literal. |
| editor/standalone | src/vs/editor | | removed | | Artur: internal infrastructure or developer tool with no 1:1 counterpart in the native port |
| editor/test | src/vs/editor | M6 | n/a | | upstream test infrastructure; the port tests with cargo test and port/tools |
@@ -316,7 +316,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| editor/contrib/inPlaceReplace | src/vs/editor/contrib | M8 | verified | | Replace with Previous/Next Value (Shift+Cmd+, and ., palette): number step and value sets of `navigateValueSet`, 350 ms outline in light themes; cargo test -p app editor::in_place_replace (upstream has no test); ui-pair light theme `x = true; y = 41; z = 1.5` from the palette |
| editor/contrib/indentation | src/vs/editor/contrib | M8 | verified | [scheduling L] minimap.rs:87; minimap_view.rs:432; unicode_highlight.rs:63; indentation.rs:43; comment.rs:45; smart_select.rs:292: sticky minimap sampling, worker section headers and unicode highlights, tokenizeIfCheap, the 30 ms smart select yield. Accepted as "Scheduling differences" only with a measured same result and typing on a 50k-line TS file under 16 ms per edit; otherwise class 3. Audit inputs at 5e5b1b0a915. | indentation.ts actions (indent using spaces/tabs, tab display size, detect, convert to spaces/tabs) and trimTrailingWhitespaceCommand.ts with their upstream tests, auto-indent on Enter and on type (`editor.autoIndent`), Reindent Lines and Reindent Selected Lines: cargo test -p app indentation editor_status editor::auto_indent (cursor.test.ts indent cases, Auto Indent On Type - TypeScript/JavaScript, shiftCommand.test.ts doc block cases); auto-indent on paste (`editor.autoIndentOnPaste`, `autoIndentOnPasteWithinString`, `AutoIndentOnPaste.trigger`) and the Ruby, PHP and Visual Basic suites of indentation.test.ts pass; the cases upstream skips (`test.skip`: paste 5, Ruby, Go, CPP 3, HTML, Latex, Lua) are `#[ignore]` and fail as upstream (cargo test -p app auto_indent, 115 passed, 13 ignored); indentation.ts actions (indent using spaces/tabs, tab display size, detect, convert to spaces/tabs) and trimTrailingWhitespaceCommand.ts with their upstream tests, auto-indent on Enter and on type (`editor.autoIndent`), Reindent Lines and Reindent Selected Lines: cargo test -p app indentation editor_status editor::auto_indent (cursor.test.ts indent cases, Auto Indent On Type - TypeScript/JavaScript, shiftCommand.test.ts doc block cases); no auto-indent on paste (`editor.autoIndentOnPaste`, default off), not the Ruby, PHP, Go, CPP, HTML, Visual Basic, Latex and Lua suites |
| editor/contrib/inlayHints | src/vs/editor/contrib | M13 | verified | | workbench/inlay_hints.rs over editor/injected_text.rs (the 'InlayHint' debounce: inlay_hints::tests::the_delay_follows_the_providers_answer_time; off a word a hint attaches after its token's start, `_getRangeAtPosition`: inlay_hints::tests::a_hint_off_a_word_attaches_after_the_start_of_its_token; inlayHintsController.ts: cache, fixed lengths while typing, label parts, links, tooltip resolve, double click edits, `editor.inlayHints.*`, `_executeInlayHintProvider`): cargo test -p app injected_text inlay_hints; ui-pair port/fixtures/language-features/steps-color.json (port/results/inlay-hints.md) |
-| editor/contrib/inlineCompletions | src/vs/editor/contrib | M13 | verified | | workbench/inline_completions.rs, ghost_text.rs (computeGhostText.ts over diff::lcs_diff), the suggest widget adaptor in workbench/suggest_controller.rs and workbench/suggest_widget.rs: cargo test -p app ghost_text inline_completions (computeGhostText.test.ts cases, getSecondaryEdits.test.ts, inlineCompletions.test.ts: the "Inline Completions" suite with its Forward Stability tests, the Multi Cursor Support suite and both "Change hint" tests; suggestWidgetModel.test.ts "Ghost Text" and "offWhenInlineCompletions", the augmentation over the suggest widget's own list (only_the_answer_with_the_suggest_item_augments_it), the inline preselect of the suggest widget, Shift previewing the replace edit and handleSuggestAccepted), cargo test -p diff lcs_diff (diff.test.ts and upstream outputs); ui-pair port/fixtures/language-features/steps-ghost.json (port/results/inlay-hints.md). Not ported by design: "Emits empty response telemetry after instantiation service disposal" (the port has no telemetry), suggestWidgetModel.test.ts "Active" (test.skip upstream, microsoft/vscode#166023), ghostTextView/layout/scrollToReveal tests (DOM, the ui-pair check stands in). Inline edits, next edit suggestions and their tests (inlineEdits, editKind, longDistanceWidgetPlacement, renameSymbolProcessor, graph) are AI: removed. Items dedupe and select by `semanticId`: cargo test -p app items_with_the_same_trimmed_edit_cycle_as_one. `getDefaultRange` from the word start to the line end: cargo test -p app an_item_without_a_range_replaces_up_to_the_line_end. |
+| editor/contrib/inlineCompletions | src/vs/editor/contrib | M13 | ported | [3 M] inline_completions.rs: no inlineCompletionsHintsWidget.ts toolbar (previous/next, the count, `editor/inlineCompletions/actions` at :213) | workbench/inline_completions.rs, ghost_text.rs (computeGhostText.ts over diff::lcs_diff), the suggest widget adaptor in workbench/suggest_controller.rs and workbench/suggest_widget.rs: cargo test -p app ghost_text inline_completions (computeGhostText.test.ts cases, getSecondaryEdits.test.ts, inlineCompletions.test.ts: the "Inline Completions" suite with its Forward Stability tests, the Multi Cursor Support suite and both "Change hint" tests; suggestWidgetModel.test.ts "Ghost Text" and "offWhenInlineCompletions", the augmentation over the suggest widget's own list (only_the_answer_with_the_suggest_item_augments_it), the inline preselect of the suggest widget, Shift previewing the replace edit and handleSuggestAccepted), cargo test -p diff lcs_diff (diff.test.ts and upstream outputs); ui-pair port/fixtures/language-features/steps-ghost.json (port/results/inlay-hints.md). Not ported by design: "Emits empty response telemetry after instantiation service disposal" (the port has no telemetry), suggestWidgetModel.test.ts "Active" (test.skip upstream, microsoft/vscode#166023), ghostTextView/layout/scrollToReveal tests (DOM, the ui-pair check stands in). Inline edits, next edit suggestions and their tests (inlineEdits, editKind, longDistanceWidgetPlacement, renameSymbolProcessor, graph) are AI: removed. Items dedupe and select by `semanticId`: cargo test -p app items_with_the_same_trimmed_edit_cycle_as_one. `getDefaultRange` from the word start to the line end: cargo test -p app an_item_without_a_range_replaces_up_to_the_line_end. |
| editor/contrib/inlineProgress | src/vs/editor/contrib | M13 | verified | | workbench/inline_progress.rs (inlineProgress.ts): the spinner after 500 ms at the paste or drop position with 1em of room as injected text, its hover, click cancels; the paste falls back to the default paste: cargo test -p app paste_edits (the_paste_progress_makes_room_for_its_spinner); ui-pair d.md paste (no spinner once the provider answers, as in the reference) |
| editor/contrib/insertFinalNewLine | src/vs/editor/contrib | M8 | verified | | `OpenEditor::insert_final_new_line` in `editor/indentation.rs`, `editor.action.insertFinalNewLine` (writable): cargo test -p app insert_final_new_line; ui-pair notes.txt through the Command Palette |
| editor/contrib/lineSelection | src/vs/editor/contrib | M8 | verified | | Expand Line Selection (Cmd+L, palette): cargo test -p app expand_line_selection (lineSelection.test.ts); ui-pair notes.txt Cmd+L twice and on the last line |
@@ -354,18 +354,18 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/parts/banner | workbench part | M11 | verified | | workbench/banner.rs (bannerPart.ts): one item by priority, icon, message with ellipsis, link actions, Close Banner; Focus Banner, `bannerFocused`, arrow keys through the links and the close button, Enter and Space on them. `cargo test -p app banner`; verified: ui-pair banner.json vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/parts/chat | workbench part | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/parts/dialogs | workbench part | M11 | verified | | workbench/dialog_view.rs custom dialog, used for every message box with `window.dialogStyle: custom` (severity codicons, plain detail); cargo test -p app dialogs; verified: ui-pair dialogs.json `custom-modal` vs the reference (port/results/windows.md, milestone 11 verification): size, buttons in macOS order, Close Dialog; its buttons and Close Dialog are accessibility buttons named by their labels (dialog.ts monaco Buttons, the close action's aria-label): port/tools/update-check pre-release presses "Trust Publisher & Install" through them |
-| workbench/parts/editor | workbench part | M8 | verified | | breadcrumbs click, file and outline pickers, `focusAndSelect`, `selectFocused`, `focusNext/PreviousWithPicker`, `revealFocusedFromTreeAside`, `toggleToOn` and `breadcrumbs.useQuickPick` (breadcrumbsControl.ts, breadcrumbsPicker.ts: cargo test -p app workbench::breadcrumbs; verified: ui-pair m8/breadcrumbs-pickers.json with `FILE=src/main.ts`, the picker's place, arrow, rows and icons and the focused last item match the reference), connected tab strip (preview/pinned, close, split and more actions), a dirty tab still open in another group closes without the save prompt (editorGroupView.ts `isOpenedInOtherGroup`: cargo test -p app the_wait_marker_waits_for_the_dirty_file_to_be_saved), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5): cargo test -p app editor::tests (91), keys_and_typed_text_edit_the_focused_editor_and_reach_the_host; tab context menu (Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open; port/results/contextmenu.md): cargo test -p app editor_menus (8); `_workbench.open` and `vscode.open` (file, untitled with its path, web link, view columns): cargo test -p app workbench_open (3), `_workbench.diff` with the diff editor: cargo test -p app diff_editor; editor groups and splits (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas): cargo test -p app editor_groups (11), editor_grid (14); locked scrolling (workbench/scroll_locking.rs): cargo test -p app scroll_locking; editorpart.state restored from workspace storage: cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage; pixel-check file window (port/results/pixels.md milestone 4); all run at the milestone 20 sweep; one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); editorpart.state: the grid and the groups' file editors restored from workspace storage (cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage); one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); breadcrumbs editor type picker (editor_type_picker.rs, editorTypePicker.ts) for text and diff editors: Text Diff Editor label, `priority.diffEditor` ranks, `workbench.diffEditorAssociations`, Set Default (Diff Only), Open Original/Modified: cargo test -p app editor_type_picker; ui-pair m12/editor-type.json matches, the menus' width included; the editor title's ... menu (MenuId.EditorTitle with Reopen Editor With, the button's `toolbar.activeBackground` while it shows), the empty group context menu (MenuId.EmptyEditorGroupContext) and the watermark shortcuts: ui-pair m11/editor-menus.json and m11/watermark-tips.json (port/results/auxiliary-windows.md), cargo test -p app editor_menus editor_type_picker; the empty group menu's New Terminal; the Text Editor control at a second start, restored from the `memento/customEditors` profile memento as contributedCustomEditors.ts does (cargo test -p app editor_type_picker custom_editors, ui-pair m12/editor-type-second-start.json); terminal editors (terminalEditorService.ts, terminalEditorInput.ts): Create New Terminal in Editor Area, Move Terminal into Editor Area and into the Panel, the terminal tab's context and title menus, `TabInputKind.TerminalEditorInput` tabs (cargo test -p app terminal_editor, ui-pair m12/terminal-editor.json); terminal editors restored after a restart (terminalEditorSerializer.ts); the terminal tab menus' Change Color, Change Icon, Toggle Size to Content Width and Move Terminal into New Window with the color and icon pickers (cargo test -p app terminal_editor icon_select_box, ui-pair m12/terminal-pickers.json and m12/terminal-tab-list-menu.json, m12/editor-type-second-start.json); `workbench.editor.enablePreview` off opens every editor pinned and Toggle Keep Editors pins the preview editor (cargo test -p app previews_off_pins_every_opened_editor); tab labels keep fractional text widths (vendored GPUI elements/text.rs; cargo test -p app tab_labels_keep, ui-pair icons/seti.json); `workbench.editor.showTabs` per part (editorTitleControl.ts): `single` draws singleEditorTabsControl.ts, the active editor's label 35px high, its breadcrumbs inline with `/` while the group is active, else its `workbench.editor.labelFormat` description, the close or unpin action, the actions at half opacity in an inactive group, `none` only the breadcrumbs row, `editorTabsVisible` (workbench/editor_view.rs `single_editor_tab_title`; cargo test -p app show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own; ui-pair `show-tabs.json` with SETTINGS single and none). `workbench.editor.editorActionsLocation` (titlebarPart.ts `editorActionsEnabled`): `titleBar`, or `default` with `showTabs: none`, draws the editor actions in the title bar before the layout controls with their overflow, Customize Layout moves into it (layoutActions.ts `EditorActionsInTitleBar`), the command center names the active file with its dirty dot, `hidden` draws them nowhere, and titlebarActions.ts `ToggleEditorActions` keeps the hidden location in profile storage; the six Show/Hide Editor Tabs commands (layoutActions.ts `AbstractSetShowTabsAction`) and the Editor Actions Position setters with their Tab Bar and Editor Actions Position submenus in View > Appearance and the tab bar's `EditorTabsBarContext` menu (workbench/editor_view.rs `title_bar_has_editor_actions`, workbench/editor_menus.rs `show_tabs_bar_context_menu`; cargo test -p app show_tabs_none_moves_the_editor_actions_into_the_title_bar the_tab_bar_menu_switches_the_tabs_mode the_editor_actions_toggle_restores_the_hidden_location menubar; ui-pair `show-tabs.json` with SETTINGS none: the title bar's split, close, separator, layout controls and `...` and the command center's main.ts match the reference); breadcrumbs focus mode (workbench/breadcrumbs.rs, breadcrumbsControl.ts): Focus Breadcrumbs focuses the last item, Left and Right move the focus, Space and Cmd+Enter reveal the focused file or symbol, Escape focuses the editor, the focused item underlined in `breadcrumb.focusForeground`, `breadcrumbsActive`: cargo test -p app the_keyboard_focuses_moves_through_and_reveals_the_breadcrumbs |
+| workbench/parts/editor | workbench part | M8 | ported | [3 M] keybindings_editor_view.rs `ModalHeader`: the modal part's editor actions are one hardcoded JSON action, not the `modalEditor/editorTitle` menu (modalEditorPart.ts:425 `createEditorActions`): the preferences items with their when-clauses, editor.contribution.ts `enableInModalMode` items and contributed ones | breadcrumbs click, file and outline pickers, `focusAndSelect`, `selectFocused`, `focusNext/PreviousWithPicker`, `revealFocusedFromTreeAside`, `toggleToOn` and `breadcrumbs.useQuickPick` (breadcrumbsControl.ts, breadcrumbsPicker.ts: cargo test -p app workbench::breadcrumbs; verified: ui-pair m8/breadcrumbs-pickers.json with `FILE=src/main.ts`, the picker's place, arrow, rows and icons and the focused last item match the reference), connected tab strip (preview/pinned, close, split and more actions), a dirty tab still open in another group closes without the save prompt (editorGroupView.ts `isOpenedInOtherGroup`: cargo test -p app the_wait_marker_waits_for_the_dirty_file_to_be_saved), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5): cargo test -p app editor::tests (91), keys_and_typed_text_edit_the_focused_editor_and_reach_the_host; tab context menu (Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open; port/results/contextmenu.md): cargo test -p app editor_menus (8); `_workbench.open` and `vscode.open` (file, untitled with its path, web link, view columns): cargo test -p app workbench_open (3), `_workbench.diff` with the diff editor: cargo test -p app diff_editor; editor groups and splits (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas): cargo test -p app editor_groups (11), editor_grid (14); locked scrolling (workbench/scroll_locking.rs): cargo test -p app scroll_locking; editorpart.state restored from workspace storage: cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage; pixel-check file window (port/results/pixels.md milestone 4); all run at the milestone 20 sweep; one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); editorpart.state: the grid and the groups' file editors restored from workspace storage (cargo test -p app the_grid_and_its_editors_come_back_from_workspace_storage); one group: connected tab strip (preview/pinned, close, split and more actions drawn), breadcrumbs, text editor with gutter, current line, indent guides, word highlight, overview ruler, click, drag and keyboard selection, typing, undo, clipboard, save and dirty tabs (port/notes.md milestone 5); tab context menu with Close, Close Others, Close to the Right, Close Saved, Close All, Keep Open since milestone 9 (port/results/contextmenu.md, cargo test -p app editor_menus); `_workbench.open` and `vscode.open` open a file, an untitled file with its path or a web link (cargo test -p app workbench_open, port/results/api-tests.md M12 `_workbench.open`), every view column in the one group; no `_workbench.diff` (diff editor); editor groups and splits since milestone 11 (split, move, join, focus, tab drag and drop with editorDropTarget.ts split areas; cargo test -p app editor_groups, editor_grid); no scrolling sync; minimap since milestone 8; cargo test -p app (editor::tests, workbench keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); pixel-check file window (port/results/pixels.md milestone 4, unchanged at milestone 5); breadcrumbs editor type picker (editor_type_picker.rs, editorTypePicker.ts) for text and diff editors: Text Diff Editor label, `priority.diffEditor` ranks, `workbench.diffEditorAssociations`, Set Default (Diff Only), Open Original/Modified: cargo test -p app editor_type_picker; ui-pair m12/editor-type.json matches, the menus' width included; the editor title's ... menu (MenuId.EditorTitle with Reopen Editor With, the button's `toolbar.activeBackground` while it shows), the empty group context menu (MenuId.EmptyEditorGroupContext) and the watermark shortcuts: ui-pair m11/editor-menus.json and m11/watermark-tips.json (port/results/auxiliary-windows.md), cargo test -p app editor_menus editor_type_picker; the empty group menu's New Terminal; the Text Editor control at a second start, restored from the `memento/customEditors` profile memento as contributedCustomEditors.ts does (cargo test -p app editor_type_picker custom_editors, ui-pair m12/editor-type-second-start.json); terminal editors (terminalEditorService.ts, terminalEditorInput.ts): Create New Terminal in Editor Area, Move Terminal into Editor Area and into the Panel, the terminal tab's context and title menus, `TabInputKind.TerminalEditorInput` tabs (cargo test -p app terminal_editor, ui-pair m12/terminal-editor.json); terminal editors restored after a restart (terminalEditorSerializer.ts); the terminal tab menus' Change Color, Change Icon, Toggle Size to Content Width and Move Terminal into New Window with the color and icon pickers (cargo test -p app terminal_editor icon_select_box, ui-pair m12/terminal-pickers.json and m12/terminal-tab-list-menu.json, m12/editor-type-second-start.json); `workbench.editor.enablePreview` off opens every editor pinned and Toggle Keep Editors pins the preview editor (cargo test -p app previews_off_pins_every_opened_editor); tab labels keep fractional text widths (vendored GPUI elements/text.rs; cargo test -p app tab_labels_keep, ui-pair icons/seti.json); `workbench.editor.showTabs` per part (editorTitleControl.ts): `single` draws singleEditorTabsControl.ts, the active editor's label 35px high, its breadcrumbs inline with `/` while the group is active, else its `workbench.editor.labelFormat` description, the close or unpin action, the actions at half opacity in an inactive group, `none` only the breadcrumbs row, `editorTabsVisible` (workbench/editor_view.rs `single_editor_tab_title`; cargo test -p app show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own; ui-pair `show-tabs.json` with SETTINGS single and none). `workbench.editor.editorActionsLocation` (titlebarPart.ts `editorActionsEnabled`): `titleBar`, or `default` with `showTabs: none`, draws the editor actions in the title bar before the layout controls with their overflow, Customize Layout moves into it (layoutActions.ts `EditorActionsInTitleBar`), the command center names the active file with its dirty dot, `hidden` draws them nowhere, and titlebarActions.ts `ToggleEditorActions` keeps the hidden location in profile storage; the six Show/Hide Editor Tabs commands (layoutActions.ts `AbstractSetShowTabsAction`) and the Editor Actions Position setters with their Tab Bar and Editor Actions Position submenus in View > Appearance and the tab bar's `EditorTabsBarContext` menu (workbench/editor_view.rs `title_bar_has_editor_actions`, workbench/editor_menus.rs `show_tabs_bar_context_menu`; cargo test -p app show_tabs_none_moves_the_editor_actions_into_the_title_bar the_tab_bar_menu_switches_the_tabs_mode the_editor_actions_toggle_restores_the_hidden_location menubar; ui-pair `show-tabs.json` with SETTINGS none: the title bar's split, close, separator, layout controls and `...` and the command center's main.ts match the reference); breadcrumbs focus mode (workbench/breadcrumbs.rs, breadcrumbsControl.ts): Focus Breadcrumbs focuses the last item, Left and Right move the focus, Space and Cmd+Enter reveal the focused file or symbol, Escape focuses the editor, the focused item underlined in `breadcrumb.focusForeground`, `breadcrumbsActive`: cargo test -p app the_keyboard_focuses_moves_through_and_reveals_the_breadcrumbs |
| workbench/parts/notifications | workbench part | M11 | verified | | workbench/notifications_view.rs: toasts (3 at most, purge 10/12/15s unless sticky, focused or hovered, spam protection), notifications center (Clear All, Do Not Disturb menu with per-source filters, Hide), rows with expand, collapse, clear, More Actions, buttons, links, Copy Text, double-click toggle; status bar bell states and tooltips; notificationsCommands.ts commands and context keys; geometry from the reference DOM (port/tools/ref-dom); cargo test -p app notifications_view; `workbench.notifications.position` (bottom right, bottom left, top right with the title bar bell); no toast animation, no screen reader announcements; verified: ui-pair messages.json `center`, `progress` vs the reference (port/results/windows.md, milestone 11 verification) |
| workbench/parts/panel | workbench part | M11 | verified | | bottom centered card, view tabs from register_panel_view with the "..." overflow of compositeBar.ts (cargo test -p app workbench::panel::, ui-pair port/results/problems.md), `<view id>.focus` per view, Maximize/Restore, Close, Cmd+J, active view in workspace storage; Problems, Output, Debug Console, Test Results (`hideIfEmpty`) and Terminal views with their title actions (cargo test -p app editor_groups the_output_view_shows_in_the_panel, output_view, the_debug_console_and_test_results_are_panel_views, terminal); part_grid tests, ui-pair port/results/layout.md; no panel position or alignment change, no Views and More Actions menu; verified: ui-pair port/results/problems.md (milestone 11 verification): tabs, "..." overflow and the filter box as the reference; tabs at Chromium's fractional text widths (the Problems tab with its badge was 2px wider: GPUI rounds a text element's width up), the filter in the view below 600px of width (`shouldShowFilterInHeader`) |
| workbench/parts/partGrid | workbench part | M11 | verified | | workbench/layout.rs grid on split_view.rs (splitview.ts priorities, snap, visibility), workbench/part_grid.rs sashes, hidden parts, sizes and visibility in LayoutStateModel storage keys: cargo test -p app layout part_grid split_view (reference geometry at 1024x768, Cmd+B for the next open, sash drag, snap); ui-pair grid steps, port/results/layout.md |
| workbench/parts/sessions | workbench part | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/parts/sidebar | workbench part | M11 | verified | | Explorer and Search; compact activity bar for top and bottom (side_bar.rs) with every container the activity bar shows: built-in, Testing, extensions' `viewsContainers.activitybar` from startup and after an install, and generated ones (cargo test -p app the_top_activity_bar_shows_contributed_containers; it showed the five built-in ones only until then), No Folder Opened welcome in an empty window (empty_view.rs); pixel-check (port/results/pixels.md, milestone 3): chevron and label edge pixels only; ui-pair port/results/layout.md; verified: every pair of port/results/windows.md (milestone 11 verification) and port/results/references-view.md |
| workbench/parts/statusbar | workbench part | M11 | ported | [3 S] status_entries.rs status_item_hover: the pointer resting on the problems entry while a new untitled editor opens and takes typing leaves its numbers in the hover foreground but its icons and outline unhovered, the reference keeps the whole hover (seen in a ui-pair run of port/fixtures/ui-pair/statusbar-hover.json with Cmd+N and typing after the `problems` step) | an extension entry's `$(icon)`s and progress spinner in its kind's hover foreground, an entry with its own `color` keeping it on hover (statusbarItem.ts `applyColor`; cargo test -p app a_hovered_extension_entry_s_icons_follow_its_label_color); ui-pair port/fixtures/ui-pair/statusbar-hover.json hc with `PORT_MESSAGES=status`, the messages extension and `statusBarItem.hoverForeground` #FF0000: the hovered plain, colored, bell and problems entries match the reference (dashed outline, red icons and text, the colored entry green; 223 to 403 differing pixels of 48000 at 3% fuzz); the language detection entry draws its icon with the same `status_item_icon`; no-folder and folder colors (problems, bell), no remote indicator (workbench/contrib/remote removed, port/notes.md; cargo test -p app the_status_bar_has_no_remote_indicator), a hovered label's HC dashed `contrastActiveBorder` outline and icons in `statusBarItem.hoverForeground` (a_hovered_status_item_is_outlined_and_its_icons_take_the_hover_foreground), editor items Ln/Col, indentation, encoding, EOL, language with tabular-nums at their shaped widths and their upstream hovers; each item runs its editorStatus.ts command (Go to Line, indentation, encoding, EOL and language pickers: cargo test -p app editor_status); extension entries in statusbarModel.ts order around problems and the editor items (status_entries.rs), and the `status.progress` window progress entry with its spinner; verified: ui-pair messages.json vs the reference (port/results/windows.md, milestone 11 verification): extension entries, warning background, window progress entry, bell |
-| workbench/parts/titlebar | workbench part | M9 | verified | | command center with the folder name, nav and layout actions (Customize Layout runs since port/results/manage-menu.md; with the activity bar on top or bottom the title bar's Manage gear opens MenuId.GlobalActivity below it, cargo test -p app manage_menu); a click on the command center opens Quick Open with the Go to File and Show and Run Commands help picks (port/results/command-center.md); drag region as `-webkit-app-region` (empty bar drags and double-click zooms, command center and layout controls no-drag; cargo test -p app title_bar, port/results/command-center.md); context menus of the bar, the title and the command center with the Command Center, Navigation Controls and Layout Controls toggles and the path items (cargo test -p app title_bar); pixel-check file and titlebar (port/results/pixels.md): blending rounding and glyph edges only; the inactive window: `titleBar.inactiveBackground`/`inactiveForeground`, `commandCenter.inactiveBorder`, contents at 0.6 opacity, `modernUI.inactiveShellBackground` (cargo test -p app theme::tests; ui-pair `new-window.json`, port/results/windows.md) |
+| workbench/parts/titlebar | workbench part | M9 | ported | [3 M] workbench.rs title bar: no global toolbar of `titleBar` (titlebarPart.ts:854 `globalToolbarMenu`); contributed items do not show | command center with the folder name, nav and layout actions (Customize Layout runs since port/results/manage-menu.md; with the activity bar on top or bottom the title bar's Manage gear opens MenuId.GlobalActivity below it, cargo test -p app manage_menu); a click on the command center opens Quick Open with the Go to File and Show and Run Commands help picks (port/results/command-center.md); drag region as `-webkit-app-region` (empty bar drags and double-click zooms, command center and layout controls no-drag; cargo test -p app title_bar, port/results/command-center.md); context menus of the bar, the title and the command center with the Command Center, Navigation Controls and Layout Controls toggles and the path items (cargo test -p app title_bar); pixel-check file and titlebar (port/results/pixels.md): blending rounding and glyph edges only; the inactive window: `titleBar.inactiveBackground`/`inactiveForeground`, `commandCenter.inactiveBorder`, contents at 0.6 opacity, `modernUI.inactiveShellBackground` (cargo test -p app theme::tests; ui-pair `new-window.json`, port/results/windows.md) |
| 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: unmapped ids of menusExtensionPoint.ts, each needing its view's menu first: testing/item/gutter, testing/profiles/context, testing/item/result, testing/message/context, testing/message/content, webview/context, 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, titleBar; 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, terminal/title/context, debug/callstack/context, debug/variables/context, debug/watch/context, scm/resourceFolder/context and scm/historyItemRef/context (cargo test -p app api_menu_keys_reach_their_menus a_folder_row a_history_item_menu); viewContainer/title on the Run and Debug title with its debugViewlet.ts items (cargo test -p app view_container_title the_debug_container_more_actions; ui-pair `menus/view-container-title.json` with `ARGS=--extensionDevelopmentPath=port/fixtures/extensions/menus`, the rocket and the `...` items match the reference); extension/context in the Manage and row menus after extensionsActions.ts `ManageExtensionAction` (cargo test -p app the_manage_menu_lists_the_extension_context_menu; ui-pair `menus/extension-context.json`, the Copy, Settings and contributed groups match the reference); editor/title/run as the editor title's Run or Debug... split button after menuEntryActionViewItem.ts `DropdownWithDefaultActionViewItem` (cargo test -p app editor_title_run; ui-pair `menus/editor-title-run.json` with `FILE=LICENSE.txt` and an absolute `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus`: the split button, its open dropdown and the picked primary with the chevron hover match the reference); the AI menu ids (chat/*, chatSessions/*, agents/*, agents/titleBar, editor/context/chat, searchPanel/aiResults/commands) removed by decision (port/notes.md:35); 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: testing/item/gutter, testing/profiles/context, testing/item/result, testing/message/context, testing/message/content, webview/context, modalEditor/editorTitle, editor/inlineCompletions/actions, diffEditor/gutter/selection, multiDiffEditor/content, notebook/cell/execute, notebook/kernelSource, notebook/variables/context, comments/commentThread/additionalActions, titleBar (each a gap on its view's row); issue/reporter (workbench/contrib/issue removed), 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, terminal/title/context, debug/callstack/context, debug/variables/context, debug/watch/context, scm/resourceFolder/context and scm/historyItemRef/context (cargo test -p app api_menu_keys_reach_their_menus a_folder_row a_history_item_menu); viewContainer/title on the Run and Debug title with its debugViewlet.ts items (cargo test -p app view_container_title the_debug_container_more_actions; ui-pair `menus/view-container-title.json` with `ARGS=--extensionDevelopmentPath=port/fixtures/extensions/menus`, the rocket and the `...` items match the reference); extension/context in the Manage and row menus after extensionsActions.ts `ManageExtensionAction` (cargo test -p app the_manage_menu_lists_the_extension_context_menu; ui-pair `menus/extension-context.json`, the Copy, Settings and contributed groups match the reference); editor/title/run as the editor title's Run or Debug... split button after menuEntryActionViewItem.ts `DropdownWithDefaultActionViewItem` (cargo test -p app editor_title_run; ui-pair `menus/editor-title-run.json` with `FILE=LICENSE.txt` and an absolute `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus`: the split button, its open dropdown and the picked primary with the chevron hover match the reference); comments/comment/editorActions as secondary buttons left of the reply and edit form actions, comments/commentThread/title/context on the thread head and comments/commentThread/comment/context on a comment (cargo test -p app the_comment_editor_actions_and_context_menus_run_their_menus); mergeEditor/result/title primary commands in the result's title (cargo test -p app open_merge_editor_resets); the AI menu ids (chat/*, chatSessions/*, agents/*, agents/titleBar, editor/context/chat, searchPanel/aiResults/commands) removed by decision (port/notes.md:35); 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 |
@@ -473,7 +473,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/codeActions | workbench contribution | M13 | verified | | codeActionsContribution.ts `updateConfigurationSchema`: every provided `source` kind gets its property in `editor.codeActionsOnSave` and `notebook.codeActionsOnSave` (config registry.rs `list_code_actions_on_save`, cargo test -p config code_actions_on_save). The keybindings schema (config json_schema.rs `keybindings_schema`, served at `vscode://schemas/keybindings` with `vscode://schemas/inlineCompletionProviderIdArgs`) adds the extensions' commands and the provided kinds to `editor.action.codeAction`, `refactor` and `sourceAction` args: cargo test -p config json_schema; ui-pair user keybindings.json `editor.action.refactor` with `{}` args: "Missing property \"kind\"." at Ln 3, Col 60 in both (port/results/language-features.md Keybindings schema) |
| workbench/contrib/codeEditor | workbench contribution | M8 | ported | [3 S] unusual_line_terminators.rs:83 the "Detected unusual line terminators" prompt uses GPUI's `Window::prompt`, so `window.dialogStyle: custom` is ignored (dialog.rs `show_message_box`) | quickaccess/gotoLineQuickAccess (Go to Line/Column, Go to Offset) ported; toggleRenderWhitespace's View: Toggle Render Whitespace and toggleMinimap's View: Toggle Minimap with `editor.minimap.enabled` (workbench/editor_commands.rs, ui-pair notes.txt); toggleColumnSelection's Toggle Column Selection Mode with its Selection menu check, and `editor.columnSelection` drags and Shift+clicks selecting a column (cargo test -p app column_selection_mode); toggleMultiCursorModifier's Toggle Multi-Cursor Modifier and its Selection menu items, with `editor.multiCursorModifier` `ctrlCmd` making Cmd+click the multi-cursor click (cargo test -p app multi_cursor_modifier); saveParticipants' text participants (cargo test -p app save_participants) and `CodeActionOnSaveParticipant` with `editor.codeActionsOnSave` before formatting (workbench/code_actions/on_save.rs: cargo test -p app code_actions), its `triggerCodeActionsCommand` running the `always` source kinds on window focus and active editor changes with `editor.codeActions.triggerOnFocusChange` and `files.autoSave` `afterDelay` (cargo test -p app a_window_focus_change_runs_the_always_code_actions_on_save); toggleOvertype's Toggle Overtype/Insert Mode with typing, IME composition and `editor.overtypeOnPaste` paste overtyping, its OVR status item and block cursor (cargo test -p app overtype_mode; ui-pair notes.txt); toggleRenderControlCharacter's Toggle Control Characters (workbench/editor_commands.rs); largeFileOptimizations' prompt with Forcefully Enable Features and Don't Show Again, and `isTooLargeForTokenization` turning off tokens, folding, word and selection highlights and sticky scroll (workbench/large_file.rs: cargo test -p app large_file); editorLineNumberMenu's `editor/lineNumber/context` menu with `editorLineNumber` (cargo test -p app the_line_number_menu); toggleWordWrap's View: Toggle Word Wrap (Alt+Z), View > Word Wrap and the long-lines editor title action over `editor.wordWrap` wrapping (editor/word_wrap.rs: cargo test -p app word_wrap, the monospaceLineBreaksComputer.test.ts cases; ui-pair wrap.ts); inspectEditorTokens with the semantic token's table from the first document or range provider (workbench/inspect_tokens.rs: cargo test -p app inspect_tokens a_semantic_token_adds_its_table_and_strikes_the_textmate_rule_it_overrides, a fresh tokenization past the line length limit: a_line_past_the_tokenization_limit_is_tokenized_for_the_inspector), the editor accessibility help (workbench/accessible_view.rs), quickaccess/gotoSymbolQuickAccess and the outline (workbench/quick_access/goto_symbol.rs, workbench/outline_pane.rs: cargo test -p app goto_symbol outline_pane); emptyTextEditorHint without its inline chat parts (workbench/empty_editor_hint.rs: cargo test -p app empty_editor_hint; ui-pair port/fixtures/ui-steps/empty-editor-hint.json: same text, links, italics and wrap at the editor width); diffEditorHelper.ts: the "Show Whitespace Differences" button of a whitespace-only diff and the "The diff algorithm was stopped early" prompt with Remove Limit (workbench/editor_view/diff_editor_view.rs: cargo test -p app a_whitespace_only_diff_offers_to_show_whitespace a_diff_stopped_early_offers_to_remove_the_limit; ui-pair port/fixtures/diff-whitespace/steps.json: the same button, then the same whitespace diff with the toggled action and the cursor left at Ln 1, Col 1). Removed by decision: dictation and the voice parts (AI), diffEditorTryout (an experiment), startDebugTextMate (a developer tool), menuPreventer and selectionClipboard (Linux), and Electron's displayChangeRemeasureFonts and sleepResumeRepaintMinimap workarounds. editorSettingsMigration and diffEditorHelper's `collapseUnchangedRegions` migration through ConfigurationMigrationWorkbenchContribution: every migrateOptions.ts item rewritten in user, workspace and multi-root folder settings and their `[language]` blocks, at startup and when folders are added (workbench/configuration_migration.rs: cargo test -p app configuration_migration). emptyEditorHintActions without its chat rows: the experimental `workbench.editor.experimental.emptyEditorHintActions` list with Select a Language, the editor last picked from the hint or the Markdown Editor matched through `getResourceForPatternMatching`, the split editor picker, Escape and the aria label (workbench/empty_editor_hint/actions.rs: cargo test -p app the_actions_hint_offers_the_last_picked_editor_first_and_escape_closes_it the_list_fits_the_editor_or_gives_way_to_the_classic_hint; ui-pair port/fixtures/ui-steps/empty-editor-hint.json with the setting on: the same rows, keys and footer) |
| workbench/contrib/commands | workbench contribution | M9 | verified | | runCommands (commands.rs register_run_commands): cargo test -p app commands::, argument checks, spread args, order, stop at a failure; argument errors and the failure notify (cargo test -p app run_commands_argument_errors_notify) |
-| workbench/contrib/comments | workbench contribution | M13 | verified | | Done: a reply and an edit form per thread and comment, open together (commentReply.ts per CommentThreadWidget): cargo test -p app two_threads_keep_their_reply_forms_open_together; a zone sized by the drawn comment bodies: cargo test -p app a_wrapped_comment_body_grows_its_zone; next/previous thread and Focus Comment on Current Line focus the thread's comments (`commentFocused`, Up/Down between comments, Escape collapses and selects the range): cargo test -p app the_reached_thread_takes_the_focus. Done in diff editors: glyphs, commenting ranges (asked for every side of every multi diff file), range highlights and zones on both sides of the diff editor and of each multi diff file, the other side aligned by a diagonal fill (workbench/editor_view/diff_editor_view.rs, multi_diff_editor_view.rs, diff_editor.rs `additional_heights`): cargo test -p app diff comment; ui-pair `portComments.openDiff` modified, original and multi. Floating widgets on a diff's original side and on both sides of each multi diff file (comment_thread_floating.rs `FloatingHost`, multi_diff_editor_view.rs `multi_diff_floating_hosts`), with `FloatingWidgetRoom` growing a file below its last line (commentThreadFloatingWidgetRoom.ts, `FileDiff.room`): cargo test -p app floating room multi_diff; ui-pair `portComments.openDiff` original and multi with the floating style. Range decorations (commentThreadRangeDecorator.ts and the floating empty-range line, workbench/comment_thread_widget.rs `comment_range_highlights`): cargo test -p app comment_thread_floating. The floating thread style (`comments.thread.experimental.style: floating`; workbench/comment_thread_floating_layout.rs with commentThreadFloatingWidget.test.ts ported, workbench/comment_thread_floating.rs: placement beside the code or its lines in code order, the outline and connector, title drag, edge resize, double-click reset, the layout kept per thread, wheel to the editor): cargo test -p app comment_thread_floating, ui-pair steps-comment-floating.json (port/results/language-features.md Floating comment threads). Done: the Comments panel (workbench/comments_view.rs: resources, threads with author, relative time, first line, range and replies, the unresolved badge, a markdown preview's images as "Image: {alt}" (cargo test -p app a_markdown_comment_previews_its_first_rendered_block), the filter box with Show Resolved/Unresolved and Sort By, its history in the memento's `filterHistory`, Escape and Cmd+Down while `commentsFilterFocus` (cargo test -p app the_filter_keeps_its_history_and_escape_clears_it; no match highlights, as commentsTreeViewer.ts's renderers ignore the filter data), Collapse/Expand All, row selection and keys; hideIfEmpty; a thread row's `commentsView/commentThread/context` inline actions and context menu with the built-in Reply, which reveals the thread with its zone expanded and reply open: cargo test -p app the_thread_menu_replies_to_the_thread), the gutter glyph that toggles the thread (workbench/editor_view/comment_glyph.rs) and the thread widget (workbench/comment_thread_widget.rs: zone, state colors, head with `comments/commentThread/title` actions and Collapse, markdown comments with `code` spans on no `textCodeBlock.background` (cargo test -p app a_comment_s_code_span_draws_no_code_block_background), reply form with `comments/commentThread/context` buttons and Cmd+Enter), each comment (workbench/comment_node.rs: `comments/comment/title` actions, edit mode with `comments/comment/context` buttons, reactions and their picker), commenting ranges with the add glyph, Add Comment and template threads (workbench/commenting_ranges.rs), the comment commands (workbench/comment_navigation.rs: Collapse/Expand All, Expand Unresolved, Toggle Editor Commenting, Focus Comment on Current Line, Dismiss Comment, next/previous thread, commented range and commenting range, reached at the provider's columns unless it holds the cursor: cargo test -p app a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor) and the comments accessibility help: cargo test -p app comment; ui-pair port/results/language-features.md (Comments, Comment editing and commands); Escape keeps a new template open as the reference does (ui-pair steps-comment-escape-typed.json, cargo test -p app dismissing_a_new_template_keeps_it_open). The reply and edit inputs are code editors (simpleCommentEditor.ts: a `comment`-scheme markdown model, word wrap, no glyph margin, line numbers or folding, `scrollBeyondLastLine` false, 5 to 25 lines by `calculateEditorHeight`) that take the focus with `commentEditorFocused`, Cmd+Enter submits and Escape hides; the host gets the input's document and no text editor (workbench/comment_thread_widget.rs `open_comment_editor`, workbench/editor.rs `comment_editor`): cargo test -p app an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions; ui-pair steps-comment-reply-editor.json (reply-empty, reply-lines, reply-grown). Comments panel rows: 4px pane inset, 4px radius and the tree's indent guides as the Problems tree (cargo test -p app rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides; ui-pair steps-comments.json: chevron, name and thread line at the reference's x and y) |
+| workbench/contrib/comments | workbench contribution | M13 | ported | [3 M] comment_thread_widget.rs: no commentThreadAdditionalActions.ts (`comments/commentThread/additionalActions`): the separator and secondary button bar under the body, submenus as ButtonWithDropdown, at most 4, counted in the zone height and the floating widths <br> [3 S] comment_node.rs: with a comment in edit, its reactions row sits about 3px left of the reference's (port/results/language-features.md, `steps-comment-menus.json` shot `editing`) | Done: a reply and an edit form per thread and comment, open together (commentReply.ts per CommentThreadWidget): cargo test -p app two_threads_keep_their_reply_forms_open_together; a zone sized by the drawn comment bodies: cargo test -p app a_wrapped_comment_body_grows_its_zone; next/previous thread and Focus Comment on Current Line focus the thread's comments (`commentFocused`, Up/Down between comments, Escape collapses and selects the range): cargo test -p app the_reached_thread_takes_the_focus. Done in diff editors: glyphs, commenting ranges (asked for every side of every multi diff file), range highlights and zones on both sides of the diff editor and of each multi diff file, the other side aligned by a diagonal fill (workbench/editor_view/diff_editor_view.rs, multi_diff_editor_view.rs, diff_editor.rs `additional_heights`): cargo test -p app diff comment; ui-pair `portComments.openDiff` modified, original and multi. Floating widgets on a diff's original side and on both sides of each multi diff file (comment_thread_floating.rs `FloatingHost`, multi_diff_editor_view.rs `multi_diff_floating_hosts`), with `FloatingWidgetRoom` growing a file below its last line (commentThreadFloatingWidgetRoom.ts, `FileDiff.room`): cargo test -p app floating room multi_diff; ui-pair `portComments.openDiff` original and multi with the floating style. Range decorations (commentThreadRangeDecorator.ts and the floating empty-range line, workbench/comment_thread_widget.rs `comment_range_highlights`): cargo test -p app comment_thread_floating. The floating thread style (`comments.thread.experimental.style: floating`; workbench/comment_thread_floating_layout.rs with commentThreadFloatingWidget.test.ts ported, workbench/comment_thread_floating.rs: placement beside the code or its lines in code order, the outline and connector, title drag, edge resize, double-click reset, the layout kept per thread, wheel to the editor): cargo test -p app comment_thread_floating, ui-pair steps-comment-floating.json (port/results/language-features.md Floating comment threads). Done: the Comments panel (workbench/comments_view.rs: resources, threads with author, relative time, first line, range and replies, the unresolved badge, a markdown preview's images as "Image: {alt}" (cargo test -p app a_markdown_comment_previews_its_first_rendered_block), the filter box with Show Resolved/Unresolved and Sort By, its history in the memento's `filterHistory`, Escape and Cmd+Down while `commentsFilterFocus` (cargo test -p app the_filter_keeps_its_history_and_escape_clears_it; no match highlights, as commentsTreeViewer.ts's renderers ignore the filter data), Collapse/Expand All, row selection and keys; hideIfEmpty; a thread row's `commentsView/commentThread/context` inline actions and context menu with the built-in Reply, which reveals the thread with its zone expanded and reply open: cargo test -p app the_thread_menu_replies_to_the_thread), the gutter glyph that toggles the thread (workbench/editor_view/comment_glyph.rs) and the thread widget (workbench/comment_thread_widget.rs: zone, state colors, head with `comments/commentThread/title` actions and Collapse, markdown comments with `code` spans on no `textCodeBlock.background` (cargo test -p app a_comment_s_code_span_draws_no_code_block_background), reply form with `comments/commentThread/context` buttons and Cmd+Enter), each comment (workbench/comment_node.rs: `comments/comment/title` actions, edit mode with `comments/comment/context` buttons, reactions and their picker), commenting ranges with the add glyph, Add Comment and template threads (workbench/commenting_ranges.rs), the comment commands (workbench/comment_navigation.rs: Collapse/Expand All, Expand Unresolved, Toggle Editor Commenting, Focus Comment on Current Line, Dismiss Comment, next/previous thread, commented range and commenting range, reached at the provider's columns unless it holds the cursor: cargo test -p app a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor) and the comments accessibility help: cargo test -p app comment; ui-pair port/results/language-features.md (Comments, Comment editing and commands); Escape keeps a new template open as the reference does (ui-pair steps-comment-escape-typed.json, cargo test -p app dismissing_a_new_template_keeps_it_open). The reply and edit inputs are code editors (simpleCommentEditor.ts: a `comment`-scheme markdown model, word wrap, no glyph margin, line numbers or folding, `scrollBeyondLastLine` false, 5 to 25 lines by `calculateEditorHeight`) that take the focus with `commentEditorFocused`, Cmd+Enter submits and Escape hides; the host gets the input's document and no text editor (workbench/comment_thread_widget.rs `open_comment_editor`, workbench/editor.rs `comment_editor`): cargo test -p app an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions; ui-pair steps-comment-reply-editor.json (reply-empty, reply-lines, reply-grown). Comments panel rows: 4px pane inset, 4px radius and the tree's indent guides as the Problems tree (cargo test -p app rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides; ui-pair steps-comments.json: chevron, name and thread line at the reference's x and y) |
| workbench/contrib/customEditor | workbench contribution | M17 | verified | | Each editor of a custom text editor's resource, the one opened in another group and a split's copy, has a webview of its own (customEditorInput.ts: cargo test -p app each_group_s_custom_text_editor_has_its_own_webview); Opening a custom text editor with `options.selection` reveals it in the panel and leaves the text model's cursor (cargo test -p app a_custom_text_editor_s_navigation_drives_the_outline); A custom document open in another group moves to the active one, or with `supportsMultipleEditorsPerDocument` gets a second editor there (editorResolverService.ts `moveExistingEditorForResource`: cargo test -p app a_custom_document_open_in_another_group_moves_to_the_active_one a_custom_document_with_multiple_editors_opens_one_more_in_the_active_group); `workbench.editorAssociations` merged as editorResolverService.ts `getAllUserAssociationsForSetting`: the workspace's globs before the default's and user's (cargo test -p app a_workspace_association_wins_over_a_user_one_of_the_same_length); Reopen Editor With puts a closed custom or notebook editor's replacement in its place, pinned (editorGroupView.ts `replaceEditors`: cargo test -p app a_reopened_preview_keeps_its_tab_position); Two default editors for one resource warn once and remember the choice per extension glob (editorResolverService.ts `doHandleConflictingDefaults`: cargo test -p app two_default_editors_for_a_resource_ask_once_which_to_keep); the memento's custom editors until the extensions register (cargo test -p app markdown_editor_files_offer); editor resolution by `workbench.editorAssociations` and contributed selectors (editorResolverService.ts ranks), Reopen Editor With picker (`reopenActiveEditorWith`, `workbench.action.reopenWithEditor`), `_workbench.open`, `_workbench.openWith`; `FIXTURE=custom-editor-tests port/tools/webview-check` 8/8; cargo test -p app custom_editors |
| workbench/contrib/debug | workbench contribution | M16 | ported | [3 S] debug_view.rs: the debug views' `.expression` labels (Call Stack frame names, Variables and Watch rows) draw in the UI font where debug.contribution.css sets the 13 px editor monospace font (ui-pair `debug/call-stack-menu.json`, `FOLDER=port/fixtures/debug-node`: the reference's `global.main` is monospace) <br> [3 M] variable_menu.rs: Set Value (Variables and Watch), View Binary Data and Break on Value Read/Change/Access are not in the variable menus: no `setVariable`/`setExpression` edit, no `memoryReference` kept on a variable, no `dataBreakpointInfo` request (ui-pair `debug/variables-menu.json` shows Set Value in the reference's Watch menu) <br> [3 S] variable_menu.rs: Copy Value, Copy Expression, Edit Expression and Remove Expression from their keys (Cmd+C, Cmd+Alt+C, Enter, Cmd+Backspace in the views) do nothing: the views keep no tree selection to act on <br> [3 S] variable_menu.rs: a Variables row's menu passes `container` as `{ variablesReference }` only, where variablesView.ts `getVariablesContext` passes the scope's or parent variable's protocol object <br> [3 S] debug_view.rs: stopped at port/fixtures/debug-node/app.js line 5 the reference shows `Local: main` collapsed (ui-pair `debug/variables-menu.json`; variablesView.ts auto-expands the first scope only when `tree.hasNode` wins its race) where the port expands it; which one to match is not decided <br> [3 L] debug visualizers: debugVisualizers.ts, `VisualizedExpression` rows in the Variables view and the hover not ported <br> [3 S] lazy variables: the `$(eye)` button's look and hover not compared against the reference: with the reference's js-debug neither an object literal getter nor a class getter (port/fixtures/debug-node/lazy.js, ui-pair `debug/lazy-variable.json`) comes as a lazy `(...)` row, the hover shows `size = ƒ size()`, so the fixture still needs a value js-debug sends with `presentationHint.lazy` <br> [3 S] debug_editor: stopping at line 9 of port/fixtures/debug-node/lazy.js opens the file scrolled to line 7 at the top where the reference keeps line 1 at the top with the whole file in view (ui-pair `debug/lazy-variable.json`) <br> [3 S] debugQuickAccess.ts: Cmd+P `debug Launch lazy.js` shows the default quick access help in the port where the reference lists and starts the launch configurations <br> [3 S] debug_hover.rs: `tree_height` takes the editor's `offsetTop` as 0 where debugHover.ts `layoutTree` adds it to the tree's top and the limit; the editor's offsetParent is its group's absolutely positioned `.split-view-view` (splitview.css), so it is the group title's and breadcrumbs' height, which the hover does not know, so a complex hover above line 3 of port/fixtures/debug-node/app.js shows one row where the reference shows six (ui-pair `debug/hover-find.json`), and with the find widget open the rows draw past the tree's box <br> [3 S] debug_view.rs: in a 300 px side bar the reference's container title reads "Run And D..." and its launch picker shrinks to "L..." (debugActionViewItems.ts `StartDebugActionViewItem`), where the port keeps "Launch server.js" whole and cuts the title to "R..." (ui-pair `menus/view-container-title.json`, `FOLDER=port/fixtures/debug-node`) <br> [3 S] view_visibility.rs: the Run and Debug container's `...` menu opens 20 px right of and 20 px above the reference's (ui-pair `menus/view-container-title.json`) <br> [3 M] debug_toolbar.rs: debugToolBar.ts's Focus Session select box (`FocusSessionActionViewItem`, `multiSessionDebug`), the Stop button's `MenuId.DebugToolBarStop` dropdown, Alt over Stop or Disconnect showing its alt command, the docked toolbar in the Run and Debug title (`debug.toolBarLocation` docked) and the Command Center's Debug submenu (`commandCenter`) are not drawn <br> [3 S] debug_service.rs: `guess_debugger`'s Select Debugger picker has no Suggested and other separators, no "More {0} options..." of the dynamic providers and no "Install extension..." item, and with no candidate shows an error where debugAdapterManager.ts offers to find a language extension | ui-pair port/fixtures/debug-node: gutter breakpoint, F5 stops at it, Variables (Local: main), Call Stack with folded deemphasized frames, Breakpoints, Debug Console REPL, toolbar, status bar entry; cargo test -p app debug; Breakpoints header `$(warning)` hint for the debugger's `strings.unverifiedBreakpoints` after breakpointsView.ts's 4s `hintDelayer`, restarted by every breakpoint change (cargo test -p app debug_view; ui-pair port/fixtures/ui-pair/debug/unverified-breakpoints.json with js-debug's unbound math.test.js breakpoint); preLaunchTask, postDebugTask, compound preLaunchTask and the restart tasks through debugTaskRunner.ts's runner with `debug.onTaskErrors`, the remembered task error choice and the slow task notification (cargo test -p app debug_task_runner); Run to Cursor's temporary breakpoint with debugService.ts `runTo`'s 2s verification wait, thread choice from the sessions that verified it, and removal at the next stop or session end (cargo test -p app debug_commands); Debug Console output styled by its SGR sequences with the theme's ANSI colors at contrast 4 (cargo test -p app debug_console debug::ansi); Debug Console filter box (replFilter.ts terms, "Showing N of M" badge, Cmd+F `repl.action.filter`, value and history in workspace storage) and session picker (consoles of the sessions with `hasSeparateRepl`, `mergeWithParent` children in the parent's, selection focuses the session or its stopped child), input history in workspace storage (`debug.repl.history`) (cargo test -p app debug_console); ended sessions stay inactive in the console picker with their output until Clear Console or a start of the same configuration (debugModel.ts `addSession`, repl.ts `sessionsToIgnore`; cargo test -p app an_ended_session_stays_in_the_picker_until_cleared_or_started_again); debugUtils.ts `saveAllBeforeDebugStart` before a start (not for a child session or with `suppressSaveBeforeStart`) and a restart, by `debug.saveBeforeStart` (cargo test -p app a_start_or_restart_saves_the_dirty_editors); triggered breakpoints: debugSession.ts `enableDependentBreakpoints` by `hitBreakpointIds` or the top frame's position sets `sessionsDidTrigger` and sends the files again, continue and the steps wait for it up to 1.5 s (`waitForTriggeredBreakpoints`), a restart clears it (cargo test -p app a_hit_breakpoint_enables_its_dependents); `debug.inlineValues` after the focused frame's lines: the `InlineValuesProvider`s' values (`$provideInlineValues`) or the most specific scopes' variables named on each line, their `formatHoverContent` hover, the 100ms removal on continue (cargo test -p app debug_inline_values); debugHover.ts in place of the editor hover while a frame is focused in the file: the `$provideEvaluatableExpression` range or the dotted path under the mouse, `hover` evaluation or the scopes' variable, Cmd+K Cmd+I focused, Alt for the editor hover, the tree's list keys, Alt+click and Alt+Space toggling the loaded subtree (abstractTree.ts `onSpace`: cargo test -p app alt_click_toggles_the_loaded_subtree), a row click's tree focus, selection and twistie toggle (abstractTree.ts `onViewPointer`: cargo test -p app a_click_on_a_hover_row_focuses_the_tree) and `layoutTree` height, the glyph margin's lockout release, the caret edge nearer the mouse, lazy rows' `$(eye)` button (baseDebugView.ts `lazyButton`, `debug.autoExpandLazyVariables`; cargo test -p app a_lazy_row_takes_its_value_from_the_eye_button), the tree's find widget (abstractTree.ts `FindController`: cargo test -p app the_find_widget_filters_the_hover_tree; ui-pair port/fixtures/ui-pair/debug/hover-find.json) (cargo test -p app debug_hover; ui-pair port/fixtures/debug-node `greeting` and `numbers` hovers); disassemblyView.ts: the `disassemble` requests around the focused frame's instruction pointer, the glyph click's instruction breakpoint (`setInstructionBreakpoints`), the Breakpoints view's instruction rows, `instruction` stepping granularity while the view is active, the table's focus on reload, the list keys' focus, selection and clear, Page Up/Down over the rows' own heights, the hover column border (cargo test -p app disassembly list_tree a_step_in_the_disassembly_view debug::tests::instruction_breakpoints debug::tests::remove_instruction_breakpoints); Call Stack: js-debug's compact child session merged into its parent's row with modernUI's capitalized state label, the folded frames' common source `origin` (callStackView.ts `CallStackCompressionDelegate`, `ShowMoreRenderer`: cargo test -p app debug_view), the frame's `line:column` count badge and the trees' list focus a right click moves to them (cargo test -p app a_right_clicked_call_stack_row_takes_the_list_focus); the floating toolbar from `MenuId.DebugToolBar` with the extensions' `debug/toolBar` items, and `debug/createConfiguration` items in Select Debugger (cargo test -p app the_debug_toolbar_and_create_configuration_menus_take_contributed_items; ui-pair port/fixtures/ui-pair/debug/call-stack-menu.json); Variables, Watch and hover row context menus (debug.contribution.ts `DebugVariablesContext`, `DebugWatchContext`, `DebugHoverContext`, watchExpressionsView.ts Copy Expression and Copy All: cargo test -p app variable_menu; ui-pair port/fixtures/ui-pair/debug/variables-menu.json); shortcuts in port/notes.md |
| workbench/contrib/dropOrPasteInto | workbench contribution | M13 | verified | | commands.ts `configurePreferredPasteAction`/`configurePreferredDropAction`: the widgets' menus and the Paste As pick open user settings JSON at `editor.pasteAs.preferences` or `editor.dropIntoEditor.preferences` (workbench/paste_edits.rs); the `editor.pasteAs.*` and `editor.dropIntoEditor.*` settings come from core-settings.json; ui-pair paste-menu (port/results/language-features.md) |
@@ -509,11 +509,11 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/markers | workbench contribution | M13 | verified | | markersTreeViewer.ts `MarkerViewModel`: each marker keeps its quick fixes, asked once, until its resource's markers change (cargo test -p app each_problems_marker_keeps_its_quick_fixes). Indent guides and the focused row's outline apart from the selection (cargo test -p app the_focus_outline_follows). status bar problems entry and tooltip from markers (workbench/diagnostics.rs), its click toggles the Problems view; the Problems panel view (workbench/problems_view.rs: resources by worst severity then path, markers by severity then position, count badges, the tab badge, open on click, Collapse All, `workbench.actions.view.problems` and `toggleProblems`): cargo test -p app problems_view the_debug_console_and_test_results_are_panel_views, ui-pair port/results/problems.md; MarkersFileDecorations (count letter, error/warning color, bubbling, weight over other providers, `problems.decorations.enabled`) on Explorer rows and tabs (workbench/file_decorations.rs): cargo test -p app problems_decorate_the_file; filter box (workbench/view_filter.rs in the panel title at the panel's filter width, markers_filter.rs: markersFilterOptions.test.ts cases; text, `!`, globs, `@source:`, severity, active file and excluded files toggles, filter history, memento), filters menu, related information and multi-line rows, View as Table with column sashes (workbench/problems_table.rs), quick fixes on hovered rows (workbench/problems_quick_fix.rs): cargo test -p app markers_filter problems_view problems_table; ui-pair port/fixtures/problems/steps-filter.json and steps-table.json (port/results/problems.md); the selected row (first marker on focus, Up/Down, Enter and Cmd+Down open, `problems.action.copy`/`copyMessage`/`copyRelatedInformationMessage`, Cmd+. on the selected marker, `problemFocus`/`relatedInformationFocus`): cargo test -p app problems; ui-pair .vscode/settings.json and e.ts quick fix (port/results/language-features.md JSON settings, Problems quick fix). Multi-selection in the tree (`multipleSelectionSupport`: Shift+Up/Down, Cmd+click toggles, Shift+click ranges from the anchor, Copy over `getFocusedSelectedElements`) and open to the side (`problems.action.openToSide` on Ctrl+Enter, Ctrl/Cmd/Alt+click as listService.ts `sideBySide`, into `SIDE_GROUP`): cargo test -p app markers_select_together_and_open_to_the_side. Resource row: name 30px in, count badge 19px round 10px after the label at the line's bottom (cargo test -p app the_resource_name_sits_after_the_twistie_at_its_exact_line_height; ui-pair problems: chevron, icon x, name, description and badge box at the reference's device pixels, the file icon and the badge digit 1 device px low); a hovered marker without a model gets its quick fixes once its file opens (markersTreeViewer.ts `getModel(waitForModel)`; cargo test -p app a_problems_marker_gets_its_quick_fixes_once_its_file_opens) |
| workbench/contrib/mcp | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
| workbench/contrib/mediaPreview | workbench contribution | M17 | verified | | Resources of extension file systems: the file service's stat for the size, their parent as the webview's resource root, codecs read from the whole file up to mediaCodecs.ts' limit, and a `git` Git LFS pointer as the preview's message (mediaPreview.ts `isGitLfsPointer`; cargo test -p app previews_read_git_resources_and_show_git_lfs_pointers_as_a_message); An image or media file previewed in another group gets a preview of its own in the active group (mediaPreview.contribution.ts registers without `singlePerResource`: cargo test -p app an_image_previewed_in_another_group_gets_a_preview_in_the_active_one); image, video and audio previews as built-in editors (workbench/media_preview.rs, pages in media_preview/*.html), resolver priority builtin, zoom commands and Select Zoom Level picker, zoom, dimensions and file size status entries, Reopen as Source Text / Image Preview, the file's tab icon and Explorer reveal; `FIXTURE=media-preview-tests port/tools/webview-check` 6/6 on both apps; cargo test -p app media_preview; ui-pair image, video and audio, the breadcrumbs bar with the editor type control and its Reopen/Set Default menu (editor-type-reopen.json; port/results/webviews.md); cargo test -p app lists_the_editor_types; the focus outline at open (ui-pair media-preview-focus.json, background and foreground); cargo test -p app opens_a_startup_image. Not done: Copy image, legacy `media-preview` editor migration. The player page's codec warnings and WebM type (mediaCodecs.ts as media_preview/codecs.rs, mediaPlayerEditorInput.ts `_postCodecs`, `_postWebmType`): cargo test -p app media_preview::codecs, answers_the_player_page_with_the_file_s_codecs |
-| workbench/contrib/mergeEditor | workbench contribution | M14 | verified | | merge_editor.rs model (mapping, conflict states, accept/combine) and workbench/editor_view/merge_editor_view.rs (input 1/2, result, base view, layouts, gutter checkboxes behind `mergeEditor.showCheckboxes`, base-to-result diff backgrounds, "Comparing with" in base, the result's breadcrumbs, git's Complete Merge in the result's floating menu, `_open.mergeEditor`, dev commands, the inputs as read-only code editors of the group, Toggle Between Inputs, the active range in the last focused input or the result, scroll synchronization): cargo test -p app merge |
+| workbench/contrib/mergeEditor | workbench contribution | M14 | ported | [3 S] merge_editor_view.rs `merge_result_title`: Reset is drawn before the contributed `mergeEditor/result/title` primary commands, not sorted with them, and the other groups have no "..." overflow (codeEditorView.ts `TitleMenu`) | merge_editor.rs model (mapping, conflict states, accept/combine) and workbench/editor_view/merge_editor_view.rs (input 1/2, result, base view, layouts, gutter checkboxes behind `mergeEditor.showCheckboxes`, base-to-result diff backgrounds, "Comparing with" in base, the result's breadcrumbs, git's Complete Merge in the result's floating menu, `_open.mergeEditor`, dev commands, the inputs as read-only code editors of the group, Toggle Between Inputs, the active range in the last focused input or the result, scroll synchronization): cargo test -p app merge |
| workbench/contrib/meteredConnection | workbench contribution | M19 | verified | | the metered warning status entry and Configure Metered Connection (workbench/power.rs); port/tools/shell-check (port/fixtures/extensions/shell-tests, 6/6); cargo test -p app metered_connection |
| workbench/contrib/modernUI | workbench contribution | M11 | verified | | the modern layout only: the classic layout (`workbench.experimental.modernUI: false`) is removed by Artur's decision (port/notes.md Modern UI); `window.density.layout` compact and the Manage menu's Layout Density (cargo test -p app -- compact_density layout_density; ui-pair m11/layout-density.json in both densities with SETTINGS `{"window.density.layout": "compact"}`, port/results/layout-density.md) |
-| workbench/contrib/multiDiffEditor | workbench contribution | M14 | verified | | multi_diff_editor.rs and workbench/editor_view/multi_diff_editor_view.rs: `_workbench.openMultiDiffEditor`, SCM group (following the group's splices, each kept file with its state) and history item sources, Open File with the history item's `goToFileEditorTitle`, file toolbar, change navigation, collapse, binary placeholder, unchanged bars that click or drag with the line below kept in place and the hidden range's outline breadcrumbs (cargo test -p app unchanged_bars_drag), the layout debug log in the side group with a JSON patch line per change, the file list's Files View & Position sides, its sash with the stored width and hiding below 560px, View as List/Tree with the diffs in the list's order, each file's 35px diff gutter with Revert Block, the diff editor's line number lane, the `noCards` variant, first change selected and focused on open: cargo test -p app multi_diff. Each file side is its own code editor (workbench/code_editors.rs): a press focuses it, the modified side takes typing, undo, selection, IME, find and suggest, the host gets the file's edit, the edit recomputes the file's diff and makes the tab dirty and pinned, the dirty file opens as an inactive tab after 800ms (textFileEditorTracker.ts), the focused side's cursor blinks, every drawn side has its own color decorators, bracket pair colors come from the model: cargo test -p app a_file_side_is_a_code_editor every_drawn_file_side; ui-pair `steps-multi-diff-edit.json` (typed, undone, find) matches but for the reference's TypeScript diagnostics (port/notes.md, Comments in diff editors) |
-| workbench/contrib/notebook | workbench contribution | M17 | verified | | NotebookProviderInfoStore's memento lists notebook types until the extensions register (cargo test -p app markdown_editor_files_offer). compressOutputItemStreams (cargo test -p app notebook::tests::stream_compression). verified (session m17d): cargo test -p app -- notebook kernel renderer backup interactive repl outline quick_input explorer list_scroll walkthrough 288/0 (incl. the_notebook_list_scrolls_beyond_its_last_cell_with_the_wheel, the_mouse_over_a_longer_unfocused_cell_reaches_that_cell, overview_ruler); api-tests `MOCHA_GREP="Notebook|ipynb|Interactive Window|Ensure tabs getter"` 41/10/0 three runs in a row at 499a612a62f (the 10 pending are upstream skips; `Ensure tabs getter` failed in 2 of 3 runs before the exthost fix that holds workbench answers until the queue before them is sent); ui-pairs m17 notebook-open, -keys-outline, -output-toolbar, -kernel-picker, -restore (/tmp/m17f, /tmp/m17g), -cell-click and -scroll match; -toolbars and -find rerun on the GUI lanes at 991cb455f74 (gui-vm1 and gui-vm2, port and reference from the same run, Studio /tmp/m17i-notebook-*): menus, find highlights and overview ruler marks within 1 device px of the reference; differences named in port/notes.md session m17d; model (notebook.rs, notebookTextModel.ts edits, events, transient options, stream output merging), kernels and executions (notebook/kernels.rs), notebook service and resolver (workbench/notebooks.rs): cargo test -p app notebook; api-tests notebook suites 40/8/0 as the reference. Notebook editor (workbench/notebook_editor.rs, notebook/layout.rs): cells as code editors over their text models (the focused cell's is the group's code editor), markdown previews and outputs in the back layer webview, toolbar (+ Code, + Markdown, Run All, kernel picker), insert toolbar between cells, run gutter with execution order and state, cell toolbar (edit, stop editing, delete), Cell N of M status, notebook undo/redo over cell edits and cell text edits: cargo test -p app notebook (layout against the reference's measurements, undo order); ui-pair m17/notebook-open. Breadcrumbs with the notebook outline and the editor type picker, the Outline view, cell status bar items, cell list keyboard navigation, API cell edits on the undo stack, Save and Save As (untitled), dirty close prompt, host references let go after 3 minutes (port/notes.md milestone 17): cargo test -p app notebook (23). Hot exit backups through the serializer (`notebook/<viewType>/<viewType>` working copies, restored in the background): cargo test -p app a_dirty_notebook_backs_up; `notebook.cell.changeLanguage` from the cell status bar and Cmd+K M (language picker, kind changes): cargo test -p app the_cell_language_picker. The output `...` toolbar (cellOutput.ts `_attachToolbar`, MenuId.NotebookOutputToolbar: Clear Cell Outputs, Copy Cell Output, Save Image, Show Empty Outputs; Change Presentation with the session display order and preferred renderers; hidden empty outputs and the 28px minimum output height; workbench/notebook_editor/outputs.rs): cargo test -p app the_output_toolbar_menu, renderers; ui-pair m17/notebook-output-toolbar.json. Notebook editors come back after a reload (NotebookEditorSerializer): cargo test -p app a_notebook_editor_comes_back. The title's Customize Notebook... gear: cargo test -p app the_customize_notebook_submenu, ui-pair m17/notebook-toolbars.json. Cell toolbars from MenuId.NotebookCellTitle and NotebookCellDelete (inline groups as buttons, the `...` dropdown with Cut/Copy/Paste Cell, Insert Cell, Change Cell to Code/Markdown, Join, Copy Cell Down, Move (drag and drop), Show Cell Line Numbers, Toggle Cell Toolbar Position; `notebookMissingKernelExtension` and the kernel counts; interactive and REPL cells use InteractiveCellTitle; workbench/notebook_editor/cell_actions.rs), the notebook toolbar `...` (MenuId.NotebookToolbar), Run Cells In Section, the markdown fold chevron, folded hint and Fold/Unfold Cell (foldingModel.ts ranges, notebook/outline.rs `folding_ranges`; workbench/notebook_editor/folding.rs), `Spaces: N` while a code cell is focused, no `editorLangId` title items: cargo test -p app the_cell_toolbar, markdown_headers_fold, headings_fold, split_points, the_toolbar_position; cell drag and drop by the left gutter, with an insertion indicator and Alt-copy: `cargo test -p app a_cell_dragged_by_its_left_column_moves_or_copies_to_the_drop_place`. Find, the restored view state and clicks on a cell's text are done since (port/notes.md sessions m17b and m17d). Fold and unfold with `levels` and `direction: up` (foldingController setFoldingStateUp/Down, notebook/outline.rs `fold_ranges`): cargo test -p app markdown_headers_fold_their_sections, headings_fold; a drag of a selected cell moves every selection range (performCellDropEdits, dnd.rs `cell_drop_edits`): cargo test -p app every_selected_range_moves_to_the_drop_place; sticky rows over the notebook outline: cargo test -p app the_outline_header_collapses_and_expands_the_notebook_s_headers. The m17d differences left (stale cell toolbar, restored status bar items, breadcrumbs `…`) are reference quirks not copied, port/notes.md session m17d |
+| workbench/contrib/multiDiffEditor | workbench contribution | M14 | ported | [3 S] multi_diff_editor_view.rs: no FloatingEditorToolbarWidget of `multiDiffEditor/content` (multiDiffEditor.ts:313; floating_menu.rs draws only `editor/content`) | multi_diff_editor.rs and workbench/editor_view/multi_diff_editor_view.rs: `_workbench.openMultiDiffEditor`, SCM group (following the group's splices, each kept file with its state) and history item sources, Open File with the history item's `goToFileEditorTitle`, file toolbar, change navigation, collapse, binary placeholder, unchanged bars that click or drag with the line below kept in place and the hidden range's outline breadcrumbs (cargo test -p app unchanged_bars_drag), the layout debug log in the side group with a JSON patch line per change, the file list's Files View & Position sides, its sash with the stored width and hiding below 560px, View as List/Tree with the diffs in the list's order, each file's 35px diff gutter with Revert Block, the diff editor's line number lane, the `noCards` variant, first change selected and focused on open: cargo test -p app multi_diff. Each file side is its own code editor (workbench/code_editors.rs): a press focuses it, the modified side takes typing, undo, selection, IME, find and suggest, the host gets the file's edit, the edit recomputes the file's diff and makes the tab dirty and pinned, the dirty file opens as an inactive tab after 800ms (textFileEditorTracker.ts), the focused side's cursor blinks, every drawn side has its own color decorators, bracket pair colors come from the model: cargo test -p app a_file_side_is_a_code_editor every_drawn_file_side; ui-pair `steps-multi-diff-edit.json` (typed, undone, find) matches but for the reference's TypeScript diagnostics (port/notes.md, Comments in diff editors) |
+| workbench/contrib/notebook | workbench contribution | M17 | ported | [3 M] notebook_editor: no cell execute toolbar (`notebook/cell/execute`, notebookEditorWidget.ts:138 `cellExecuteToolbar`); kernel_picker.rs: no `notebook/kernelSource` actions (notebookKernelServiceImpl.ts:322); no notebookVariablesView.ts, so no `notebook/variables/context` | NotebookProviderInfoStore's memento lists notebook types until the extensions register (cargo test -p app markdown_editor_files_offer). compressOutputItemStreams (cargo test -p app notebook::tests::stream_compression). verified (session m17d): cargo test -p app -- notebook kernel renderer backup interactive repl outline quick_input explorer list_scroll walkthrough 288/0 (incl. the_notebook_list_scrolls_beyond_its_last_cell_with_the_wheel, the_mouse_over_a_longer_unfocused_cell_reaches_that_cell, overview_ruler); api-tests `MOCHA_GREP="Notebook|ipynb|Interactive Window|Ensure tabs getter"` 41/10/0 three runs in a row at 499a612a62f (the 10 pending are upstream skips; `Ensure tabs getter` failed in 2 of 3 runs before the exthost fix that holds workbench answers until the queue before them is sent); ui-pairs m17 notebook-open, -keys-outline, -output-toolbar, -kernel-picker, -restore (/tmp/m17f, /tmp/m17g), -cell-click and -scroll match; -toolbars and -find rerun on the GUI lanes at 991cb455f74 (gui-vm1 and gui-vm2, port and reference from the same run, Studio /tmp/m17i-notebook-*): menus, find highlights and overview ruler marks within 1 device px of the reference; differences named in port/notes.md session m17d; model (notebook.rs, notebookTextModel.ts edits, events, transient options, stream output merging), kernels and executions (notebook/kernels.rs), notebook service and resolver (workbench/notebooks.rs): cargo test -p app notebook; api-tests notebook suites 40/8/0 as the reference. Notebook editor (workbench/notebook_editor.rs, notebook/layout.rs): cells as code editors over their text models (the focused cell's is the group's code editor), markdown previews and outputs in the back layer webview, toolbar (+ Code, + Markdown, Run All, kernel picker), insert toolbar between cells, run gutter with execution order and state, cell toolbar (edit, stop editing, delete), Cell N of M status, notebook undo/redo over cell edits and cell text edits: cargo test -p app notebook (layout against the reference's measurements, undo order); ui-pair m17/notebook-open. Breadcrumbs with the notebook outline and the editor type picker, the Outline view, cell status bar items, cell list keyboard navigation, API cell edits on the undo stack, Save and Save As (untitled), dirty close prompt, host references let go after 3 minutes (port/notes.md milestone 17): cargo test -p app notebook (23). Hot exit backups through the serializer (`notebook/<viewType>/<viewType>` working copies, restored in the background): cargo test -p app a_dirty_notebook_backs_up; `notebook.cell.changeLanguage` from the cell status bar and Cmd+K M (language picker, kind changes): cargo test -p app the_cell_language_picker. The output `...` toolbar (cellOutput.ts `_attachToolbar`, MenuId.NotebookOutputToolbar: Clear Cell Outputs, Copy Cell Output, Save Image, Show Empty Outputs; Change Presentation with the session display order and preferred renderers; hidden empty outputs and the 28px minimum output height; workbench/notebook_editor/outputs.rs): cargo test -p app the_output_toolbar_menu, renderers; ui-pair m17/notebook-output-toolbar.json. Notebook editors come back after a reload (NotebookEditorSerializer): cargo test -p app a_notebook_editor_comes_back. The title's Customize Notebook... gear: cargo test -p app the_customize_notebook_submenu, ui-pair m17/notebook-toolbars.json. Cell toolbars from MenuId.NotebookCellTitle and NotebookCellDelete (inline groups as buttons, the `...` dropdown with Cut/Copy/Paste Cell, Insert Cell, Change Cell to Code/Markdown, Join, Copy Cell Down, Move (drag and drop), Show Cell Line Numbers, Toggle Cell Toolbar Position; `notebookMissingKernelExtension` and the kernel counts; interactive and REPL cells use InteractiveCellTitle; workbench/notebook_editor/cell_actions.rs), the notebook toolbar `...` (MenuId.NotebookToolbar), Run Cells In Section, the markdown fold chevron, folded hint and Fold/Unfold Cell (foldingModel.ts ranges, notebook/outline.rs `folding_ranges`; workbench/notebook_editor/folding.rs), `Spaces: N` while a code cell is focused, no `editorLangId` title items: cargo test -p app the_cell_toolbar, markdown_headers_fold, headings_fold, split_points, the_toolbar_position; cell drag and drop by the left gutter, with an insertion indicator and Alt-copy: `cargo test -p app a_cell_dragged_by_its_left_column_moves_or_copies_to_the_drop_place`. Find, the restored view state and clicks on a cell's text are done since (port/notes.md sessions m17b and m17d). Fold and unfold with `levels` and `direction: up` (foldingController setFoldingStateUp/Down, notebook/outline.rs `fold_ranges`): cargo test -p app markdown_headers_fold_their_sections, headings_fold; a drag of a selected cell moves every selection range (performCellDropEdits, dnd.rs `cell_drop_edits`): cargo test -p app every_selected_range_moves_to_the_drop_place; sticky rows over the notebook outline: cargo test -p app the_outline_header_collapses_and_expands_the_notebook_s_headers. The m17d differences left (stale cell toolbar, restored status bar items, breadcrumbs `…`) are reference quirks not copied, port/notes.md session m17d |
| workbench/contrib/onboarding | workbench contribution | M19 | removed | | the only registered tours are the Agents window ones (src/vs/sessions/contrib/onboardingTours): no AI by decision (port/notes.md) |
| workbench/contrib/opener | workbench contribution | M12 | verified | | workbench/opener.rs open_folder_link: a link to a workspace folder reveals it in the Explorer; verified at port-m12b-verify: cargo test -p app opener 4/4 |
| workbench/contrib/outline | workbench contribution | M13 | verified | | Outline view (workbench/outline_pane.rs): messages, loading after 100ms, symbols by position with `outline.show*`, `outline.icons`, `outline.collapseItems`, problem colors and badges, twisties, Up/Down/Left/Right/Enter/Space, click opens at the name and double click selects the range; cargo test -p app outline_pane. A diff editor shows "The active editor cannot provide outline information." (a diff input has no `getOriginalUri`) and keeps the breadcrumbs' symbols: cargo test -p app the_compare_commands_open_diff_editors; `outline.focus` over a message keeps the focus: cargo test -p app focus_view_commands_open_the_explorer_pane_and_focus_it; ui-pair m12/compare-outline.json matches the reference. Title actions (workbench/outline_actions.rs): Collapse All/Expand All, Follow Cursor, Filter on Type, Sort By: Position/Name/Category in `outline/state` (cargo test -p app outline). ui-pair steps-outline.json (port/results/language-features.md): the header actions and rows match. Find (workbench/outline_find.rs, the Explorer's find widget): typing filters or highlights the symbols, with "No results found.", all rows expanded while a pattern filters and the expansion, focus and selection restored after; cargo test -p app find_filters_or_highlights_the_symbols. The tree's focus apart from its selection, Page Up/Down, `list.focusParent`, `list.collapseAllToFocus`, `list.showHover` ("name (kind)"), `list.toggleSelection`, `list.clear`, scroll and sticky rows: cargo test -p app the_keys_move_the_focus_and_the_list_commands_act_on_it. Row contents 30px in and the detail after the name's exact width: cargo test -p app -- a_row_s_contents_start_30px_into_the_row the_detail_follows_the_name_s_exact_width. ui-pair m12/outline-find.json (filter, no results, tree focus, focus moved): the Outline matches, the find widget's 155.5px input and its message box included; left is the editor's npm "Debug" code lens. Descriptions of every icon label (workbench/icon_label.rs `label_description`: 0.9em, 0.5em margin, on the name's baseline): cargo test -p app a_description_is_0_9em; ui-pair search and quick open rows match |
@@ -554,7 +554,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/url | workbench contribution | M12 | verified | | trusted_domains.rs (isURLDomainTrusted, globs, localhost) and workbench/url_actions.rs: workbench.action.url.openUrl, workbench.action.manageTrustedDomain (trustedDomains:/Trusted Domains.jsonc editor, saved to http.linkProtectionTrustedDomains), link prompt "Do you want Code - OSS to open the external website?" with Copy and Configure Trusted Domains; cargo test -p app -- trusted_domains:: url_actions; verified at port-m12b-verify: cargo test -p app trusted_domains 10/10, url_actions 2/2; trustedDomainsValidator `fromWorkspace` (editor links and webview links ask for workspace trust before a command link, skip the domain prompt in a trusted workspace unless `workbench.trustedDomains.promptInTrustedWorkspace`): cargo test -p app -- a_workspace_link_follows_workspace_trust an_editor_link_opens_without_the_domain_prompt a_webview_command_link_asks_for_workspace_trust |
| workbench/contrib/userDataProfile | workbench contribution | M10 | verified | | userDataProfile.ts and userDataProfileActions.ts commands and menus (Switch, New, Save Current As, Delete, Export, New Window with Profile, the profile entries, Cleanup, Reset Workspace Associations, Help) in workbench/user_data_profile.rs; userDataProfilesEditor.ts as workbench/profiles_editor_view.rs (rename, Icon with the iconSelectBox.ts picker in workbench/icon_select_box.rs, Use for Current Window, Use for New Windows, Contents with the Source radio of each resource (`useDefaultFlags`), Folders & Workspaces with Add Folder, the row actions Duplicate/Export/Delete, the new profile form named Untitled N with Copy from, the Copy, Default or None source of each resource and the pinned Cancel/Preview/Create, Import Profile... from a URL or a file); the Manage activity item's profile icon and badge (globalCompositeBar.ts): ui-pair of the Profiles editor and the new profile form against the reference, port/results/profiles.md; cargo test -p app icon_select_box profiles_editor_view; Preview opens an in-process window on a transient profile that storage.json never holds and that goes when the window closes (preview_opens_a_window_on_a_transient_profile_that_goes_with_it) |
| workbench/contrib/userDataSync | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported |
-| workbench/contrib/webview | workbench contribution | M17 | verified | | webviewElement.ts host protocol, theme variables, focus handoff, local resource loading, http frames (webview.rs); resources of extension file system providers through the file service: `cargo test -p app maps_resource_urls_to_resources_inside_the_roots webview_resource_reads_answer_with_the_file_service_bytes reads_resource_roots_and_stable_origins`; find widget (Cmd+F, Enter, Escape) in the host page; Open Webview Developer Tools (Web Inspector), Reload Webviews; `FIXTURE=webview-tests port/tools/webview-check` 8/8 (provider resources inside and outside the roots); api-tests `MOCHA_GREP="vscode API - webview"` 1 passing; ui-pair markdown-preview.json find shots (port/results/webviews.md); Open Webview Developer Tools opens a Web Inspector window per webview: ui-pair `webview-devtools.json` `windows` step lists "Web Inspector — …index.html" (upstream docks the workbench's Chromium devtools) |
+| workbench/contrib/webview | workbench contribution | M17 | ported | [3 S] webview.rs: the frame's `did-context-menu` shows no `webview/context` menu (webviewElement.ts:286) | webviewElement.ts host protocol, theme variables, focus handoff, local resource loading, http frames (webview.rs); resources of extension file system providers through the file service: `cargo test -p app maps_resource_urls_to_resources_inside_the_roots webview_resource_reads_answer_with_the_file_service_bytes reads_resource_roots_and_stable_origins`; find widget (Cmd+F, Enter, Escape) in the host page; Open Webview Developer Tools (Web Inspector), Reload Webviews; `FIXTURE=webview-tests port/tools/webview-check` 8/8 (provider resources inside and outside the roots); api-tests `MOCHA_GREP="vscode API - webview"` 1 passing; ui-pair markdown-preview.json find shots (port/results/webviews.md); Open Webview Developer Tools opens a Web Inspector window per webview: ui-pair `webview-devtools.json` `windows` step lists "Web Inspector — …index.html" (upstream docks the workbench's Chromium devtools) |
| workbench/contrib/webviewPanel | workbench contribution | M17 | verified | | webview panels as editors in groups (workbench/webview_panels.rs), reveal moves to the target group, `activeWebviewPanelId`/`activeCustomEditorId` per group, a focused group focuses its webview; `FIXTURE=webview-tests` and `FIXTURE=markdown-tests port/tools/webview-check`; cargo test -p app webview_panels; panel restore on restart and reload: ui-pair webview-panel-restore.json, cargo test -p app panels_with_a_serializer |
| workbench/contrib/webviewView | workbench contribution | M17 | verified | | `contributes.views` of type webview as contributed views beside the tree views: their container, `when`, pane layout and `<id>.focus`, collapsed at first (viewsExtensionPoint.ts `showCollapsed`), resolved on first show with `onView:` activation (workbench/webview_views.rs); `$setWebviewViewBadge` on the view's container (webviewViewPane.ts `updateBadge`: cargo test -p app a_webview_view_shows_in_its_own_container_while_its_when_holds); `FIXTURE=webview-view-tests port/tools/webview-check` 5/5 on both apps |
| workbench/contrib/welcomeBanner | workbench contribution | M19 | n/a | | shows the web embedder's `welcomeBanner` option; a desktop window has none |
diff --git a/port/results/language-features.md b/port/results/language-features.md
index a7902583d4f..fa44bdac8e1 100644
--- a/port/results/language-features.md
+++ b/port/results/language-features.md
@@ -107,3 +107,5 @@ Differences, fixed after the pairs: the widget sat 8px left (the estimate of whe
Pairs `comment-expanded-pair.png`, `comment-reacted-pair.png`, `comment-editing-pair.png`, `comment-saved-pair.png`. Same: both threads expanded, the edit icon on Ann's comment only, `+1 2` with the reaction picker after it and the picker alone under Bob's, `+1 1` after the toggle, the edit form with the text and the caret at its end and the primary Save button, `(edited)` after Save. Differences, fixed after the pairs: the edit input sat 4px low and used 13px text (the comment editor takes `editor.fontSize`, 12px, as the reply input now does too), the picker was missing. Left: the reference's input is an editor with a scrollbar; the Save button is 3px taller in the port.
Steps `steps-comment-commands.json`: Go to Line 3, Add Comment on Current Selection, Escape, Toggle Editor Commenting. Pairs `comment-add-pair.png` and `comment-toggled-pair.png`: the template thread "Start discussion" with the trash action and the reply input focused with "Type a new comment" (fixed: the port showed the collapsed button, as it revealed only templates already expanded), then no glyphs, ranges, threads or reserved gutter after the toggle. Escape keeps the new template open in both since milestone 20 (`steps-comment-escape-f1-palette.json`: the reference releases the hold mode, F1 after Escape opens the palette; `steps-comment-escape-typed.json`: it shows no unsubmitted-comment confirmation with text typed, so its collapse is not reached; port/notes.md). The `+` glyph on hover is checked by cargo test only: ui-pair's pointer moves did not reach the port's gutter rows.
+
+The proposed comment menus, with the fixture's `Insert Note` (`comments/comment/editorActions`), `Copy Thread Link` (`comments/commentThread/title/context`) and `Copy Comment Link` (`comments/commentThread/comment/context`), `FOLDER=<repo>/port/fixtures/language-features FILE=a.ts ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/comments` (absolute paths). Steps `steps-comment-menus.json`: Expand All Comments, right-click Ann's comment, Escape, right-click the thread head, Escape, click Ann's edit action. Shots `comment-context`, `title-context`, `editing`: the two context menus with their one item at the pointer, and Insert Note as a secondary button left of Save, match. Differences, fixed after the pair: the comment form buttons had no border (button.ts draws `button.border` and `button.secondaryBorder`, 1px), and the edit form's buttons sat 12px left (review.css keeps the 12px right margin on `.edit-textarea` only). Left: with the comment in edit, its reactions row sits about 3px left of the reference's (ledger).