Visual Studio Code, rebuilt in Rust
Rust
feat(extensions): Manage menu lists every enablement, version and uninstall action
rokartur3a086aee3ec5
diff --git a/README.md b/README.mdindex efbcbafed91..c5b34bbbbab 100644--- a/README.md+++ b/README.md@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (586 rows). V```mermaidpie showData- "verified" : 413- "ported" : 19+ "verified" : 414+ "ported" : 18"removed" : 126"n/a" : 28```@@ -23,7 +23,7 @@ pie showData| src/vs/platform | 69 | 0 | 30 | 13 | `████████████████████ 100%` || built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` || MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |-| workbench service | 61 | 4 | 23 | 7 | `███████████████████░ 94%` |+| workbench service | 62 | 3 | 23 | 7 | `███████████████████░ 95%` || src/vs/editor/contrib | 53 | 1 | 2 | 1 | `████████████████████ 98%` || workbench part | 9 | 2 | 2 | 0 | `████████████████░░░░ 82%` || extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` |@@ -31,7 +31,7 @@ pie showData| src/vs/editor | 0 | 2 | 1 | 1 | `░░░░░░░░░░░░░░░░░░░░ 0%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |-| **all** | **413** | **19** | **126** | **28** | `███████████████████░ 96%` |+| **all** | **414** | **18** | **126** | **28** | `███████████████████░ 96%` |<!-- coverage:end -->`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.diff --git a/native/crates/app/src/workbench/extensions_list_view.rs b/native/crates/app/src/workbench/extensions_list_view.rsindex 7dcf9b56614..407be25e390 100644--- a/native/crates/app/src/workbench/extensions_list_view.rs+++ b/native/crates/app/src/workbench/extensions_list_view.rs@@ -241,7 +241,9 @@ impl Workbench {true => (self.color("list.activeSelectionBackground"), self.theme.color("list.activeSelectionForeground")),false => (self.color("list.inactiveSelectionBackground"), self.theme.color("list.inactiveSelectionForeground")),};- let focus_outline = self.theme.color("list.focusOutline").or(self.theme.color("focusBorder")).filter(|_| list_focused && is_focused);+ // `.context-menu-visible .monaco-list.last-focused`: the list's context menu keeps the focused row outlined.+ let outlined = list_focused || self.context_menu.as_ref().is_some_and(|menu| menu.focus_to_return.as_ref() == Some(&self.extensions_viewlet.list_focus));+ let focus_outline = self.theme.color("list.focusOutline").or(self.theme.color("focusBorder")).filter(|_| outlined && is_focused);let disabled = extension.state == ExtensionState::Installed && !extension.enablement.is_enabled();let description_color = if is_selected || self.theme.kind.is_high_contrast() { None } else { Some(self.color("descriptionForeground")) };let mut header = div().h(px(20.)).flex().items_center().pr(px(10.)).overflow_hidden().child(@@ -571,29 +573,28 @@ impl Workbench {let mut update = Vec::new();let mut install = menu(&|group| group == INSTALL_ACTIONS_GROUP);if installed {- let disabled = !extension.enablement.is_enabled();- let mut enable = Vec::new();- let mut disable = Vec::new();- if !extension.is_language_pack() {- if disabled {- enable.push(command("extensions.enableGlobally", "Enable"));- if has_workspace {- enable.push(command("extensions.enableForWorkspace", "Enable (Workspace)"));- }- } else {- disable.push(command("extensions.disableGlobally", "Disable"));- if has_workspace {- disable.push(command("extensions.disableForWorkspace", "Disable (Workspace)"));- }- }- }- groups.push(enable);- groups.push(disable);+ // extensionsActions.ts `ManageExtensionAction.getActionGroups`: the enablement, Install Specific Version and+ // Uninstall actions always show, disabled where their `update()` disables them.+ let identifier = extension.identifier();+ let can_change = self.can_change_enablement(&identifier.id);+ let can_change_workspace = can_change && has_workspace;+ let user_enabled = matches!(extension.enablement, EnablementState::EnabledGlobally | EnablementState::EnabledWorkspace);+ let action = |id: &str, title: &str, enabled: bool| MenuAction::Command { id: id.into(), title: title.into(), enabled, checked: false, alt: None };+ groups.push(vec![+ action("extensions.enableGlobally", "Enable", self.is_disabled_globally(&identifier) && can_change),+ action("extensions.enableForWorkspace", "Enable (Workspace)", !extension.enablement.is_enabled() && can_change_workspace),+ ]);+ groups.push(vec![+ action("extensions.disableGlobally", "Disable", extension.running && user_enabled && can_change),+ action("extensions.disableForWorkspace", "Disable (Workspace)", extension.running && has_workspace && user_enabled && can_change_workspace),+ ]);if !extension.is_builtin() {let checked = self.is_auto_update_enabled_for(extension);update.push(MenuAction::Command { id: "workbench.extensions.action.toggleAutoUpdateForExtension".into(), title: "Auto Update".into(), enabled: true, checked, alt: None });- install.push(command("extensions.uninstall", "Uninstall"));}+ // shortcut: Install Specific Version... stays disabled until the gallery's `getAllCompatibleVersions` and its version pick are ported.+ install.push(action("workbench.extensions.action.install.anotherVersion", "Install Specific Version...", false));+ install.push(action("extensions.uninstall", "Uninstall", !extension.is_builtin()));} else if extension.state == ExtensionState::Uninstalled && gallery {install.insert(0, command("extensions.install", "Install"));}diff --git a/native/crates/app/src/workbench/extensions_list_view/tests.rs b/native/crates/app/src/workbench/extensions_list_view/tests.rsindex 1138e83d77d..26322e52dde 100644--- a/native/crates/app/src/workbench/extensions_list_view/tests.rs+++ b/native/crates/app/src/workbench/extensions_list_view/tests.rs@@ -54,12 +54,22 @@ fn the_manage_menu_lists_the_extension_context_menu(cx: &mut TestAppContext) {running: true,restart_required: false,};- workbench.update(cx, |workbench, _| workbench.menus.extend(crate::menus::extension_menus(&[contributor])));- let actions = workbench.update_in(cx, |workbench, window, _| workbench.manage_extension_actions(&configured, window));- let titles: Vec<&str> = actions.iter().map(|action| match action {- MenuAction::Command { title, .. } => title.as_str(),- MenuAction::Separator => "---",- MenuAction::Submenu { title, .. } => title.as_str(),- }).collect();- assert_eq!(titles, ["Disable", "---", "Auto Update", "---", "Uninstall", "---", "Copy", "Copy Extension ID", "---", "Settings", "---", "Report Extension"]);+ let builtin = Extension { local: Some(ScannedExtension { id: "vscode.emmet".into(), location: app_root.clone(), description: json!({ "isBuiltin": true }) }), ..configured.clone() };+ workbench.update(cx, |workbench, _| {+ workbench.menus.extend(crate::menus::extension_menus(&[contributor]));+ workbench.extensions_viewlet.installed = vec![configured.local.clone().unwrap(), builtin.local.clone().unwrap()];+ });+ let mut menu = |extension: &Extension| {+ let actions = workbench.update_in(cx, |workbench, window, _| workbench.manage_extension_actions(extension, window));+ actions.iter().map(|action| match action {+ MenuAction::Command { title, enabled: true, .. } => title.clone(),+ MenuAction::Command { title, enabled: false, .. } => format!("{title} (disabled)"),+ MenuAction::Separator => "---".into(),+ MenuAction::Submenu { title, .. } => title.clone(),+ }).collect::<Vec<_>>()+ };+ let enablement = ["Enable (disabled)", "Enable (Workspace) (disabled)", "---", "Disable", "Disable (Workspace) (disabled)", "---"];+ let context = ["---", "Copy", "Copy Extension ID", "---", "Settings"];+ assert_eq!(menu(&configured), [&enablement[..], &["Auto Update", "---", "Install Specific Version... (disabled)", "Uninstall"], &context[..], &["---", "Report Extension"]].concat());+ assert_eq!(menu(&builtin), [&enablement[..], &["Install Specific Version... (disabled)", "Uninstall (disabled)", "---", "Copy", "Copy Extension ID"]].concat());}diff --git a/native/crates/app/src/workbench/extensions_view.rs b/native/crates/app/src/workbench/extensions_view.rsindex 886772e7099..2102cc8baa3 100644--- a/native/crates/app/src/workbench/extensions_view.rs+++ b/native/crates/app/src/workbench/extensions_view.rs@@ -388,6 +388,12 @@ impl Workbench {enablement.cannot_change(&inputs, index).is_none()}+ /// `isDisabledGlobally`: the profile's disabled list names the extension, whatever the workspace says.+ pub(crate) fn is_disabled_globally(&self, identifier: &crate::extension_enablement::Identifier) -> bool {+ let mut profile = self.profile_storage.lock().unwrap();+ Enablement { profile: &mut profile, workspace: None }.is_disabled_globally(identifier)+ }+/// A gallery result as the view shows it: the installed copy's state when it is installed.fn gallery_extension(&self, gallery: &GalleryExtension, local: &[Extension]) -> Extension {let lower = gallery.id.to_lowercase();diff --git a/port/ledger.md b/port/ledger.mdindex ef0e5d007d0..967eba91de1 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -365,7 +365,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/parts/views | workbench part | M11 | verified | | Explorer views as panes (view_panes.rs): collapse by mouse and keys, sashes, header drag to reorder with drop overlay, state in workbench.explorer.views.state; no view actions, view menus or hidden views; cargo test -p app view_panes, ui-pair port/results/layout.md; pane headers drawn statically (workbench.rs section_header): no collapse, resize or view actions; verified: ui-pair port/results/references-view.md and every pair of port/results/windows.md (milestone 11 verification): the Explorer panes and contributed views as the reference; Explorer and Source Control views as panes of a ViewPaneContainer (view_panes.rs `PaneContainer`): collapse by mouse and keys, sashes, header drag to reorder with drop overlay, single view merged into the container, header actions, state in the container's storageId; cargo test -p app view_panes scm_container, ui-pair port/results/layout.md and port/fixtures/ui-pair/m11/scm-panes.json (port/notes.md View panes); verified: ui-pair port/results/references-view.md and every pair of port/results/windows.md (milestone 11 verification): the Explorer panes and contributed views as the reference; Run and Debug, Extensions and webview containers still draw section_header rows: no collapse, resize or view actions; welcome buttons draw their `$(icon)`s (cargo test -p app a_welcome_button_draws_its_label_icons; ui-pair port/fixtures/ui-pair/icons/scm-welcome.json: github's Publish to GitHub button with the github codicon as the reference); wrapped text stacks unsnapped 18.2px lines as Chromium (vendor gpui elements/text.rs; cargo test -p app wrapped_lines_keep_their_fractional_line_height): scm-welcome's Publish button 0.5pt from the reference, was 2.5pt; left: the port wraps "Git" of "To learn more about how to use Git" to the next line; a merged view's "..." puts the Views submenu, a separator and the view's own actions (panecomposite.ts `getSecondaryActions`; cargo test -p app a_merged_changes_view_shows_the_views_submenu_in_its_more_actions a_merged_view_without_actions_lists_the_view_toggles_flat) || workbench/services/accessibility | workbench service | M19 | verified | | electron-browser accessibilityService.ts over GPUI: screen reader attach follows Electron's `isAccessibilitySupportEnabled` on macOS (VoiceOver, or an assistive app setting AXManualAccessibility or AXEnhancedUserInterface, as cua-driver does; ui-pair screen-reader-detection.json with accessibility support auto shows the prompt in both), the Screen reader usage detected prompt and status entry; port/tools/a11y-check; cargo test -p app accessib; electron-browser accessibilityService.ts over GPUI: screen reader attach follows is_a11y_active, the Screen reader usage detected prompt and status entry; port/tools/a11y-check; cargo test -p app accessib || workbench/services/accounts | workbench service | | removed | | no sign-in/AI by decision (port/notes.md); not ported |-| workbench/services/actions | workbench service | M9 | ported | [3 L] contributes.menus: 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/actions | workbench service | M9 | verified | | contributes.menus ids of menusExtensionPoint.ts still unmapped wait on their views' menus, each a gap on its view's row (testing, webview, modal editor, inline completions, diff and multi diff editors, notebook, comments, title bar); 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 |@@ -482,7 +482,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/emergencyAlert | workbench contribution | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert || workbench/contrib/emmet | workbench contribution | M13 | verified | | workbench/emmet.rs: Emmet: Expand Abbreviation (`emmet.expandAbbreviation` with the language at the cursor and the emmet parent mode of its grammar's scope, emmetAction.test.ts cases), Tab with `emmet.triggerExpansionOnTab`, the Edit menu entry: cargo test -p app emmet menubar || workbench/contrib/encryption | workbench contribution | M10 | n/a | | encryption.contribution.ts only migrates Linux `password-store` argv values to gnome-libsecret; the port runs on macOS and keeps secrets in the Keychain |-| workbench/contrib/extensions | workbench contribution | M18 | ported | [3 S] extensions_list_view.rs `manage_extension_actions`: for a built-in extension (ui-pair `menus/extension-context.json`, `@builtin emmet`) the reference lists Enable, Enable (Workspace), Install Specific Version... and Uninstall disabled where the port leaves them out, and the right-clicked row gets no focus outline in the port <br> [3 M] extensions.contribution.ts: of the `MenuId.ExtensionContext` items the port has Copy, Copy Extension ID, Copy Link, Settings and Keyboard Shortcuts; the theme, pre-release, install, download, account, profile, sync and recommendation items wait for their commands, and the keys they read (`isExtensionRecommended`, `extensionHasColorThemes`, `isExtensionAllowed`, ...) are not set | Extensions view as view panes (cargo test -p app the_views_are_panes; ui-pair port/fixtures/extensions/ui-view.json), queries, details editor, enablement, updates, badge, Help: Start/Continue/Stop Extension Bisect (services/extensionManagement/browser/extensionBisect.ts: state in the application storage across reloads, bisect-disabled extensions as DisabledByEnvironment in the window and out of the host, the urgent sticky prompt, the default-checked Keep this extension disabled; Report Issue & Continue is out with the removed contrib/issue): cargo test -p app extension_bisect, bisect_finds_the_extension_and_keeps_it_disabled; cargo test -p app extension (extensionsViews.test.ts, extensionQuery.test.ts, extensionEnablementService.test.ts cases); Features tab tables and markdown of extensionFeaturesTab.ts and the registered renderers: cargo test -p app extension_features; Runtime Status Uncaught Errors from `$onExtensionRuntimeError` and Messages: cargo test -p app the_runtime_status_lists_uncaught_errors_and_messages, invalid_contributed, static_entries_need_the_proposal, group_needs_the_proposal, debuggers_merge_by_type_and_keep_the_built_in_values, skipped_menu_contributions_are_extension_messages, contributed_command_messages, invalid_views_and_view_containers_are_extension_messages, invalid_configuration_is_an_extension_message, invalid_json_validation_is_an_extension_message, invalid_colors_and_icons_are_extension_messages, invalid_semantic_token_contributions_are_extension_messages, invalid_problem_patterns_and_matchers_are_extension_messages, invalid_grammars_are_extension_messages, invalid_notebook_contributions_are_extension_messages (the authentication point is out with the removed services/authentication); ui-pair port/fixtures/extensions/ui-view.json (view, search, details) against the reference |+| workbench/contrib/extensions | workbench contribution | M18 | ported | [3 M] extensions_list_view.rs `manage_extension_actions`: Install Specific Version... (extensionsActions.ts `InstallAnotherVersionAction`) stays disabled, the gallery's `getAllCompatibleVersions` and the version pick are not ported <br> [3 S] extensions_list_view.rs `extension_row`: no activation time (`ActivationTimeWidget`, the reference shows `33ms` on `@builtin emmet` in ui-pair `menus/extension-context.json`), and the name sits about 4px higher and the description and publisher 2px to 5px lower than the reference's <br> [3 M] extensions.contribution.ts: of the `MenuId.ExtensionContext` items the port has Copy, Copy Extension ID, Copy Link, Settings and Keyboard Shortcuts; the theme, pre-release, install, download, account, profile, sync and recommendation items wait for their commands, and the keys they read (`isExtensionRecommended`, `extensionHasColorThemes`, `isExtensionAllowed`, ...) are not set | Manage menu after extensionsActions.ts `ManageExtensionAction.getActionGroups`: Enable, Enable (Workspace), Disable, Disable (Workspace), Install Specific Version... and Uninstall always listed, disabled by their `update()` rules, and the right-clicked row keeps its focus outline while the menu is open (cargo test -p app the_manage_menu_lists_the_extension_context_menu; ui-pair `menus/extension-context.json` with an absolute `ARGS=--extensionDevelopmentPath=<repo>/port/fixtures/extensions/menus`: the menu and the outlined row match the reference); Extensions view as view panes (cargo test -p app the_views_are_panes; ui-pair port/fixtures/extensions/ui-view.json), queries, details editor, enablement, updates, badge, Help: Start/Continue/Stop Extension Bisect (services/extensionManagement/browser/extensionBisect.ts: state in the application storage across reloads, bisect-disabled extensions as DisabledByEnvironment in the window and out of the host, the urgent sticky prompt, the default-checked Keep this extension disabled; Report Issue & Continue is out with the removed contrib/issue): cargo test -p app extension_bisect, bisect_finds_the_extension_and_keeps_it_disabled; cargo test -p app extension (extensionsViews.test.ts, extensionQuery.test.ts, extensionEnablementService.test.ts cases); Features tab tables and markdown of extensionFeaturesTab.ts and the registered renderers: cargo test -p app extension_features; Runtime Status Uncaught Errors from `$onExtensionRuntimeError` and Messages: cargo test -p app the_runtime_status_lists_uncaught_errors_and_messages, invalid_contributed, static_entries_need_the_proposal, group_needs_the_proposal, debuggers_merge_by_type_and_keep_the_built_in_values, skipped_menu_contributions_are_extension_messages, contributed_command_messages, invalid_views_and_view_containers_are_extension_messages, invalid_configuration_is_an_extension_message, invalid_json_validation_is_an_extension_message, invalid_colors_and_icons_are_extension_messages, invalid_semantic_token_contributions_are_extension_messages, invalid_problem_patterns_and_matchers_are_extension_messages, invalid_grammars_are_extension_messages, invalid_notebook_contributions_are_extension_messages (the authentication point is out with the removed services/authentication); ui-pair port/fixtures/extensions/ui-view.json (view, search, details) against the reference || workbench/contrib/externalTerminal | workbench contribution | M15 | verified | | workbench/external_terminal.rs: Open New External Terminal (`workbench.action.terminal.openNativeConsole`, cmd+shift+c), with several workspace folders after the Select workspace folder pick (cargo test -p app open_native_console_picks_a_folder_in_a_multi_root_workspace); cargo test -p app external_terminal; ui-pair (port/results/terminal.md) || workbench/contrib/externalUriOpener | workbench contribution | M12 | verified | | workbench/opener.rs: externalUriOpenerService.ts getRequestedOpener (workbench.externalUriOpeners globs), chooseOpener, "How would you like to open: {0}" picker; no Simple Browser (out of scope); verified at port-m12b-verify: cargo test -p app opener 4/4; Simple Browser is out of scope by decision || workbench/contrib/files | workbench contribution | M12 | verified | | virtual workspaces (non-file folders): milestone 25; Cmd+V pastes the files another app copied after explorer.confirmPasteNative (explorerView.ts paste listener, fileActions.ts `pasteFileHandler`: cargo test -p app cmd_v_pastes_the_files_finder_copied); Dragged workspace roots reorder before or after a root by the pointer's half, or to the end, with the list.dropBetweenBackground line (explorerViewer.ts `doHandleRootDrop`: cargo test -p app dragging_a_root_reorders_the_workspace_folders; ui-pair dragShot of a three-root workspace, line over a root and below the rows matches); Compact folders off while optimized for a screen reader (explorerView.ts `isCompressionEnabled`: cargo test -p app compacts_single_child_folders_into_one_row); A workspace root that fails to resolve: the single folder's file item of its own resource, the "!" decoration in `list.invalidItemForeground` with "Unable to resolve workspace folder (...)" (explorerViewer.ts `getChildren`, explorerDecorationsProvider.ts: cargo test -p app a_workspace_root_that_fails_to_resolve_is_decorated_with_its_error; ui-pair of a two-root workspace with a missing folder, row and hover match); a copy soft-reverts the target's dirty model, which shows the copied file (workingCopyFileService.ts `doMoveOrCopy`: cargo test -p app a_copy_onto_a_dirty_model_reverts_it_to_the_copied_file); An unreadable folder expands to no children without an error (fileService.ts `toFileStat`: cargo test -p app an_unreadable_folder_expands_to_no_children); Explorer tree read from disk (explorer.rs): folders first, default excludes, click to expand, click opens a file as preview, double click pins, selection follows the active editor; Seti file icons and compareFileNamesDefault sort; workspace folders as roots, first five expanded (cargo test -p app); new file and folder, rename, delete, copy, cut, paste, drag and drop and undo through the working copy file operations (cargo test -p app explorer_actions, file_actions); "Do not ask me again" as the NSAlert suppression checkbox (dialog.rs); the context menu with the items whose commands the port has (port/results/contextmenu.md); tree view state in workspace storage (cargo test -p app view_state); file nesting with the explorerFileNestingTrie.test.ts cases (cargo test -p app nest); copyFilePath, copyRelativeFilePath and revealFileInOS (cargo test -p app copy_path, copied_path_labels); compact folders (cargo test -p app compact, get_context, compressed_navigation); Explorer find (cargo test -p app explorer_find find_filters); Finder drops through ExternalFileImport (cargo test -p app files_dropped_from_finder); explorer.sortOrder and sortOrderLexicographicOptions; explorer.autoReveal; list keyboard commands; the view title actions on hover or focus, revealInExplorer, showActiveFileInExplorer and the other file actions (cargo test -p app view_title_and_file_actions); workbench.action.files.newFile and showOpenedFileInNewWindow (cargo test -p app new_file_creates); Add Folder to Workspace and removeRootFolder (workbench/workspace_editing.rs, ui-pair port/fixtures/ui-pair/m12/workspace-folders.json); the compare commands compareFiles, selectForCompare, compareSelected, compareFileWith, compareWithSaved, compareWithClipboard, compareNewUntitledTextFiles (workbench/file_compare.rs: cargo test -p app file_compare); compare with saved by its chord: ui-pair port/fixtures/ui-pair/m12/compare-saved.json (the modified side has its own editor and cursor, at the first change: cargo test -p app file_compare; left the breadcrumbs editor type picker); Find in Folder..., Open in Integrated/External Terminal (cargo test -p app explorer_actions; ui-pair m12/find-in-folder.json and m12/folder-terminal.json), high contrast list outline (icons.json hc matches); rename, delete, new file and drag and drop with its move confirmation: ui-pair m12/explorer-ops.json matches; `<view id>.focus` of the Explorer panes (cargo test -p app focus_view_commands); the editor placeholders: binary, too large, not found and read errors with their actions (cargo test -p app files_that_do_not_resolve; ui-pair m12/editor-placeholders.json matches); the Open Editors view: pane size limits, group rows, unsaved badge, title actions, row close and dirty actions, drag to groups (cargo test -p app open_editors body_limits_clamp; ui-pair m12/open-editors.json); pinned (sticky) editors and scrolling tab bars, sticky shrink tabs in place with the `m…` label (cargo test -p app sticky pinned_editors tab_scroll; ui-pair m12/tab-scroll.json); Explorer indent guides at the reference x, row hover background, decoration badges at 11px 8px from the end, the Unpin Editor hover again after the tab menu closes (cargo test -p app tree_guides hover unpin_hover; ui-pair m12/explorer-guides.json and m12/pinned-tabs.json match). Differences left (port/notes.md milestone 12, session m12-files-done): a long tooltip breaks one path segment earlier (GPUI's line wrapper), the pin action loses its hover style after Cmd+W until the pointer moves (gpui keyboard modality), a shrink sticky tab with a badge and no room for its name; Open With... (`explorer.openWith`, `explorerResourceAvailableEditorIds`: cargo test -p app open_with_opens_the_resource the_context_menu_selects_the_row); Compare Active File With... from a file it opens itself: ui-pair m12/compare.json, the picker, the diff and the README.md menu match (port/notes.md session compare-fix); `explorerResourceReadonly` and `explorerResourceParentReadOnly` from `isReadonly` (cargo test -p app readonly_keys_follow_the_focused_item_and_its_parent); a failed create as an error notification with Retry, a dropped folder added to the workspace (cargo test -p app a_failed_create_offers a_folder_dropped_on_the_root); the Explorer's confirms and prompts through `dialogService` (Electron's message box, or the custom dialog with `window.dialogStyle: custom`: cargo test -p app a_delete_confirmation_follows_the_dialog_style) |