Visual Studio Code, rebuilt in Rust
Rust
feat(workspaces): give a new workspace the window's profile
rokartur45d24eeab0fb
diff --git a/native/crates/app/src/workbench/workspace_editing.rs b/native/crates/app/src/workbench/workspace_editing.rsindex 37a3317cb80..528bc3c877f 100644--- a/native/crates/app/src/workbench/workspace_editing.rs+++ b/native/crates/app/src/workbench/workspace_editing.rs@@ -180,11 +180,14 @@ impl Workbench {let user_data = cx.global::<crate::AppState>().user_data.clone();let result = create_untitled_workspace(&user_data, &folders).and_then(|untitled| match path {Some(path) => {- let saved = self.save_workspace_file_as(&untitled, &path);+ let saved = self.save_workspace_file_as(&untitled, &path, cx);delete_untitled_workspace(&user_data, &untitled);saved.map(|()| path)}- None => Ok(untitled),+ None => {+ self.set_current_profile_for_workspace(&untitled, cx);+ Ok(untitled)+ }});match result {Ok(file) => self.enter_workspace(file, window, cx),@@ -205,12 +208,21 @@ impl Workbench {if !self.is_valid_target_workspace_path(&target, window, cx) {return;}- match self.save_workspace_file_as(¤t, &target) {+ match self.save_workspace_file_as(¤t, &target, cx) {Ok(()) => self.enter_workspace(target, window, cx),Err(error) => self.notify_error(error.to_string()),}}+ /// `setProfileForWorkspace` of a new workspace file when this window runs a profile other than the default.+ fn set_current_profile_for_workspace(&mut self, file: &Path, cx: &mut Context<Self>) {+ let Some(current) = self.user_data_profiles.state.as_ref().map(|state| &state.current).filter(|current| !current.is_default) else { return };+ let (workspace, id) = (storage::profiles::WorkspaceId::Uri(crate::editor_history::file_uri_string(file)), current.id.clone());+ if let Err(error) = self.edit_profiles(cx, |profiles, storage| profiles.set_profile_for_workspace(&workspace, &id, storage)) {+ self.notify_error(error);+ }+ }+/// `saveWorkspace`: the open workspace file saved even when clean, or written again when it was deleted.fn save_workspace(&mut self, file: &Path, cx: &mut Context<Self>) {if self.editors.model("file", file).is_some() {@@ -226,9 +238,12 @@ impl Workbench {}}- /// `saveWorkspaceAs`: the workspace file's text with its folders rewritten for `target`, then the target trusted- /// when this window is (`trustWorkspaceConfiguration`).- fn save_workspace_file_as(&mut self, source: &Path, target: &Path) -> std::io::Result<()> {+ /// `saveWorkspaceAs`: a saved target takes this window's profile, then the workspace file's text with its folders+ /// rewritten for `target`, then the target trusted when this window is (`trustWorkspaceConfiguration`).+ fn save_workspace_file_as(&mut self, source: &Path, target: &Path, cx: &mut Context<Self>) -> std::io::Result<()> {+ if !is_own_untitled_workspace(&cx.global::<crate::AppState>().user_data, target) {+ self.set_current_profile_for_workspace(target, cx);+ }if same_path(source, target) {return Ok(());}@@ -463,7 +478,7 @@ pub(super) async fn save_untitled_before_shutdown(workbench: &WeakEntity<Workben0 => {let Ok(picked) = workbench.update(cx, |workbench, cx| workbench.pick_new_workspace_path(cx)) else { return true };let Ok(Some(target)) = picked.await else { return true };- let saved = workbench.update(cx, |workbench, _| workbench.save_workspace_file_as(&untitled, &target).map(|()| target));+ let saved = workbench.update(cx, |workbench, cx| workbench.save_workspace_file_as(&untitled, &target, cx).map(|()| target));if let Ok(Ok(target)) = saved {let _ = workbench.update(cx, |workbench, _| {let entry = crate::recently_opened::entry(crate::recently_opened::Kind::Workspace, &target, None);diff --git a/native/crates/app/src/workbench/workspace_editing/tests.rs b/native/crates/app/src/workbench/workspace_editing/tests.rsindex 3c9f9fa0bd8..143229c34ee 100644--- a/native/crates/app/src/workbench/workspace_editing/tests.rs+++ b/native/crates/app/src/workbench/workspace_editing/tests.rs@@ -121,3 +121,36 @@ fn adding_a_folder_enters_an_untitled_workspace_in_the_same_window(cx: &mut Testassert!(!untitled.exists(), "entering the saved workspace deletes the untitled one");assert_eq!(cx.update(|_, cx| cx.windows().len()), 1);}++/// abstractWorkspaceEditingService.ts `createAndEnterWorkspace` and `saveWorkspaceAs`: a window on a profile other+/// than the default gives it to the untitled workspace it creates and to the file it saves the workspace as.+#[gpui::test]+fn a_new_workspace_keeps_the_window_profile(cx: &mut TestAppContext) {+ use crate::user_data_profile::UserDataProfilesService;+ let user_data = crate::workbench::user_data_profile::tests::profiles_service(&crate::test_name(), cx);+ let dir = user_data.join("folders");+ std::fs::create_dir_all(dir.join("a")).unwrap();+ cx.update(|cx| {+ let shared_storage = Arc::new(Mutex::new(storage::Storage::in_memory()));+ cx.set_global(crate::AppState { args: Vec::new(), runtime: exthost::Runtime::Bun, user_data: user_data.clone(), app_root: dir.clone(), builtins: Vec::new(), user_extensions_folder: dir.join("extensions"), shared_storage });+ });+ let mut request = crate::WindowRequest::default();+ request.profile.name = Some("Work".into());+ let handle = cx.update(|cx| crate::workbench::user_data_profile::tests::open_window(request, cx));+ let profile_of = |file: &Path, cx: &mut TestAppContext| {+ let workspace = storage::profiles::WorkspaceId::Uri(crate::editor_history::file_uri_string(file));+ cx.read(|cx| cx.global::<UserDataProfilesService>().profiles.profile_for_workspace(&workspace).map(|profile| profile.name.clone()))+ };++ handle.update(cx, |workbench, window, cx| workbench.create_and_enter_workspace(vec![(dir.join("a"), None)], None, window, cx)).unwrap();+ // The folder change restarts the file watcher, whose thread reports to the test scheduler.+ cx.executor().allow_parking();+ cx.run_until_parked();+ let untitled = handle.read_with(cx, |workbench, _| workbench.workspace().unwrap().file.clone().unwrap()).unwrap();+ assert_eq!(profile_of(&untitled, cx).as_deref(), Some("Work"));++ let target = dir.join("saved.code-workspace");+ handle.update(cx, |workbench, window, cx| workbench.save_workspace_as(target.clone(), window, cx)).unwrap();+ cx.run_until_parked();+ assert_eq!(profile_of(&target, cx).as_deref(), Some("Work"));+}diff --git a/port/ledger.md b/port/ledger.mdindex 02fac9f40ab..274d1668d4a 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -458,7 +458,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/services/utilityProcess | workbench service | | verified | | no utility process workers: the file watcher worker, the one kept client, is files/src/watcher.rs on an FSEvents thread (platform/files; api-tests `vscode API - workspace-watcher` passes in the milestone 20 whole-suite run); localTranscription is AI, removed (port/notes.md milestone 20) || workbench/services/views | workbench service | M11 | ported | [3 S] activity_bar_menu.rs:113: an activity item's or tab's context menu lacks Configure Keybinding, Hide/Keep '{name}' and Show/Hide Badge above Move To (compositeBarActions.ts `showContextMenu`; ui-pair contributed-panes.json "item-menu"), and a panel or secondary side bar tab's menu lacks its bar's own actions (panelPart.ts `fillExtraContextMenuActions`); [3 S] panel.rs:189: a composite dropped on another bar goes to that bar's end, not the drop index (compositeBar.ts `getTargetIndex`), one dropped on its own bar does not reorder (`moveComposite`), and the moved container opens without focus (`openComposite(id, true)`; ui-pair contributed-panes.json "moved": the reference puts Port Panes before Terminal and focuses its first pane); [3 S] activity_bar_menu.rs:153: an activity item drags as its title, the reference as its icon; [3 S] side_bar.rs:62: the compact activity bar's tabs have no item menu and no drag; [3 S] view_panes.rs:535: a collapsed pane of a container in the panel draws expanded, the reference as a narrow strip (ui-pair contributed-panes.json "moved", Third); [3 S] panel.rs:553: after a composite drop the tab under the pointer shows its hover, the reference none (contributed-panes.json "moved"); [3 S] keyboard.rs:597: the Extensions views' key context (`inputBoxFocus`, `listFocus`) applies only while they are in the side bar, not in a panel; [3 S] panel.rs:780: a panel or secondary side bar tab of a moved Extensions or Testing container draws no badge (the extensions count, the test results) | view containers of `viewsContainers.activitybar` and `viewsContainers.panel` and the tree views of every container (workbench/view_containers.rs): activity bar items while a view's `when` holds, `workbench.view.extension.<id>` with its "View: Show <title>" Command Palette item while `viewContainer.<id>.enabled` (cargo test -p app an_extension_container_is_shown), a panel container's tab after the built-in ones, its views as side-by-side panes under its "..." and "View: Toggle <title>" (cargo test -p app an_extension_panel_container_is_a_panel_tab), each contributed view's "<container>: Focus on <view> View" palette item (ui-pair port/fixtures/ui-pair/contributed-panes.json "palette" and "panel" match the reference but its Ports tab, removed by decision), `<view id>.focus`, `<view id>.active`, merged single views, view_panes.rs panes for the views of an extension container and of Testing (`PaneContainer::Contributed`: cargo test -p app view_containers::; ui-pair port/fixtures/ui-pair/contributed-panes.json with port/fixtures/extensions/contributed-panes, the Port Panes and Testing side bars as the reference), treeView.ts `noDataProviderMessage` (cargo test -p app tree_view::), contributed views of scm and debug as panes of those containers; the Explorer's ViewDescriptorsState (view_panes.rs); ui-pair port/results/references-view.md; `visibility` (`hidden` views stay out until the Views submenu of the Explorer's "..." shows them, `collapsed`; workbench/view_visibility.rs: cargo test -p app view_visibility); the Explorer container's ViewDescriptorsState (view_panes.rs); moving views (workbench/view_locations.rs, verified): `views.customizations` viewLocations and generated containers `workbench.views.service.<location>.<uuid>` with their activity bar items and panel tabs, View: Move View, Move Focused View, Reset Focused View Location, a view header dropped on another container's pane (at its position), on the activity bar or on a panel's title (a new entry), `focusedView`; the folder view, Open Editors, Outline, Timeline, Source Control's Changes, Search, the debug views and the panel's views move into any built-in container or a new entry and back, the moved view opens focused, the picker lists only visible views, a moved view's hidden state is in its current container's state (cargo test -p app a_moved_view_is_hidden); an activity item's and a tab's context menu with Move To (the other locations) and Reset Location away from the default location or for a lone view at home (paneCompositeBar.ts `getContextMenuActionsForComposite`: cargo test -p app the_explorer_item_menu), an activity item dragged onto the panel or secondary side bar and a tab dropped on the activity bar (compositeBar.ts `CompositeDragAndDrop.drop`: cargo test -p app the_explorer_item_drags; ui-pair contributed-panes.json "moved": Port Panes moves into the panel and opens in both), the Extensions and Testing containers move to the panel and the secondary side bar and back with their views and open commands (cargo test -p app the_extensions_and_testing_containers; ui-pair contributed-panes.json "extensions-moved" and "testing-moved": both items dragged onto the panel open there as in the reference); cargo test -p app (2594 passed); ui-pair port/fixtures/ui-pair/m11/move-view.json, port/results/move-view.md (8 steps match, Ports removed by decision); verified: ui-pair port/results/references-view.md (milestone 11 verification) || workbench/services/workingCopy | workbench service | M8 | verified | | the text file and untitled working copies are the editor models (dirty state, save, revert, the window's edited dot of `onDidChangeDirty`): cargo test -p app untitled (30), lifecycle (3); WorkingCopyFileService create, move, copy, delete with participants: cargo test -p files operations (12); WorkingCopyHistoryService and its tracker for saves into User/History, entries following renames and folder moves (`moveEntries`): cargo test -p app local_history (10); WorkingCopyBackupService and the backup tracker with hot exit (backups.rs, workbench/backup_tracker.rs), a backup of a deleted file restoring as an orphaned model (`doResolveFromBackup`), modified scratchpads backing up: cargo test -p app backup (19); the working copies of editable custom documents (MainThreadCustomEditorModel, workbench/custom_documents.rs: `$onDidEdit` edits for undo and redo with `$disposeEdits`, `$onContentChange`, dirty tabs, `$onSave`, Save As with `$onSaveAs` and the editor moved to the target, `$revert`, `$backup` into a `vscode-custom-editor` backup restored with its backup id): cargo test -p app custom_documents (3), and port/fixtures/extensions/custom-document-tests (FIXTURE=custom-document-tests port/tools/webview-check: 4/4 in the reference and 4/4 in the port). Notebook working copies are the contrib/notebook row's; their backups are typed (`hashIdentifier` with a type id, backups.rs: cargo test -p app backups::, the upstream typed hashes) and the shutdown joins backups still being written |-| workbench/services/workspaces | workbench service | M12 | ported | [3 S] workspace_editing.rs:174, :231: a non-default profile is not set for a new untitled or saved workspace (abstractWorkspaceEditingService.ts `setProfileForWorkspace`) | workspace_trust.rs: WorkspaceTrustManagementService (uriTrustInfo in shared storage, longest trusted parent, empty window memento, parent folder trust) and WorkspaceTrustRequestService: cargo test -p app workspace_trust; workbench/workspace_editing.rs: abstractWorkspaceEditingService.ts addFolders, removeFolders, updateFolders, saveAndEnterWorkspace, enterWorkspace in the same window (stopped and started host, settings, backups, storage, Explorer, title), duplicate workspace: cargo test -p app folders_added_and_removed_in_a_workspace_reach_its_file_the_explorer_settings_and_host adding_a_folder_enters_an_untitled_workspace_in_the_same_window workspace_editing; ui-pair port/fixtures/ui-pair/m12/workspace-folders.json, verified at port-m12b-verify |+| workbench/services/workspaces | workbench service | M12 | verified | | workspace_trust.rs: WorkspaceTrustManagementService (uriTrustInfo in shared storage, longest trusted parent, empty window memento, parent folder trust) and WorkspaceTrustRequestService: cargo test -p app workspace_trust; workbench/workspace_editing.rs: abstractWorkspaceEditingService.ts addFolders, removeFolders, updateFolders, saveAndEnterWorkspace, enterWorkspace in the same window (stopped and started host, settings, backups, storage, Explorer, title), duplicate workspace: cargo test -p app folders_added_and_removed_in_a_workspace_reach_its_file_the_explorer_settings_and_host adding_a_folder_enters_an_untitled_workspace_in_the_same_window workspace_editing (the Remove Folder picker's ROOT_FOLDER icons, `setProfileForWorkspace`: a_new_workspace_keeps_the_window_profile); ui-pair port/fixtures/ui-pair/m12/workspace-folders.json, verified at port-m12b-verify || workbench/contrib/accessibility | workbench contribution | M19 | verified | | workbench/accessible_view.rs and workbench/accessibility.rs: accessible view and accessibility help (Alt+F2, Alt+F1 with the editor, hover, view help providers, the hover's and a workbench hover's accessible view, Escape from the latter focusing the hover again, a focused contributed tree or webview view's `accessibilityHelpContent`, a webview view the `focusedView` while its webview has the keyboard; Alt+F6, Alt+H, Alt+K, Alt+A, Alt+]/[), notification aria labels with the verbosity hint, unfocused editor dimming, Toggle Screen Reader Accessibility Mode, status entry; cargo test -p app accessib (alt_f1_shows_the_editor_help..., alt_f1_in_a_contributed_view..., alt_f1_in_a_webview_view..., dimming), cargo test -p app content_hover (the hover's accessible view), port/tools/a11y-check reads the help text area (port/notes.md milestone 19) || workbench/contrib/accessibilitySignals | workbench contribution | M19 | verified | | saveAccessibilitySignal.ts, editorTextPropertySignalsContribution.ts (line and position signals, state changes under the cursor, delays, breakpoints on the line), List Signal Sounds/Announcements; cargo test -p app accessib (errors_are_announced_on_a_new_line_and_at_each_position_on_them) || workbench/contrib/agentsVoice | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported |@@ -485,7 +485,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/extensions | workbench contribution | M18 | verified | | 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 | ported | [3 S] explorer_actions/tests.rs:846: list_click_settings_change_what_clicks_do failed once ("a single click only selects the folder") in three concurrent `cargo test -p app -- editor:: workbench::` runs, passed in the next three <br> [3 S] explorer_actions.rs:1359 `confirm` (also editor_status.rs:497) shows GPUI's `Window::prompt`: a Warning confirm lacks the caution icon Electron's message box draws (dialog.rs `show_message_box` draws it) and ignores `window.dialogStyle: custom` | 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) |+| workbench/contrib/files | workbench contribution | M12 | ported | [3 S] explorer_actions/tests.rs:395: a_folder_dropped_on_the_root_is_added_to_the_workspace aborted the run once ("Detected activity on thread Some(\"file-watcher\")"): the folder change restarts the file watcher and the test does not `allow_parking` as workspace_editing/tests.rs does <br> [3 S] explorer_actions/tests.rs:846: list_click_settings_change_what_clicks_do failed once ("a single click only selects the folder") in three concurrent `cargo test -p app -- editor:: workbench::` runs, passed in the next three <br> [3 S] explorer_actions.rs:1359 `confirm` (also editor_status.rs:497) shows GPUI's `Window::prompt`: a Warning confirm lacks the caution icon Electron's message box draws (dialog.rs `show_message_box` draws it) and ignores `window.dialogStyle: custom` | 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) || workbench/contrib/folding | workbench contribution | M8 | verified | | `editor.defaultFoldingRangeProvider` picks among extension `FoldingRangeProvider`s from MainThreadLanguageFeatures (workbench/folding_providers.rs): cargo test -p app folding_providers; the setting's enum lists All and the extensions with code, Programming Languages first (`_updateConfigValues`, config registry.rs: cargo test -p config folding_range); `editor.defaultFoldingRangeProvider` picks among extension `FoldingRangeProvider`s from MainThreadLanguageFeatures (workbench/folding_providers.rs): cargo test -p app folding_providers; the setting's enum is not rebuilt for installed extensions; `editor.defaultFoldingRangeProvider` picks among extension `FoldingRangeProvider`s, which come with mainthread/MainThreadLanguageFeatures (port/notes.md milestone 8) || workbench/contrib/format | workbench contribution | M13 | verified | | `editor.defaultFormatter` from the extensions with formatters (config registry `list_default_formatters`), the formatter dialog, notification and Configure Default Formatter pick, Format Document With (workbench/format.rs): cargo test -p app format::, cargo test -p config default_formatter; the `formatter.conflict` Formatting language status with Configure... (cargo test -p app two_formatters_without_a_default) || workbench/contrib/git | workbench contribution | M14 | removed | | IGitService and its delegate serve only chat and agent sessions (removed by decision) |