Visual Studio Code, rebuilt in Rust
Rust
fix(files): confirm through the message box and steady two explorer tests
rokartur338a2386c5a9
diff --git a/README.md b/README.mdindex b7f2f33bf6e..f42a362d36e 100644--- a/README.md+++ b/README.md@@ -11,8 +11,8 @@ Coverage of VS Code 1.147.0, from [port/ledger.md](port/ledger.md) (584 rows). V```mermaidpie showData- "verified" : 416- "ported" : 14+ "verified" : 413+ "ported" : 17"removed" : 126"n/a" : 28```@@ -20,10 +20,10 @@ pie showData| area | verified | ported | removed | n/a | verified of in scope ||---|---:|---:|---:|---:|---|| src/vs/platform | 68 | 1 | 30 | 13 | `████████████████████ 99%` |-| workbench contribution | 63 | 5 | 30 | 3 | `███████████████████░ 93%` |+| workbench contribution | 62 | 6 | 30 | 3 | `██████████████████░░ 91%` || built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` || MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |-| workbench service | 60 | 5 | 23 | 7 | `██████████████████░░ 92%` |+| workbench service | 58 | 7 | 23 | 7 | `██████████████████░░ 89%` || src/vs/editor/contrib | 54 | 0 | 2 | 1 | `████████████████████ 100%` || workbench part | 10 | 1 | 2 | 0 | `██████████████████░░ 91%` || extension host seam | 7 | 0 | 0 | 0 | `████████████████████ 100%` |@@ -31,7 +31,7 @@ pie showData| src/vs/editor | 1 | 1 | 1 | 1 | `██████████░░░░░░░░░░ 50%` || src/vs/base | 0 | 0 | 2 | 3 | `████████████████████ 100%` || port feature | 1 | 0 | 0 | 0 | `████████████████████ 100%` |-| **all** | **416** | **14** | **126** | **28** | `███████████████████░ 97%` |+| **all** | **413** | **17** | **126** | **28** | `███████████████████░ 96%` |<!-- coverage:end -->`removed` are parts left out by decision: AI features, Microsoft services, telemetry, remote and tunnels ([port/notes.md](port/notes.md)). `n/a` are upstream test infrastructure and the Electron process, IPC and DOM layers the native architecture replaces.diff --git a/native/crates/app/src/workbench/explorer_actions.rs b/native/crates/app/src/workbench/explorer_actions.rsindex 2fbb0d76351..69a58c4ad79 100644--- a/native/crates/app/src/workbench/explorer_actions.rs+++ b/native/crates/app/src/workbench/explorer_actions.rs@@ -1363,10 +1363,10 @@ async fn apply_bulk_edit(workbench: &WeakEntity<Workbench>, cx: &mut AsyncWindowpub(super) async fn confirm(workbench: &WeakEntity<Workbench>, cx: &mut AsyncWindowContext, level: PromptLevel, message: String, detail: Option<String>, primary: &str) -> bool {let answer = workbench.update_in(cx, |workbench, window, cx| match workbench.skip_dialogs {true => None,- false => Some(window.prompt(level, &message, detail.as_deref(), &[primary, "Cancel"], cx)),+ false => Some(dialog::show_message_box(window, crate::dialog::InTests::Confirm, level, &message, detail.as_deref(), &[primary, "Cancel"], None, cx)),});match answer {- Ok(Some(answer)) => answer.await == Ok(0),+ Ok(Some(answer)) => matches!(answer.await, Ok((0, _))),Ok(None) => true,Err(_) => false,}@@ -1376,10 +1376,10 @@ pub(super) async fn confirm(workbench: &WeakEntity<Workbench>, cx: &mut AsyncWinasync fn prompt(workbench: &WeakEntity<Workbench>, cx: &mut AsyncWindowContext, level: PromptLevel, message: String, buttons: &[&str]) -> Option<usize> {let answer = workbench.update_in(cx, |workbench, window, cx| match workbench.skip_dialogs {true => None,- false => Some(window.prompt(level, &message, None, buttons, cx)),+ false => Some(dialog::show_message_box(window, crate::dialog::InTests::Confirm, level, &message, None, buttons, None, cx)),});match answer {- Ok(Some(answer)) => answer.await.ok(),+ Ok(Some(answer)) => answer.await.ok().map(|(button, _)| button),Ok(None) => Some(0),Err(_) => None,}diff --git a/native/crates/app/src/workbench/explorer_actions/tests.rs b/native/crates/app/src/workbench/explorer_actions/tests.rsindex 0cada7caa38..e3cbdad51d5 100644--- a/native/crates/app/src/workbench/explorer_actions/tests.rs+++ b/native/crates/app/src/workbench/explorer_actions/tests.rs@@ -390,6 +390,29 @@ fn a_failed_create_offers_retry_in_a_notification(cx: &mut TestAppContext) {std::fs::remove_dir_all(&dir).unwrap();}+/// fileActions.ts `deleteFiles` confirms through `dialogService.confirm`, which `window.dialogStyle: custom` shows+/// as the workbench's custom dialog with the warning codicon.+#[gpui::test]+fn a_delete_confirmation_follows_the_dialog_style(cx: &mut TestAppContext) {+ let (dir, workbench, cx) = explorer("delete-dialog-style", cx);+ let user = std::env::temp_dir().join(format!("code-gpui-delete-dialog-style-user-{}", std::process::id()));+ std::fs::create_dir_all(&user).unwrap();+ std::fs::write(user.join("settings.json"), r#"{ "window.dialogStyle": "custom" }"#).unwrap();+ workbench.update(cx, |workbench, _| {+ workbench.skip_dialogs = false;+ workbench.settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), user.clone(), None)));+ });+ select(&workbench, &dir.join("a.txt"), cx);+ run(&workbench, "deleteFile", cx);+ let shown = workbench.read_with(cx, |workbench, _| workbench.dialogs.first().map(|shown| (shown.dialog.icon, shown.dialog.message.clone())));+ assert_eq!(shown, Some(("warning", "Are you sure you want to permanently delete 'a.txt'?".to_owned())));+ workbench.update(cx, |workbench, cx| workbench.close_custom_dialog(0, cx));+ cx.run_until_parked();+ assert!(!dir.join("a.txt").exists(), "Delete deletes the file");+ std::fs::remove_dir_all(user).unwrap();+ std::fs::remove_dir_all(&dir).unwrap();+}+/// explorerViewer.ts `handleExternalDrop`: a folder dropped on a workspace folder can be added to the workspace.#[gpui::test]fn a_folder_dropped_on_the_root_is_added_to_the_workspace(cx: &mut TestAppContext) {@@ -415,6 +438,8 @@ fn a_folder_dropped_on_the_root_is_added_to_the_workspace(cx: &mut TestAppContexcx.simulate_event(gpui::FileDropEvent::Entered { position: below_rows, paths });cx.simulate_event(gpui::FileDropEvent::Pending { position: below_rows });cx.simulate_event(gpui::FileDropEvent::Submit { position: below_rows });+ // The folder change restarts the file watcher, whose thread reports to the test scheduler.+ cx.executor().allow_parking();cx.run_until_parked();let folders = workbench.read_with(cx, |workbench, _| workbench.workspace().unwrap().folders.iter().map(|folder| folder.name.clone()).collect::<Vec<_>>());assert_eq!(folders, ["a", "dropped"]);@@ -828,7 +853,7 @@ fn tree_indent_is_clamped_and_defaults_to_8() {#[gpui::test]fn list_click_settings_change_what_clicks_do(cx: &mut TestAppContext) {let (dir, workbench, cx) = explorer("list-click-settings", cx);- let user = dir.join("../list-click-settings-user");+ let user = std::env::temp_dir().join(format!("code-gpui-list-click-settings-user-{}", std::process::id()));std::fs::create_dir_all(&user).unwrap();std::fs::write(user.join("settings.json"), r#"{ "workbench.list.openMode": "doubleClick", "workbench.tree.expandMode": "doubleClick", "workbench.list.multiSelectModifier": "alt" }"#).unwrap();workbench.update(cx, |workbench, _| {diff --git a/port/ledger.md b/port/ledger.mdindex 8bdbf99449a..92b6fe954de 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -24,9 +24,9 @@ Status: `open`, `in progress`, `waiting on Artur`, `later` (postponed), `done`,| Milestones | M7 syntax colors and themes | done | TextMate grammars from `contributes.grammars` (vscode-textmate's algorithm, Oniguruma regexes), token colors from the theme's `tokenColors` and `semanticTokenColors`, bracket pair colorization and matching, every built-in color theme including High Contrast Light, `firstLine` language detection. Open gaps: the gaps column of its unit rows. | `port/results/pixels.md` milestone 7 (main window in dark, light, hc and hclight); cargo test -p app syntax:: (colorize_fixtures_match_the_reference: every colorize-tests fixture's scopes and colors) || Milestones | M8 editor viewport and editing commands | in progress | Scrolling (wheel, scrollbar, reveal), real `visibleRanges`, minimap, folding, sticky scroll, multi-cursor, find/replace widget, comment toggling, line operations, smart select, font zoom, the editor context menu. Open gaps: the gaps column of its unit rows. | api-tests `editor.test`, `window.test` (text editor parts) and `documents.test` pass as in the reference; pixel-check gains a scrolled long-file window with minimap and a folded region; `cargo test -p app` folding and multi-cursor tests. || Milestones | M9 commands, keybindings, menus, quick input | in progress | Command registry shared by the workbench and `vscode.commands`, context keys and `when` clauses, keybinding resolution from `contributes.keybindings` and `keybindings.json`, the native macOS menu bar, context menus, hovers, Command Palette and Quick Open (files, symbols, commands, theme picker), title bar and activity bar clicks. Open gaps: the gaps column of its unit rows. | api-tests `commands.test` and `quickInput.test` pass as in the reference; Cmd+Shift+P runs a command contributed by an extension; Cmd+P opens a fixture file; `cargo test -p app` `when`-clause and keybinding resolution tests against upstream cases. |-| Milestones | M10 settings, storage, profiles | done | `settings.json` (user, workspace, folder, language overrides) feeding both the workbench and `vscode.workspace.getConfiguration`, configuration schema from `contributes.configuration`, the Settings editor and JSON settings with schema validation, global and workspace storage on disk, secret storage in the macOS Keychain, profiles, real `environment` in init data. Import from VS Code, Cursor and VSCodium (Artur, port feature with no upstream counterpart): a command and a first-run offer that read each installed editor's user data (`~/Library/Application Support/{Code,Cursor,VSCodium}/User`: settings.json, keybindings.json, snippets, the color and icon theme ids) and its extension list (`~/.vscode/extensions`, `~/.cursor/extensions`, `~/.vscode-oss/extensions`, installed again from Open VSX), show what will be imported, write it into the active profile and skip settings and extensions the port has removed (AI, sign-in, Microsoft services, telemetry, remote). Open gaps: the gaps column of its unit rows. | api-tests `configuration.test` and `state.test` pass as in the reference; a setting changed in `settings.json` reaches an extension's `onDidChangeConfiguration`; storage survives a restart; importing from a fixture VS Code, Cursor and VSCodium user data folder gives the same settings, keybindings, snippets and theme in the port. |+| Milestones | M10 settings, storage, profiles | in progress | `settings.json` (user, workspace, folder, language overrides) feeding both the workbench and `vscode.workspace.getConfiguration`, configuration schema from `contributes.configuration`, the Settings editor and JSON settings with schema validation, global and workspace storage on disk, secret storage in the macOS Keychain, profiles, real `environment` in init data. Import from VS Code, Cursor and VSCodium (Artur, port feature with no upstream counterpart): a command and a first-run offer that read each installed editor's user data (`~/Library/Application Support/{Code,Cursor,VSCodium}/User`: settings.json, keybindings.json, snippets, the color and icon theme ids) and its extension list (`~/.vscode/extensions`, `~/.cursor/extensions`, `~/.vscode-oss/extensions`, installed again from Open VSX), show what will be imported, write it into the active profile and skip settings and extensions the port has removed (AI, sign-in, Microsoft services, telemetry, remote). Open gaps: the gaps column of its unit rows. | api-tests `configuration.test` and `state.test` pass as in the reference; a setting changed in `settings.json` reaches an extension's `onDidChangeConfiguration`; storage survives a restart; importing from a fixture VS Code, Cursor and VSCodium user data folder gives the same settings, keybindings, snippets and theme in the port. || Milestones | M11 workbench layout and chrome | in progress | The part grid with sashes and hidden parts, panel and secondary side bar, view containers and collapsible views, tree views from extensions (with the Refactor Preview of workbench/contrib/bulkEdit, which file operation participants open), editor groups and splits, notifications, dialogs (native open/save), progress, banner, status bar entries from extensions, decorations, window lifecycle (close, quit, hot exit backup), multiple windows, focus and inactive look. Open gaps: the gaps column of its unit rows. | api-tests `window.test` (messages, progress, tree views, status bar) pass as in the reference; pixel-check gains a window with panel and split editor; hot exit restores an unsaved buffer after quit. |-| Milestones | M12 files, explorer, search, workspace | in progress | File system service with watcher (FSEvents) and extension file system providers, Explorer file operations (new, rename, delete to Trash, drag and drop, copy/paste), Seti file icons, numeric name collation, workspace trust, multi-root `.code-workspace`, recent workspaces, text search through ripgrep, search view and search editor, bulk edits, local history, opener and URL handling. Open gaps: the gaps column of its unit rows. | api-tests `workspace.test`, `workspace.fs.test`, `workspace.event.test`, `workspace.tasks` excluded, and the api-workspace suite pass as in the reference; pixel-check folder window with Seti icons (reference captured without `workbench.iconTheme: null`); `cargo test -p app` sorting test with `file9`/`file10`. |+| Milestones | M12 files, explorer, search, workspace | done | File system service with watcher (FSEvents) and extension file system providers, Explorer file operations (new, rename, delete to Trash, drag and drop, copy/paste), Seti file icons, numeric name collation, workspace trust, multi-root `.code-workspace`, recent workspaces, text search through ripgrep, search view and search editor, bulk edits, local history, opener and URL handling. Open gaps: the gaps column of its unit rows. | api-tests `workspace.test`, `workspace.fs.test`, `workspace.event.test`, `workspace.tasks` excluded, and the api-workspace suite pass as in the reference; pixel-check folder window with Seti icons (reference captured without `workbench.iconTheme: null`); `cargo test -p app` sorting test with `file9`/`file10`. || Milestones | M13 language features | in progress | Everything `MainThreadLanguageFeatures` registers, drawn by the native editor: completion, hover, signature help, code actions and lightbulb, code lens, inlay hints, go to definition and peek, references, rename, formatting, document symbols and Outline, semantic tokens, semantic word highlight, links, color picker, linked editing, snippets, call and type hierarchy, inline completions from extensions; diagnostics with squiggles and the Problems panel; comments threads; Emmet; the language status item. Open gaps: the gaps column of its unit rows. | api-tests `languages.test`, `languagefeatures.test`-family and `comments` cases pass as in the reference; with `src/main.ts` open TypeScript completion, hover, go to definition and a diagnostic squiggle work (pixel-check window with a squiggle and the suggest widget). || Milestones | M14 source control and diff | in progress | SCM view and input box, quick diff gutter, the diff editor (side by side and inline), multi-file diff, merge editor and merge-conflict decorations, timeline, the git, git-base and github extensions fully working (no sign-in: github features that need a token stay off). Open gaps: the gaps column of its unit rows. | api-tests SCM cases pass as in the reference; with the fixture copied into a git repository the SCM view lists a changed file and opening it shows the diff (pixel-check window). || Milestones | M15 terminal, tasks, output | done | Integrated terminal (PTY from Rust, VT parser and renderer in GPUI), shell integration, extension terminals and pseudoterminals, tasks and problem matchers, npm/grunt/gulp/jake task providers, external terminal, Output panel and log viewer. Open gaps: the gaps column of its unit rows. | api-tests `terminal.test`, `terminal.shellIntegration.test` and `workspace.tasks.test` pass as in the reference (run with `SHELL=/bin/bash` as the baseline was); `npm: build` task from the fixture runs in a terminal. |@@ -397,7 +397,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/services/files | workbench service | M12 | verified | | the disk provider and watcher client run in process: native/crates/files (disk provider, FSEvents watcher, cargo test -p files); elevatedFileService.ts writeElevated is text_files.rs write_elevated of milestone 8 (port-integrate); verified: api-tests MOCHA_GREP="vscode API - (workspace|file system|env|types|tasks)" at 44a309311e1: every workspace, workspace-fs, workspace events, workspace-watcher and file system test passes, api-workspace 4/0/0 (port/results/api-tests.md "M12 verification"), workspace-fs and file system || workbench/services/filesConfiguration | workbench service | M8 | verified | | read-only part (`workbench/readonly.rs`): session override commands, `updateReadonly(target, false)` after Save Anyway, `files.readonlyInclude`/`readonlyExclude`/`readonlyFromPermissions`, tab lock badge, edit guards and the read-only message: cargo test -p app readonly, ui-pair ro.txt against the reference (port/notes.md milestone 8); `updateReadonly` fires its change only when the session override changes (`applyReadonly`, cargo test -p app update_readonly_notifies_only_when_the_session_override_changes); auto save part: `computeAutoSaveConfiguration`, `getAutoSaveMode` with reasons, `autoSaveWorkspaceFilesOnly`, `autoSaveWhenNoErrors`, `toggleAutoSave` and File > Auto Save (workbench/auto_save.rs, cargo test -p app auto_save); `files.hotExit` is read by the backup tracker (workbench/services/workingCopy row). Removed with their callers: `updateReadonly` with a custom reason or a resource array (filesConfigurationService.test.ts), called only by chat, inline chat and the issue reporter || workbench/services/github | workbench service | M14 | removed | | binds the platform/github clients to sign-in sessions (no sign-in by decision); the anonymous gist read is main_thread_github.rs |-| workbench/services/history | workbench service | M11 | verified | | navigation.rs (EditorNavigationStack: 50 entries, 10-line threshold, navigation and jump entries, flatten on remove) and workbench/history_actions.rs: navigateBack/Forward/Last and the edit and navigation location variants, navigationScope default/editorGroup/editor, reopenClosedEditor (20), clearEditorHistory, open next/previous recently used editor, the can* context keys, command center Back/Forward; Quick Open editor history (`history.entries`); cargo test -p app navigation editor_groups editor_history quick_open; verified: cargo test -p app navigation (historyService.test.ts) |+| workbench/services/history | workbench service | M11 | ported | [3 S] history_actions.rs:64 workbench.action.clearEditorHistory confirms with GPUI's `Window::prompt`: no caution icon as Electron's warning message box (dialog.rs `show_message_box`), and `window.dialogStyle: custom` is ignored | navigation.rs (EditorNavigationStack: 50 entries, 10-line threshold, navigation and jump entries, flatten on remove) and workbench/history_actions.rs: navigateBack/Forward/Last and the edit and navigation location variants, navigationScope default/editorGroup/editor, reopenClosedEditor (20), clearEditorHistory, open next/previous recently used editor, the can* context keys, command center Back/Forward; Quick Open editor history (`history.entries`); cargo test -p app navigation editor_groups editor_history quick_open; verified: cargo test -p app navigation (historyService.test.ts) || workbench/services/host | workbench service | M11 | verified | | workbench/host.rs: New Window (Shift+Cmd+N, File menu), a folder or workspace opened in a new window (`window.openFoldersInNewWindow`, Cmd+click in Open Recent) brings its open window to the front instead of a second one, Reload Window and opening a folder in this window relaunch it in the same place after the shutdown vetoes, Switch Window and Quick Switch Window list the windows by title; Toggle Full Screen (Ctrl+Cmd+F, View > Appearance > Full Screen, `isFullscreen`), Toggle Window Always on Top (the floating window level); the window title, the close button's edited dot (window.ts `updateDocumentEdited`) and the active file as represented file are set on the NSWindow. Switch Window rows have the close button (window-active, close-dirty, remove-close), which closes the window and removes its row (cargo test -p app switch_window_lists_the_windows_and_closes_one_from_its_row). `cargo test -p app host menubar lifecycle`; verified: ui-pair hot-exit.json `switch-window`, `launched` vs the reference (port/results/windows.md, milestone 11 verification); cargo test -p app workbench::host || workbench/services/imageResize | workbench service | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert || workbench/services/inlineCompletions | workbench service | M13 | removed | | Artur: AI. inlineCompletionsUnification.ts unifies Copilot and chat completions |@@ -439,7 +439,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/services/telemetry | workbench service | M19 | verified | | NullTelemetryService of the built product without enableTelemetry; telemetryInfo ids in init data (seam/init-data); port/tools/privacy-check (Bun and Node, 5/5 each: isTelemetryEnabled false, TelemetryLogger never calls its sender, inert @vscode/extension-telemetry and vscode-tas-client) || workbench/services/terminal | workbench service | M15 | n/a | | embedderTerminalService.ts only serves terminals a web embedder creates through `web.api.ts` (`IWorkbenchConstructionOptions`); the desktop workbench has no embedder || workbench/services/textMate | workbench service | M7 | verified | | textmate crate (vscode-textmate 9.3.2, onig); cargo test -p textmate; colorize test 109/109 fixtures; pixel-check main window |-| workbench/services/textfile | workbench service | M8 | verified | | Cmd+S writes the model's encoding (files::encoding, port of encoding.ts with iconv-lite DOS code pages and its cp950 table: cargo test -p files encoding); `files.encoding` read for the resource's language, the open model's else its path's, also for `workspace.decode`/`encode` (cargo test -p files files_encoding_of_the_resource_language_wins, cargo test -p app workspace_encodings_read_files_encoding_of_the_resource_language) and clears dirty state (cargo test -p app keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); save participants: the extensions' for extension saves, trim trailing whitespace, insert final newline and trim final newlines for every save (cargo test -p app save_participants), an auto save sparing the cursor lines; auto save (editorAutoSave.ts): after delay, on focus change, on window change, a delay restarted by each edit, saves held back by error markers, a dirty tab with a short delay drawn clean (`isSaving`) (cargo test -p app auto_save); Save As, Save without Formatting, revert as one undoable edit, save conflict and read-only/permission errors with their actions, file changes and deletes on disk (orphaned tabs), `files.associations` re-detection (workbench/text_files.rs): cargo test -p app text_files; the save conflict Compare editor (`conflictResolution` diff with the help message, Learn More and Don't Show Again, the accept and revert title actions, the help again on a failed save from it; workbench/save_conflict.rs): cargo test -p app compare_opens_the_save_conflict_editor; Format on Save: cargo test -p app format (format_on_save_formats_after_trimming_and_before_the_final_newline); `files.autoGuessEncoding` and `files.candidateGuessEncodings` (encoding.ts `guessEncodingByBuffer` over upstream's jschardet 3.1.4 and iconv-lite in a Bun worker, app/src/encoding_guess.rs; also the Reopen with Encoding picker's guess): cargo test -p app encoding_guess, the encoding.test.ts autoGuessEncoding cases; the packaged, Developer ID signed app ships the worker's jschardet and @vscode/iconv-lite-umd with their licenses appended to its ThirdPartyNotices.txt (port/tools/package-app) and guesses Shift JIS and windows-1252 files: port/tools/app-smoke (port/fixtures/extensions/encoding-guess-tests 2 ok) |+| workbench/services/textfile | workbench service | M8 | ported | [3 S] text_files.rs:481 and :485 the read-only and replace confirmations of Save As use GPUI's `Window::prompt`: no caution icon as Electron's warning message box (dialog.rs `show_message_box`), and `window.dialogStyle: custom` is ignored | Cmd+S writes the model's encoding (files::encoding, port of encoding.ts with iconv-lite DOS code pages and its cp950 table: cargo test -p files encoding); `files.encoding` read for the resource's language, the open model's else its path's, also for `workspace.decode`/`encode` (cargo test -p files files_encoding_of_the_resource_language_wins, cargo test -p app workspace_encodings_read_files_encoding_of_the_resource_language) and clears dirty state (cargo test -p app keys_and_typed_text_edit_the_focused_editor_and_reach_the_host); save participants: the extensions' for extension saves, trim trailing whitespace, insert final newline and trim final newlines for every save (cargo test -p app save_participants), an auto save sparing the cursor lines; auto save (editorAutoSave.ts): after delay, on focus change, on window change, a delay restarted by each edit, saves held back by error markers, a dirty tab with a short delay drawn clean (`isSaving`) (cargo test -p app auto_save); Save As, Save without Formatting, revert as one undoable edit, save conflict and read-only/permission errors with their actions, file changes and deletes on disk (orphaned tabs), `files.associations` re-detection (workbench/text_files.rs): cargo test -p app text_files; the save conflict Compare editor (`conflictResolution` diff with the help message, Learn More and Don't Show Again, the accept and revert title actions, the help again on a failed save from it; workbench/save_conflict.rs): cargo test -p app compare_opens_the_save_conflict_editor; Format on Save: cargo test -p app format (format_on_save_formats_after_trimming_and_before_the_final_newline); `files.autoGuessEncoding` and `files.candidateGuessEncodings` (encoding.ts `guessEncodingByBuffer` over upstream's jschardet 3.1.4 and iconv-lite in a Bun worker, app/src/encoding_guess.rs; also the Reopen with Encoding picker's guess): cargo test -p app encoding_guess, the encoding.test.ts autoGuessEncoding cases; the packaged, Developer ID signed app ships the worker's jschardet and @vscode/iconv-lite-umd with their licenses appended to its ThirdPartyNotices.txt (port/tools/package-app) and guesses Shift JIS and windows-1252 files: port/tools/app-smoke (port/fixtures/extensions/encoding-guess-tests 2 ok) || workbench/services/textmodelResolver | workbench service | M8 | verified | | models keep a non-file URI's query, so two git refs of one file are two models: cargo test -p app two_refs_of_one_file_diff_as_two_models; content providers newest first (`ContentProviders`, workbench/text_model_resolver.rs, main_thread.rs `$registerTextContentProvider`), model lifetime as `destroyReferencedObject` (`EditorGroup::is_referenced`: dirty, a diff side, an unexpired host reference), `inmemory` without a model fails to resolve: cargo test -p app text_model_resolver (11 textModelResolverService.test.ts cases); the synthetic-document and multi-diff cases need chat and the multi-diff editor (milestone 14's `workbench/contrib/multiDiffEditor`), `canHandleResource`'s one caller is compareWithClipboard (milestone 12's files contribution); content provider registrations newest first and provider-backed models (main_thread.rs) || workbench/services/textresourceProperties | workbench service | M8 | verified | | `getEOL`: a model without line breaks takes the resource's and language's `files.eol`, LF for `auto` on macOS (editor.rs `default_eol`): cargo test -p app files_eol; the remote OS branch belongs to remote, removed; `getEOL`: a model without line breaks takes the resource's and language's `files.eol`, LF for `auto` on macOS (editor.rs `default_eol`): cargo test -p app files_eol; no remote OS || workbench/services/themes | workbench service | M7 | verified | | `.tmTheme` themes and `tokenColors` paths, JSON `settings` themes (themeCompatibility.ts `convertSettings`): theme::tests::tm_theme_settings_give_token_rules_and_editor_colors. Icon theme keys with a parent folder (file_icons::tests::keys_with_a_parent_folder_match_inside_that_folder_only). all 19 built-in color themes with `include` and tokenColors, `workbench.colorCustomizations` and `editor.tokenColorCustomizations` with `[theme]` scopes and token groups, `window.autoDetectColorScheme`, `window.autoDetectHighContrast` and the four preferred theme settings (system appearance and Increase Contrast, followed while running), the theme and file icon theme follow settings.json edits (cargo test -p app theme themes configuration); `semanticTokenColors` and `editor.semanticTokenColorCustomizations` (editor/contrib/semanticTokens row); product icon themes (productIconThemeData.ts: `contributes.productIconThemes`, `workbench.productIconTheme`, truetype, opentype, woff and woff2 fonts (woff2 through the wuff crate), glyphs drawn as SVG paths since GPUI cannot load icon fonts: product_icons.rs, cargo test -p app product_icon; port/tools/product-icons-pair with port/fixtures/extensions/product-icons: the activity bar glyphs match the reference, 86 of 50000 pixels off in the activity bar crop). Registered icon ids resolve as `_resolveIconDefinition` does (codicons.rs `icon_ids`, the defaults generated by port/tools/gen-icon-registry.ts): the activity bar draws `explorer-view-icon` and the other view container icons, and the fixture's woff2 font and `explorer-view-icon` definition match the reference in product-icons-pair; views that still pass codicon ids are listed in port/notes.md milestone 20; all 19 built-in color themes with `include` and tokenColors, `workbench.colorCustomizations` and `editor.tokenColorCustomizations` with `[theme]` scopes and token groups, `window.autoDetectColorScheme`, `window.autoDetectHighContrast` and the four preferred theme settings (system appearance and Increase Contrast, followed while running), the theme and file icon theme follow settings.json edits (cargo test -p app theme themes configuration). Blocked: `semanticTokenColors` and `editor.semanticTokenColorCustomizations` need semantic tokens (editor/contrib/semanticTokens, milestone 13); product icon themes need a contributing extension (gallery, milestone 18); all 19 built-in color themes incl. hc-light, tokenColors (theme.rs, syntax.rs); cargo test -p app theme::tests; `setColorTheme` from the theme picker (preview, write, `$onColorThemeChange`), not on a settings.json edit; no semanticTokenColors (needs semantic tokens), no icon themes; extension `contributes.colors` defaults (colorExtensionPoint.ts, theme.rs `extension_colors`): cargo test -p app a_contributed_color_has_its_default_in_themes_without_it; switching between non-high-contrast themes or defining any border color but `window.*Border` and `contrast*Border` moves nothing in the workbench (cargo test -p app moves_nothing) |@@ -471,7 +471,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/chat | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/contrib/chatWindow | workbench contribution | | removed | | no sign-in/AI by decision (port/notes.md); not ported || workbench/contrib/codeActions | workbench contribution | M13 | verified | | codeActionsContribution.ts `updateConfigurationSchema`: every provided `source` kind gets its property in `editor.codeActionsOnSave` and `notebook.codeActionsOnSave` (config registry.rs `list_code_actions_on_save`, cargo test -p config code_actions_on_save). The keybindings schema (config json_schema.rs `keybindings_schema`, served at `vscode://schemas/keybindings` with `vscode://schemas/inlineCompletionProviderIdArgs`) adds the extensions' commands and the provided kinds to `editor.action.codeAction`, `refactor` and `sourceAction` args: cargo test -p config json_schema; ui-pair user keybindings.json `editor.action.refactor` with `{}` args: "Missing property \"kind\"." at Ln 3, Col 60 in both (port/results/language-features.md Keybindings schema) |-| workbench/contrib/codeEditor | workbench contribution | M8 | verified | | quickaccess/gotoLineQuickAccess (Go to Line/Column, Go to Offset) ported; toggleRenderWhitespace's View: Toggle Render Whitespace and toggleMinimap's View: Toggle Minimap with `editor.minimap.enabled` (workbench/editor_commands.rs, ui-pair notes.txt); toggleColumnSelection's Toggle Column Selection Mode with its Selection menu check, and `editor.columnSelection` drags and Shift+clicks selecting a column (cargo test -p app column_selection_mode); toggleMultiCursorModifier's Toggle Multi-Cursor Modifier and its Selection menu items, with `editor.multiCursorModifier` `ctrlCmd` making Cmd+click the multi-cursor click (cargo test -p app multi_cursor_modifier); saveParticipants' text participants (cargo test -p app save_participants) and `CodeActionOnSaveParticipant` with `editor.codeActionsOnSave` before formatting (workbench/code_actions/on_save.rs: cargo test -p app code_actions), its `triggerCodeActionsCommand` running the `always` source kinds on window focus and active editor changes with `editor.codeActions.triggerOnFocusChange` and `files.autoSave` `afterDelay` (cargo test -p app a_window_focus_change_runs_the_always_code_actions_on_save); toggleOvertype's Toggle Overtype/Insert Mode with typing, IME composition and `editor.overtypeOnPaste` paste overtyping, its OVR status item and block cursor (cargo test -p app overtype_mode; ui-pair notes.txt); toggleRenderControlCharacter's Toggle Control Characters (workbench/editor_commands.rs); largeFileOptimizations' prompt with Forcefully Enable Features and Don't Show Again, and `isTooLargeForTokenization` turning off tokens, folding, word and selection highlights and sticky scroll (workbench/large_file.rs: cargo test -p app large_file); editorLineNumberMenu's `editor/lineNumber/context` menu with `editorLineNumber` (cargo test -p app the_line_number_menu); toggleWordWrap's View: Toggle Word Wrap (Alt+Z), View > Word Wrap and the long-lines editor title action over `editor.wordWrap` wrapping (editor/word_wrap.rs: cargo test -p app word_wrap, the monospaceLineBreaksComputer.test.ts cases; ui-pair wrap.ts); inspectEditorTokens with the semantic token's table from the first document or range provider (workbench/inspect_tokens.rs: cargo test -p app inspect_tokens a_semantic_token_adds_its_table_and_strikes_the_textmate_rule_it_overrides, a fresh tokenization past the line length limit: a_line_past_the_tokenization_limit_is_tokenized_for_the_inspector), the editor accessibility help (workbench/accessible_view.rs), quickaccess/gotoSymbolQuickAccess and the outline (workbench/quick_access/goto_symbol.rs, workbench/outline_pane.rs: cargo test -p app goto_symbol outline_pane); emptyTextEditorHint without its inline chat parts (workbench/empty_editor_hint.rs: cargo test -p app empty_editor_hint; ui-pair port/fixtures/ui-steps/empty-editor-hint.json: same text, links, italics and wrap at the editor width); diffEditorHelper.ts: the "Show Whitespace Differences" button of a whitespace-only diff and the "The diff algorithm was stopped early" prompt with Remove Limit (workbench/editor_view/diff_editor_view.rs: cargo test -p app a_whitespace_only_diff_offers_to_show_whitespace a_diff_stopped_early_offers_to_remove_the_limit; ui-pair port/fixtures/diff-whitespace/steps.json: the same button, then the same whitespace diff with the toggled action and the cursor left at Ln 1, Col 1). Removed by decision: dictation and the voice parts (AI), diffEditorTryout (an experiment), startDebugTextMate (a developer tool), menuPreventer and selectionClipboard (Linux), and Electron's displayChangeRemeasureFonts and sleepResumeRepaintMinimap workarounds. editorSettingsMigration and diffEditorHelper's `collapseUnchangedRegions` migration through ConfigurationMigrationWorkbenchContribution: every migrateOptions.ts item rewritten in user, workspace and multi-root folder settings and their `[language]` blocks, at startup and when folders are added (workbench/configuration_migration.rs: cargo test -p app configuration_migration). emptyEditorHintActions without its chat rows: the experimental `workbench.editor.experimental.emptyEditorHintActions` list with Select a Language, the editor last picked from the hint or the Markdown Editor matched through `getResourceForPatternMatching`, the split editor picker, Escape and the aria label (workbench/empty_editor_hint/actions.rs: cargo test -p app the_actions_hint_offers_the_last_picked_editor_first_and_escape_closes_it the_list_fits_the_editor_or_gives_way_to_the_classic_hint; ui-pair port/fixtures/ui-steps/empty-editor-hint.json with the setting on: the same rows, keys and footer) |+| workbench/contrib/codeEditor | workbench contribution | M8 | ported | [3 S] unusual_line_terminators.rs:83 the "Detected unusual line terminators" prompt uses GPUI's `Window::prompt`, so `window.dialogStyle: custom` is ignored (dialog.rs `show_message_box`) | quickaccess/gotoLineQuickAccess (Go to Line/Column, Go to Offset) ported; toggleRenderWhitespace's View: Toggle Render Whitespace and toggleMinimap's View: Toggle Minimap with `editor.minimap.enabled` (workbench/editor_commands.rs, ui-pair notes.txt); toggleColumnSelection's Toggle Column Selection Mode with its Selection menu check, and `editor.columnSelection` drags and Shift+clicks selecting a column (cargo test -p app column_selection_mode); toggleMultiCursorModifier's Toggle Multi-Cursor Modifier and its Selection menu items, with `editor.multiCursorModifier` `ctrlCmd` making Cmd+click the multi-cursor click (cargo test -p app multi_cursor_modifier); saveParticipants' text participants (cargo test -p app save_participants) and `CodeActionOnSaveParticipant` with `editor.codeActionsOnSave` before formatting (workbench/code_actions/on_save.rs: cargo test -p app code_actions), its `triggerCodeActionsCommand` running the `always` source kinds on window focus and active editor changes with `editor.codeActions.triggerOnFocusChange` and `files.autoSave` `afterDelay` (cargo test -p app a_window_focus_change_runs_the_always_code_actions_on_save); toggleOvertype's Toggle Overtype/Insert Mode with typing, IME composition and `editor.overtypeOnPaste` paste overtyping, its OVR status item and block cursor (cargo test -p app overtype_mode; ui-pair notes.txt); toggleRenderControlCharacter's Toggle Control Characters (workbench/editor_commands.rs); largeFileOptimizations' prompt with Forcefully Enable Features and Don't Show Again, and `isTooLargeForTokenization` turning off tokens, folding, word and selection highlights and sticky scroll (workbench/large_file.rs: cargo test -p app large_file); editorLineNumberMenu's `editor/lineNumber/context` menu with `editorLineNumber` (cargo test -p app the_line_number_menu); toggleWordWrap's View: Toggle Word Wrap (Alt+Z), View > Word Wrap and the long-lines editor title action over `editor.wordWrap` wrapping (editor/word_wrap.rs: cargo test -p app word_wrap, the monospaceLineBreaksComputer.test.ts cases; ui-pair wrap.ts); inspectEditorTokens with the semantic token's table from the first document or range provider (workbench/inspect_tokens.rs: cargo test -p app inspect_tokens a_semantic_token_adds_its_table_and_strikes_the_textmate_rule_it_overrides, a fresh tokenization past the line length limit: a_line_past_the_tokenization_limit_is_tokenized_for_the_inspector), the editor accessibility help (workbench/accessible_view.rs), quickaccess/gotoSymbolQuickAccess and the outline (workbench/quick_access/goto_symbol.rs, workbench/outline_pane.rs: cargo test -p app goto_symbol outline_pane); emptyTextEditorHint without its inline chat parts (workbench/empty_editor_hint.rs: cargo test -p app empty_editor_hint; ui-pair port/fixtures/ui-steps/empty-editor-hint.json: same text, links, italics and wrap at the editor width); diffEditorHelper.ts: the "Show Whitespace Differences" button of a whitespace-only diff and the "The diff algorithm was stopped early" prompt with Remove Limit (workbench/editor_view/diff_editor_view.rs: cargo test -p app a_whitespace_only_diff_offers_to_show_whitespace a_diff_stopped_early_offers_to_remove_the_limit; ui-pair port/fixtures/diff-whitespace/steps.json: the same button, then the same whitespace diff with the toggled action and the cursor left at Ln 1, Col 1). Removed by decision: dictation and the voice parts (AI), diffEditorTryout (an experiment), startDebugTextMate (a developer tool), menuPreventer and selectionClipboard (Linux), and Electron's displayChangeRemeasureFonts and sleepResumeRepaintMinimap workarounds. editorSettingsMigration and diffEditorHelper's `collapseUnchangedRegions` migration through ConfigurationMigrationWorkbenchContribution: every migrateOptions.ts item rewritten in user, workspace and multi-root folder settings and their `[language]` blocks, at startup and when folders are added (workbench/configuration_migration.rs: cargo test -p app configuration_migration). emptyEditorHintActions without its chat rows: the experimental `workbench.editor.experimental.emptyEditorHintActions` list with Select a Language, the editor last picked from the hint or the Markdown Editor matched through `getResourceForPatternMatching`, the split editor picker, Escape and the aria label (workbench/empty_editor_hint/actions.rs: cargo test -p app the_actions_hint_offers_the_last_picked_editor_first_and_escape_closes_it the_list_fits_the_editor_or_gives_way_to_the_classic_hint; ui-pair port/fixtures/ui-steps/empty-editor-hint.json with the setting on: the same rows, keys and footer) || workbench/contrib/commands | workbench contribution | M9 | verified | | runCommands (commands.rs register_run_commands): cargo test -p app commands::, argument checks, spread args, order, stop at a failure; argument errors and the failure notify (cargo test -p app run_commands_argument_errors_notify) || workbench/contrib/comments | workbench contribution | M13 | verified | | Done: a reply and an edit form per thread and comment, open together (commentReply.ts per CommentThreadWidget): cargo test -p app two_threads_keep_their_reply_forms_open_together; a zone sized by the drawn comment bodies: cargo test -p app a_wrapped_comment_body_grows_its_zone; next/previous thread and Focus Comment on Current Line focus the thread's comments (`commentFocused`, Up/Down between comments, Escape collapses and selects the range): cargo test -p app the_reached_thread_takes_the_focus. Done in diff editors: glyphs, commenting ranges (asked for every side of every multi diff file), range highlights and zones on both sides of the diff editor and of each multi diff file, the other side aligned by a diagonal fill (workbench/editor_view/diff_editor_view.rs, multi_diff_editor_view.rs, diff_editor.rs `additional_heights`): cargo test -p app diff comment; ui-pair `portComments.openDiff` modified, original and multi. Floating widgets on a diff's original side and on both sides of each multi diff file (comment_thread_floating.rs `FloatingHost`, multi_diff_editor_view.rs `multi_diff_floating_hosts`), with `FloatingWidgetRoom` growing a file below its last line (commentThreadFloatingWidgetRoom.ts, `FileDiff.room`): cargo test -p app floating room multi_diff; ui-pair `portComments.openDiff` original and multi with the floating style. Range decorations (commentThreadRangeDecorator.ts and the floating empty-range line, workbench/comment_thread_widget.rs `comment_range_highlights`): cargo test -p app comment_thread_floating. The floating thread style (`comments.thread.experimental.style: floating`; workbench/comment_thread_floating_layout.rs with commentThreadFloatingWidget.test.ts ported, workbench/comment_thread_floating.rs: placement beside the code or its lines in code order, the outline and connector, title drag, edge resize, double-click reset, the layout kept per thread, wheel to the editor): cargo test -p app comment_thread_floating, ui-pair steps-comment-floating.json (port/results/language-features.md Floating comment threads). Done: the Comments panel (workbench/comments_view.rs: resources, threads with author, relative time, first line, range and replies, the unresolved badge, a markdown preview's images as "Image: {alt}" (cargo test -p app a_markdown_comment_previews_its_first_rendered_block), the filter box with Show Resolved/Unresolved and Sort By, its history in the memento's `filterHistory`, Escape and Cmd+Down while `commentsFilterFocus` (cargo test -p app the_filter_keeps_its_history_and_escape_clears_it; no match highlights, as commentsTreeViewer.ts's renderers ignore the filter data), Collapse/Expand All, row selection and keys; hideIfEmpty; a thread row's `commentsView/commentThread/context` inline actions and context menu with the built-in Reply, which reveals the thread with its zone expanded and reply open: cargo test -p app the_thread_menu_replies_to_the_thread), the gutter glyph that toggles the thread (workbench/editor_view/comment_glyph.rs) and the thread widget (workbench/comment_thread_widget.rs: zone, state colors, head with `comments/commentThread/title` actions and Collapse, markdown comments with `code` spans on no `textCodeBlock.background` (cargo test -p app a_comment_s_code_span_draws_no_code_block_background), reply form with `comments/commentThread/context` buttons and Cmd+Enter), each comment (workbench/comment_node.rs: `comments/comment/title` actions, edit mode with `comments/comment/context` buttons, reactions and their picker), commenting ranges with the add glyph, Add Comment and template threads (workbench/commenting_ranges.rs), the comment commands (workbench/comment_navigation.rs: Collapse/Expand All, Expand Unresolved, Toggle Editor Commenting, Focus Comment on Current Line, Dismiss Comment, next/previous thread, commented range and commenting range, reached at the provider's columns unless it holds the cursor: cargo test -p app a_commenting_range_is_reached_at_its_columns_unless_it_holds_the_cursor) and the comments accessibility help: cargo test -p app comment; ui-pair port/results/language-features.md (Comments, Comment editing and commands); Escape keeps a new template open as the reference does (ui-pair steps-comment-escape-typed.json, cargo test -p app dismissing_a_new_template_keeps_it_open). The reply and edit inputs are code editors (simpleCommentEditor.ts: a `comment`-scheme markdown model, word wrap, no glyph margin, line numbers or folding, `scrollBeyondLastLine` false, 5 to 25 lines by `calculateEditorHeight`) that take the focus with `commentEditorFocused`, Cmd+Enter submits and Escape hides; the host gets the input's document and no text editor (workbench/comment_thread_widget.rs `open_comment_editor`, workbench/editor.rs `comment_editor`): cargo test -p app an_expanded_thread_shows_a_zone_and_replies_run_the_form_actions a_comment_switched_to_editing_runs_the_edit_actions; ui-pair steps-comment-reply-editor.json (reply-empty, reply-lines, reply-grown). Comments panel rows: 4px pane inset, 4px radius and the tree's indent guides as the Problems tree (cargo test -p app rows_sit_in_the_pane_s_inset_with_the_tree_s_indent_and_guides; ui-pair steps-comments.json: chevron, name and thread line at the reference's x and y) || workbench/contrib/customEditor | workbench contribution | M17 | verified | | Each editor of a custom text editor's resource, the one opened in another group and a split's copy, has a webview of its own (customEditorInput.ts: cargo test -p app each_group_s_custom_text_editor_has_its_own_webview); Opening a custom text editor with `options.selection` reveals it in the panel and leaves the text model's cursor (cargo test -p app a_custom_text_editor_s_navigation_drives_the_outline); A custom document open in another group moves to the active one, or with `supportsMultipleEditorsPerDocument` gets a second editor there (editorResolverService.ts `moveExistingEditorForResource`: cargo test -p app a_custom_document_open_in_another_group_moves_to_the_active_one a_custom_document_with_multiple_editors_opens_one_more_in_the_active_group); `workbench.editorAssociations` merged as editorResolverService.ts `getAllUserAssociationsForSetting`: the workspace's globs before the default's and user's (cargo test -p app a_workspace_association_wins_over_a_user_one_of_the_same_length); Reopen Editor With puts a closed custom or notebook editor's replacement in its place, pinned (editorGroupView.ts `replaceEditors`: cargo test -p app a_reopened_preview_keeps_its_tab_position); Two default editors for one resource warn once and remember the choice per extension glob (editorResolverService.ts `doHandleConflictingDefaults`: cargo test -p app two_default_editors_for_a_resource_ask_once_which_to_keep); the memento's custom editors until the extensions register (cargo test -p app markdown_editor_files_offer); editor resolution by `workbench.editorAssociations` and contributed selectors (editorResolverService.ts ranks), Reopen Editor With picker (`reopenActiveEditorWith`, `workbench.action.reopenWithEditor`), `_workbench.open`, `_workbench.openWith`; `FIXTURE=custom-editor-tests port/tools/webview-check` 8/8; cargo test -p app custom_editors |@@ -485,7 +485,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| 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/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: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/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) || 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) |@@ -520,7 +520,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/contrib/output | workbench contribution | M15 | verified | | Open Output in Editor and Open Log... open the channel's `output:` resource pinned in a read-only text editor of the editor groups, sharing the Output view's model and following the channel (cargo test -p app open_output_in_editor_shows_the_channel_in_an_editor_group); output/compound.rs and workbench/output_compound.rs (Add Compound Log..., Remove Output..., entries merged by timestamp); output_view.rs and output_actions.rs: read-only Output view with the channel dropdown, filter box with level and category menus, Clear Output, Toggle Auto Scrolling, log level gear, Open Output in Editor, Show Output Channels, `workbench.action.output.show.<id>`, Cmd+Shift+U toggle, the Window and Extension Host channels; the view is a panel view whose editor sits in the hidden panel group since milestone 11 (cargo test -p app toggle_output_opens_and_closes_the_view); a quiet reveal offers the channel in the status bar (cargo test -p app a_quiet_reveal_offers_the_channel_in_the_status_bar); the title's "..." with Save Output As..., Export Logs... (picker or `outputChannelIds`/`outputPath`), Add Compound Log... and Import Log... (cargo test -p app logs_export_to_a_file_and_import_as_a_channel); links through milestone 13's link contribution (output/links.rs `compute_links`, cargo test -p app output_paths_in_the_workspace_are_links compute_links); the filters hide lines as the editor's hidden areas, the model keeps every line, include pattern matches are find match decorations (cargo test -p app filters_hide_log_entries filters_hide_entries_and_lines): cargo test -p app output || workbench/contrib/performance | workbench contribution | M19 | verified | | Developer: Startup Performance (perf_view.rs, perfviewEditor.ts): System Info, Performance Marks from the timer service, Extension Activation Stats, Raw Perf Marks of the renderer and localExtHost; inputLatencyContrib, startupTimings and the auto profilers only report telemetry or take V8 profiles (no telemetry by decision, platform/profiling n/a); cargo test -p app timer:: perf_view; System Info takes the CPU speed and VM likelihood as Node's `os` reports them and no process memory, which 1.147 turns off (cargo test -p app the_system_info_lists apple_silicon_reports_libuvs_fallback_cpu_speed) || workbench/contrib/policyExport | workbench contribution | M10 | removed | | build tool: `--export-policy-data` writes the policy definitions that upstream's build turns into ADMX and macOS profiles; the port ships no policy templates |-| workbench/contrib/preferences | workbench contribution | M10 | verified | | A policy-managed setting disables its select, input box, checkbox and array and include/exclude lists, and its indicator's hover runs View policy settings (`@hasPolicy`): cargo test -p app a_policy_setting_disables_its_select_and_its_hover_applies_the_policy_filter. The `@lang:` filter shows the language block's value (settingsTreeModels.ts `inspectSetting`): cargo test -p app the_lang_filter_shows_the_language_block_value; setting descriptions as markdown (paragraphs, emphasis, lists, code, setting links): cargo test -p app descriptions_render_emphasis_lists_and_setting_links; ui-pair against the reference in port/results/settings-editor.md; keybindingsEditor.ts, keybindingWidgets.ts and the keybindings actions of preferences.contribution.ts ported as workbench/keybindings_editor_view.rs (cargo test -p app keybindings_editor_view, port/results/keybindings-editor.md; a contributing extension's name opens it: cargo test -p app an_extension_source_opens_the_extension); keybindingsEditorContribution.ts and smartSnippetInserter.ts ported as workbench/define_keybinding.rs and smart_snippet_inserter.rs (cargo test -p app define_keybinding smart_snippet_inserter, raw/keybindings-editor/define-file-*.png); settingsEditor2.ts, settingsTree.ts, settingsTreeModels.ts, settingsLayout.ts, tocTree.ts, preferencesSearch.ts (local search), settingsSearchMenu.ts, settingsEditorSettingIndicators.ts and the settings targets widget ported as settings_editor.rs and workbench/settings_editor_view.rs (cargo test -p app settings_editor); settingsWidgets.ts list and object widgets, the search suggest widget, search history and the TOC sash ported (cargo test -p app settings_editor); preferencesRenderers.ts UnsupportedSettingsRenderer ported as workbench/preferences/unsupported_settings.rs, with the untrusted-workspace warning and its Manage Workspace Trust quick fix (cargo test -p app preferences unsupported_settings); keyboardLayoutPicker.ts n/a (web only); the marks' messages in the editor hover: cargo test -p app the_editor_hover_shows_the_message_of_a_marked_key |+| workbench/contrib/preferences | workbench contribution | M10 | ported | [3 S] keybindings_editor_view.rs:778 a keybindings.json write error shows GPUI's `Window::prompt`, not the error message box (dialog.rs `show_message_box`), and `window.dialogStyle: custom` is ignored | A policy-managed setting disables its select, input box, checkbox and array and include/exclude lists, and its indicator's hover runs View policy settings (`@hasPolicy`): cargo test -p app a_policy_setting_disables_its_select_and_its_hover_applies_the_policy_filter. The `@lang:` filter shows the language block's value (settingsTreeModels.ts `inspectSetting`): cargo test -p app the_lang_filter_shows_the_language_block_value; setting descriptions as markdown (paragraphs, emphasis, lists, code, setting links): cargo test -p app descriptions_render_emphasis_lists_and_setting_links; ui-pair against the reference in port/results/settings-editor.md; keybindingsEditor.ts, keybindingWidgets.ts and the keybindings actions of preferences.contribution.ts ported as workbench/keybindings_editor_view.rs (cargo test -p app keybindings_editor_view, port/results/keybindings-editor.md; a contributing extension's name opens it: cargo test -p app an_extension_source_opens_the_extension); keybindingsEditorContribution.ts and smartSnippetInserter.ts ported as workbench/define_keybinding.rs and smart_snippet_inserter.rs (cargo test -p app define_keybinding smart_snippet_inserter, raw/keybindings-editor/define-file-*.png); settingsEditor2.ts, settingsTree.ts, settingsTreeModels.ts, settingsLayout.ts, tocTree.ts, preferencesSearch.ts (local search), settingsSearchMenu.ts, settingsEditorSettingIndicators.ts and the settings targets widget ported as settings_editor.rs and workbench/settings_editor_view.rs (cargo test -p app settings_editor); settingsWidgets.ts list and object widgets, the search suggest widget, search history and the TOC sash ported (cargo test -p app settings_editor); preferencesRenderers.ts UnsupportedSettingsRenderer ported as workbench/preferences/unsupported_settings.rs, with the untrusted-workspace warning and its Manage Workspace Trust quick fix (cargo test -p app preferences unsupported_settings); keyboardLayoutPicker.ts n/a (web only); the marks' messages in the editor hover: cargo test -p app the_editor_hover_shows_the_message_of_a_marked_key || workbench/contrib/processExplorer | workbench contribution | M19 | verified | | workbench/process_explorer.rs on ps.rs: Open Process Explorer (Developer and Help menu) in a floating window (no auxiliary editor windows in the port), the tree under the app's pid refreshed after each listing, Kill/Force Kill/Copy/Copy All, Debug for `isDebuggable` processes through `debug.startFromConfig` with `attachTo`'s port or pid (cargo test -p app a_node_process_gets_debug), Alt+E, bounds stored; port/tools/shell-gui-check (Help > Open Process Explorer: window "Process Explorer", AXOutline with the vsrustium root and the extension host rows); cargo test -p app process_explorer ps:: || workbench/contrib/quickaccess | workbench contribution | M9 | verified | | commandsQuickAccess.ts as quick_access.rs and command_palette.rs; helpQuickAccess `?` with the providers the port has and the More help pick (cargo test -p app quick_access command_palette tf_idf title_bar), history in profile storage; the workbench's palette items are the reference's, listed when the port registers their command; viewQuickAccess.ts as quick_access/views.rs: `view `, Open View, Quick Open View (Ctrl+Q) and `inViewsPicker` list the side bar, panel and secondary side bar containers, their views under `Parent / Child` separators, the terminals, the separate debug consoles and the output channels; Ctrl+Q again moves to the next pick and releasing Ctrl opens it (quickInput.ts `quickNavigate`) (quick_access::tests::the_view_picker_groups_views_by_container_and_opens_the_pick) || workbench/contrib/relauncher | workbench contribution | M19 | verified | | workbench/relauncher.rs: SettingsChangeRelauncher's macOS settings (chat and agent host ones left out with AI) ask to restart, Restart relaunches with the same arguments, a changed default (`ConfigurationTarget.DEFAULT`) takes the new value without asking; port/tools/shell-gui-check (window.nativeTabs changed in settings.json: prompt shown, old process quit, 1 new process); cargo test -p app relauncher a_changed_default_does_not_ask_to_restart |