Skip to content

Visual Studio Code, rebuilt in Rust

Rust

feat(multiDiffEditor): float the multiDiffEditor/content toolbar

rokartur3e0c2356ab5a
diff --git a/native/crates/app/src/menus.rs b/native/crates/app/src/menus.rs
index 430f9be69b3..61eac08bf33 100644
--- a/native/crates/app/src/menus.rs
+++ b/native/crates/app/src/menus.rs
@@ -113,6 +113,8 @@ pub enum MenuId {
DiffEditorSelectionToolbar,
/// `MenuId.MultiDiffEditorFileToolbar`: a multi diff editor file header's toolbar.
MultiDiffEditorFileToolbar,
+ /// `MenuId.MultiDiffEditorContent`: the floating toolbar over the multi diff editor.
+ MultiDiffEditorContent,
/// `MenuId.MergeInputResultToolbar`: the merge editor result's title toolbar.
MergeInputResultToolbar,
EditorTitle,
@@ -1011,6 +1013,7 @@ const API_MENUS: &[(&str, MenuId)] = &[
("scm/change/title", MenuId::ScmChangeContext),
("diffEditor/gutter/hunk", MenuId::DiffEditorHunkToolbar),
("diffEditor/gutter/selection", MenuId::DiffEditorSelectionToolbar),
+ ("multiDiffEditor/content", MenuId::MultiDiffEditorContent),
("multiDiffEditor/resource/title", MenuId::MultiDiffEditorFileToolbar),
("editor/title", MenuId::EditorTitle),
("editor/title/run", MenuId::EditorTitleRun),
@@ -1160,7 +1163,7 @@ pub fn extension_menus(extensions: &[ScannedExtension]) -> Vec<MenuItem> {
let api_menu = API_MENUS.iter().find(|(api_key, _)| api_key == key).map(|(_, menu)| *menu);
// menusExtensionPoint.ts: the `proposed` menus need their API proposal.
let proposal = match key.as_str() {
- "editor/content" => Some("contribEditorContentMenu"),
+ "editor/content" | "multiDiffEditor/content" => Some("contribEditorContentMenu"),
"debug/createConfiguration" => Some("contribDebugCreateConfiguration"),
"commentsView/commentThread/context" => Some("contribCommentsViewThreadMenus"),
"comments/comment/editorActions" => Some("contribCommentEditorActionsMenu"),
diff --git a/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs b/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs
index 755bf110f3e..dfee4903a09 100644
--- a/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs
+++ b/native/crates/app/src/workbench/editor_view/multi_diff_editor_view.rs
@@ -1217,6 +1217,11 @@ impl Workbench {
let widgets = self.floating_comment_widgets(&side.host, side.content_left, window, cx);
div().absolute().top(px(side.top - scroll_top)).left(px(side.left)).w(px(side.content_left + side.host.viewport.width)).h(px(side.host.viewport.height)).children(widgets)
}).collect();
+ let resource = match &input.source {
+ Some(source) => crate::editor::uri_value(&source.scheme, &source.path),
+ None => self.editors.active_tab().expect("drawn for the active tab").document().uri(),
+ };
+ let content_menu = self.multi_diff_floating_menu(&toolbar_context, resource, window, cx);
div()
.id("multi-diff-editor")
.flex_1()
@@ -1243,6 +1248,7 @@ impl Workbench {
.children(floating)
.children(headers)
.children(lines)
+ .children(content_menu)
}
/// A file's editor metrics: line numbers as wide as the longer side's last number.
diff --git a/native/crates/app/src/workbench/editor_view/multi_diff_editor_view/tests.rs b/native/crates/app/src/workbench/editor_view/multi_diff_editor_view/tests.rs
index b36486f8833..e5d91f67924 100644
--- a/native/crates/app/src/workbench/editor_view/multi_diff_editor_view/tests.rs
+++ b/native/crates/app/src/workbench/editor_view/multi_diff_editor_view/tests.rs
@@ -359,6 +359,32 @@ fn revert_block_in_a_file_reverts_its_change(cx: &mut TestAppContext) {
std::fs::remove_dir_all(dir).unwrap();
}
+/// multiDiffEditor.ts `MultiDiffEditorContentMenuOverlay`: the `multiDiffEditor/content` toolbar floats over the diffs
+/// while the menu has actions.
+#[gpui::test]
+fn the_content_menu_floats_over_the_diffs(cx: &mut TestAppContext) {
+ let (dir, workbench, _receiver, cx) = workbench_in("multi-diff-content-menu", cx);
+ let (a, b) = (file_uri(&dir.join("a.txt")), file_uri(&dir.join("b.txt")));
+ let options = json!({ "title": "Changes", "resources": [{ "originalUri": a, "modifiedUri": b }] });
+ workbench.update_in(cx, |workbench, window, cx| drop(workbench.execute_command("_workbench.openMultiDiffEditor", vec![options], window, cx)));
+ let draw = |cx: &mut VisualTestContext| {
+ cx.update(|window, _| window.refresh());
+ cx.run_until_parked();
+ };
+ draw(cx);
+ assert!(cx.debug_bounds("multi-diff-floating-menu").is_none(), "no actions, no toolbar");
+ workbench.update(cx, |workbench, _| {
+ let entry = crate::menus::Entry::Command { id: "port.keep".into(), precondition: None, toggled: None, alt: None };
+ workbench.menus.push(crate::menus::MenuItem { menu: crate::menus::MenuId::MultiDiffEditorContent, entry, title: "Keep".into(), group: "navigation".into(), order: 0., when: None });
+ });
+ draw(cx);
+ let menu = cx.debug_bounds("multi-diff-floating-menu").expect("the content menu floats over the diffs");
+ let window = cx.update(|window, _| window.viewport_size());
+ assert_eq!(f32::from(menu.size.height), 28.);
+ assert!(f32::from(window.width - menu.right()) >= 28., "28px from the diffs' right edge");
+ std::fs::remove_dir_all(dir).unwrap();
+}
+
/// A read-only modified side has no Revert Block, so no gutter, and the original keeps half the width.
#[gpui::test]
fn a_read_only_file_has_no_gutter(cx: &mut TestAppContext) {
diff --git a/native/crates/app/src/workbench/floating_menu.rs b/native/crates/app/src/workbench/floating_menu.rs
index 6bbf31a7505..eff1887b00a 100644
--- a/native/crates/app/src/workbench/floating_menu.rs
+++ b/native/crates/app/src/workbench/floating_menu.rs
@@ -1,6 +1,9 @@
-//! floatingMenu.ts `FloatingEditorToolbar` and floatingMenu.css: the primary actions of `MenuId.EditorContent` at
-//! the editor's `BOTTOM_RIGHT_CORNER`, run with the model's URI. One action draws as `.single-button`, more as a
-//! toolbar whose first action is the primary one.
+//! floatingMenu.ts `FloatingEditorToolbarWidget` and floatingMenu.css: the primary actions of `MenuId.EditorContent`
+//! at the editor's `BOTTOM_RIGHT_CORNER` and of `MenuId.MultiDiffEditorContent` over the multi diff editor, run with
+//! the model's or the input's URI. One action draws as `.single-button`, more as a toolbar whose first action is the
+//! primary one.
+
+use std::collections::HashMap;
use gpui::{AnyElement, BoxShadow, ClickEvent, Context, Div, InteractiveElement, IntoElement, ParentElement, StatefulInteractiveElement, Styled, Window, div, point, prelude::FluentBuilder, px, rgba};
@@ -27,19 +30,31 @@ impl Workbench {
/// horizontal scrollbar; the widget is 28px high with one action, 26px with more.
pub(super) fn floating_menu(&self, editor: &OpenEditor, height: f32, minimap_width: f32, window: &Window, cx: &mut Context<Self>) -> Option<AnyElement> {
let actions = self.floating_menu_actions(editor, window);
+ let widget_height = if actions.len() == 1 { 28. } else { 26. };
+ let widget = self.floating_toolbar("floating-menu", actions, editor.document().uri(), window, cx)?;
+ Some(widget.right(px(2. * VERTICAL_SCROLLBAR_WIDTH + minimap_width)).top(px(height - widget_height - 2. * HORIZONTAL_SCROLLBAR_HEIGHT)).into_any_element())
+ }
+
+ /// multiDiffEditor.ts `MultiDiffEditorContentMenuOverlay` over the diffs' root, shown while the menu has actions;
+ /// style.css `.multi-diff-root-floating-menu`: 28px from the right (`spacing-size280`), 24px from the bottom.
+ pub(super) fn multi_diff_floating_menu(&self, context: &HashMap<String, serde_json::Value>, resource: serde_json::Value, window: &Window, cx: &mut Context<Self>) -> Option<AnyElement> {
+ let actions = self.content_menu_actions(MenuId::MultiDiffEditorContent, context);
+ let widget = self.floating_toolbar("multi-diff-floating-menu", actions, resource, window, cx)?;
+ Some(widget.right(px(28.)).bottom(px(24.)).into_any_element())
+ }
+
+ /// The absolutely placed toolbar of `actions`, none without actions; the caller places it.
+ fn floating_toolbar(&self, id: &'static str, actions: Vec<FloatingAction>, resource: serde_json::Value, window: &Window, cx: &mut Context<Self>) -> Option<gpui::Stateful<Div>> {
if actions.is_empty() {
return None;
}
let single = actions.len() == 1;
let widget_height = if single { 28. } else { 26. };
- let resource = editor.document().uri();
let context = self.key_context(window);
let mut widget = div()
- .id("floating-menu")
- .debug_selector(|| "floating-menu".into())
+ .id(id)
+ .debug_selector(move || id.into())
.absolute()
- .right(px(2. * VERTICAL_SCROLLBAR_WIDTH + minimap_width))
- .top(px(height - widget_height - 2. * HORIZONTAL_SCROLLBAR_HEIGHT))
.h(px(widget_height))
.flex()
.items_center()
@@ -59,7 +74,7 @@ impl Workbench {
let keybinding = self.keybindings.resolver.lookup_primary_keybinding(&action.command, &context).map(|item| keybindings::label(&item.keybinding));
widget = widget.child(self.floating_menu_action(action, keybinding, index, single, high_contrast, resource.clone(), cx));
}
- Some(widget.into_any_element())
+ Some(widget)
}
/// Define Keybinding over the user keybindings.json (its `when` is the profile's keybindings resource), then the
@@ -73,7 +88,14 @@ impl Workbench {
if !self.menus.iter().any(|item| item.menu == MenuId::EditorContent) {
return actions;
}
- for action in menu_actions(&self.menus, MenuId::EditorContent, &self.key_context(window)) {
+ actions.extend(self.content_menu_actions(MenuId::EditorContent, &self.key_context(window)));
+ actions
+ }
+
+ /// `getActionBarActions(...).primary` of `menu` without separators and submenus.
+ fn content_menu_actions(&self, menu: MenuId, context: &HashMap<String, serde_json::Value>) -> Vec<FloatingAction> {
+ let mut actions = Vec::new();
+ for action in menu_actions(&self.menus, menu, context) {
if let MenuAction::Command { id, title, enabled, .. } = action {
actions.push(FloatingAction { command: id, title, enabled });
}
diff --git a/port/fixtures/extensions/menus/extension.js b/port/fixtures/extensions/menus/extension.js
index 392378957a0..132d103d6aa 100644
--- a/port/fixtures/extensions/menus/extension.js
+++ b/port/fixtures/extensions/menus/extension.js
@@ -4,6 +4,11 @@ const COMPLETIONS = ['port inline one', 'port inline two'];
exports.activate = function (context) {
context.subscriptions.push(vscode.commands.registerCommand('port.menus.inlineAction', () => {}));
+ context.subscriptions.push(vscode.commands.registerCommand('port.menus.openMultiDiff', () => {
+ const root = vscode.workspace.workspaceFolders[0].uri;
+ const pair = (original, modified) => ({ originalUri: vscode.Uri.joinPath(root, original), modifiedUri: vscode.Uri.joinPath(root, modified) });
+ return vscode.commands.executeCommand('_workbench.openMultiDiffEditor', { multiDiffSourceUri: vscode.Uri.parse('port-menus:/changes'), title: 'Port Changes', resources: [pair('notes.txt', 'README.md')] });
+ }));
context.subscriptions.push(vscode.languages.registerInlineCompletionItemProvider({ language: 'plaintext' }, {
provideInlineCompletionItems(document, position) {
const typed = document.lineAt(position.line).text.slice(0, position.character);
diff --git a/port/fixtures/extensions/menus/package.json b/port/fixtures/extensions/menus/package.json
index 1f1abd16f73..6ccc96256ac 100644
--- a/port/fixtures/extensions/menus/package.json
+++ b/port/fixtures/extensions/menus/package.json
@@ -15,7 +15,8 @@
"contribMergeEditorMenus",
"contribTitleBar",
"inlineCompletionsAdditions",
- "contribDiffEditorGutterToolBarMenus"
+ "contribDiffEditorGutterToolBarMenus",
+ "contribEditorContentMenu"
],
"contributes": {
"commands": [
@@ -78,6 +79,18 @@
"command": "port.menus.stageSelection",
"title": "Port Stage Selection",
"icon": "$(add)"
+ },
+ {
+ "command": "port.menus.openMultiDiff",
+ "title": "Port Open Multi Diff"
+ },
+ {
+ "command": "port.menus.keepAll",
+ "title": "Port Keep All"
+ },
+ {
+ "command": "port.menus.undoAll",
+ "title": "Port Undo All"
}
],
"menus": {
@@ -145,6 +158,16 @@
"group": "primary@10"
}
],
+ "multiDiffEditor/content": [
+ {
+ "command": "port.menus.keepAll",
+ "group": "navigation@1"
+ },
+ {
+ "command": "port.menus.undoAll",
+ "group": "navigation@2"
+ }
+ ],
"mergeEditor/result/title": [
{
"command": "port.menus.mergeApply",
diff --git a/port/fixtures/ui-pair/menus/multi-diff-content.json b/port/fixtures/ui-pair/menus/multi-diff-content.json
new file mode 100644
index 00000000000..145876a2157
--- /dev/null
+++ b/port/fixtures/ui-pair/menus/multi-diff-content.json
@@ -0,0 +1,11 @@
+[
+ { "wait": 8000 },
+ { "click": [600, 200], "foreground": true },
+ { "hotkey": ["cmd", "shift", "p"] },
+ { "wait": 600 },
+ { "type": "port open multi diff" },
+ { "wait": 800 },
+ { "key": "return" },
+ { "wait": 3000 },
+ { "shot": "content" }
+]
diff --git a/port/ledger.md b/port/ledger.md
index e42c45eb987..dd90f8e89ff 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -512,7 +512,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston
| workbench/contrib/mergeEditor | workbench contribution | M14 | ported | [3 S] merge_editor_view.rs `merge_result_toolbar`: the result title's "..." draws no `toolbar.activeBackground` while its menu is open (ui-pair menus/merge-result-title.json shot `more`) <br> [3 S] merge_editor_view.rs `merge_result_title`: "1 Conflict Remaining" draws about 15% wider than the reference's (shot `merge`) <br> [3 S] the merge editor's tab "Merging: a.txt" lacks the reference's conflict decoration (red label and "!"), its breadcrumbs lack the reference's "Text Editor" switch at the right, and the status bar shows UTF-8 where the reference shows none (shot `merge`) <br> [3 S] merge_editor_view.rs `merge_input_pane`: the inputs' titles lack the reference's "·" between the commit and the description and sit 3px higher (shot `merge`) <br> [3 S] merge_editor.rs: opened from git's Resolve in Merge Editor the result's cursor is on line 4, the reference's on the first conflict's line 1 (status Ln 1, Col 1; shot `merge`) | 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; the result title's `mergeEditor/result/title` toolbar (Reset sorted among the contributed `primary` items, the other groups behind "..."): ui-pair menus/merge-result-title.json, `FOLDER` a repository mid-merge with a conflicted `a.txt`, `FILE=a.txt`, `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus` |
| 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 | 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/multiDiffEditor | workbench contribution | M14 | ported | [3 S] floating_menu.rs `multi_diff_floating_menu`: the `multiDiffEditor/content` toolbar sits 2pt lower than the reference's (ui-pair port/fixtures/ui-pair/menus/multi-diff-content.json) | the `multiDiffEditor/content` toolbar floating over the diffs while the menu has actions, run with the input's resource (multiDiffEditor.ts `MultiDiffEditorContentMenuOverlay`): cargo test -p app the_content_menu_floats_over_the_diffs, ui-pair port/fixtures/ui-pair/menus/multi-diff-content.json with `FILE=notes.txt` and the menus fixture extension: same buttons and size as the reference; 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 |