Skip to content

Visual Studio Code, rebuilt in Rust

Rust

fix(workbench): confirm through the message box in history, save as and line terminators

rokarturd6a835d7aee0
diff --git a/README.md b/README.md
index c0f74ee1b94..1f0660b23fb 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
```mermaid
pie showData
- "verified" : 416
- "ported" : 14
+ "verified" : 420
+ "ported" : 10
"removed" : 126
"n/a" : 28
```
@@ -20,10 +20,10 @@ pie showData
| area | verified | ported | removed | n/a | verified of in scope |
|---|---:|---:|---:|---:|---|
| src/vs/platform | 69 | 0 | 30 | 13 | `████████████████████ 100%` |
-| workbench contribution | 62 | 6 | 30 | 3 | `██████████████████░░ 91%` |
+| workbench contribution | 64 | 4 | 30 | 3 | `███████████████████░ 94%` |
| built-in extension | 88 | 1 | 6 | 0 | `████████████████████ 99%` |
| MainThread* shape (Rust side) | 59 | 0 | 30 | 0 | `████████████████████ 100%` |
-| workbench service | 59 | 6 | 23 | 7 | `██████████████████░░ 91%` |
+| workbench service | 61 | 4 | 23 | 7 | `███████████████████░ 94%` |
| src/vs/editor/contrib | 54 | 0 | 2 | 1 | `████████████████████ 100%` |
| workbench part | 11 | 0 | 2 | 0 | `████████████████████ 100%` |
| 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** | **420** | **10** | **126** | **28** | `████████████████████ 98%` |
<!-- 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/editor_groups/tests.rs b/native/crates/app/src/workbench/editor_groups/tests.rs
index 922ae9e4b36..b83160e54c6 100644
--- a/native/crates/app/src/workbench/editor_groups/tests.rs
+++ b/native/crates/app/src/workbench/editor_groups/tests.rs
@@ -138,6 +138,27 @@ fn reopen_closed_editor_brings_back_the_last_closed_file(cx: &mut TestAppContext
assert_eq!(groups(&workbench, cx).0, vec![vec!["a.txt".to_string(), "b.txt".to_string()]]);
}
+/// editorActions.ts `ClearEditorHistoryAction` confirms through `dialogService.confirm`, which
+/// `window.dialogStyle: custom` shows as the workbench's custom dialog with the warning codicon.
+#[gpui::test]
+fn clear_editor_history_confirms_in_the_dialog_style(cx: &mut TestAppContext) {
+ let (dir, workbench, cx) = workbench_with("clear-history", &["a.txt", "b.txt"], cx);
+ std::fs::create_dir_all(dir.join("User")).unwrap();
+ std::fs::write(dir.join("User/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(&[]), dir.join("User"), None)));
+ });
+ run(&workbench, "workbench.action.closeActiveEditor", cx);
+ run(&workbench, "workbench.action.clearEditorHistory", cx);
+ let shown = workbench.read_with(cx, |workbench, _| workbench.dialogs.iter().map(|shown| (shown.dialog.icon, shown.dialog.message.clone())).collect::<Vec<_>>());
+ assert_eq!(shown, [("warning", "Do you want to clear the history of recently opened editors?".to_owned())]);
+ workbench.update(cx, |workbench, cx| workbench.close_custom_dialog(0, cx));
+ cx.run_until_parked();
+ run(&workbench, "workbench.action.reopenClosedEditor", cx);
+ assert_eq!(groups(&workbench, cx).0, vec![vec!["a.txt".to_string()]], "Clear forgets the closed editor");
+}
+
#[test]
fn a_drag_splits_at_the_edges_and_moves_in_the_center() {
use super::split_direction;
diff --git a/native/crates/app/src/workbench/history_actions.rs b/native/crates/app/src/workbench/history_actions.rs
index e73f4cbbac1..f1fb6b29a15 100644
--- a/native/crates/app/src/workbench/history_actions.rs
+++ b/native/crates/app/src/workbench/history_actions.rs
@@ -61,9 +61,9 @@ impl Workbench {
workbench.clear_history();
return Outcome::done();
}
- let answer = window.prompt(PromptLevel::Warning, "Do you want to clear the history of recently opened editors?", Some("This action is irreversible!"), &["Clear", "Cancel"], cx);
+ let answer = crate::dialog::show_message_box(window, crate::dialog::InTests::Confirm, PromptLevel::Warning, "Do you want to clear the history of recently opened editors?", Some("This action is irreversible!"), &["Clear", "Cancel"], None, cx);
cx.spawn(async move |workbench, cx| {
- if answer.await == Ok(0) {
+ if matches!(answer.await, Ok((0, _))) {
let _ = workbench.update(cx, |workbench, _| workbench.clear_history());
}
})
diff --git a/native/crates/app/src/workbench/keybindings_editor_view.rs b/native/crates/app/src/workbench/keybindings_editor_view.rs
index 973ff440649..514b7ba7826 100644
--- a/native/crates/app/src/workbench/keybindings_editor_view.rs
+++ b/native/crates/app/src/workbench/keybindings_editor_view.rs
@@ -10,7 +10,7 @@ use std::ops::Range;
use std::time::{Duration, Instant};
use gpui::{
- AnyElement, BoxShadow, ClipboardItem, Context, Div, FocusHandle, FontWeight, HighlightStyle, ListAlignment, ListState, MouseButton, MouseDownEvent, PromptLevel, Rgba, Stateful,
+ AnyElement, BoxShadow, ClipboardItem, Context, Div, FocusHandle, FontWeight, HighlightStyle, ListAlignment, ListState, MouseButton, MouseDownEvent, Rgba, Stateful,
MouseMoveEvent, MouseUpEvent, StyledText, Subscription, Task, Window, canvas, div, list, point, prelude::*, px, rgb, rgba,
};
use serde_json::{Value, json};
@@ -774,10 +774,8 @@ impl Workbench {
fn edit_keybindings_file(&mut self, entry: &Entry, change: Change, window: &mut Window, cx: &mut Context<Self>) {
if let Err(error) = self.write_keybindings_file(entry, change, cx) {
self.keybindings_editor.reveal_command = None;
- if !self.skip_dialogs {
- drop(window.prompt(PromptLevel::Critical, &error, None, &["OK"], cx));
- }
- return;
+ self.notify_error(error);
+ return cx.notify();
}
self.keybindings_changed(window, cx);
}
diff --git a/native/crates/app/src/workbench/keybindings_editor_view/tests.rs b/native/crates/app/src/workbench/keybindings_editor_view/tests.rs
index 0b6dc9f7a23..a9d22c08bd2 100644
--- a/native/crates/app/src/workbench/keybindings_editor_view/tests.rs
+++ b/native/crates/app/src/workbench/keybindings_editor_view/tests.rs
@@ -255,6 +255,10 @@ fn writes_wait_until_an_open_keybindings_json_is_saved(cx: &mut TestAppContext)
cx.simulate_keystrokes("cmd-backspace");
cx.run_until_parked();
assert_eq!(std::fs::read_to_string(&file).unwrap(), content);
+ // keybindingsEditor.ts `onKeybindingEditingError`: an error notification, not a dialog.
+ let errors = workbench.read_with(cx, |workbench, _| workbench.notifications.model.items.iter().map(|item| (item.severity, item.message.raw.clone())).collect::<Vec<_>>());
+ assert_eq!(errors, [(crate::notifications::Severity::Error, super::DIRTY_FILE_ERROR.to_owned())]);
+ assert!(workbench.read_with(cx, |workbench, _| workbench.dialogs.is_empty()));
}
#[gpui::test]
diff --git a/native/crates/app/src/workbench/text_files.rs b/native/crates/app/src/workbench/text_files.rs
index ed1948c3e75..1fe84d19f59 100644
--- a/native/crates/app/src/workbench/text_files.rs
+++ b/native/crates/app/src/workbench/text_files.rs
@@ -476,18 +476,21 @@ impl Workbench {
let skip_dialogs = self.skip_dialogs;
let this = cx.entity().downgrade();
self.in_window(cx, move |_, window, cx| {
- let readonly_answer = (readonly && !skip_dialogs).then(|| {
- let detail = "Paths can be configured as read-only via settings.";
- window.prompt(PromptLevel::Warning, &format!("'{name}' is marked as read-only. Do you want to save anyway?"), Some(detail), &["Save Anyway", "Cancel"], cx)
- });
- let replace_answer = (replace && !skip_dialogs).then(|| {
+ let readonly_message = (readonly && !skip_dialogs).then(|| (format!("'{name}' is marked as read-only. Do you want to save anyway?"), "Paths can be configured as read-only via settings.".to_owned(), "Save Anyway"));
+ let replace_message = (replace && !skip_dialogs).then(|| {
let detail = format!("A file or folder with the name '{name}' already exists in the folder '{folder}'. Replacing it will overwrite its current contents.");
- window.prompt(PromptLevel::Warning, &format!("'{name}' already exists. Do you want to replace it?"), Some(&detail), &["Replace", "Cancel"], cx)
+ (format!("'{name}' already exists. Do you want to replace it?"), detail, "Replace")
});
window
.spawn(cx, async move |cx| {
- for answer in [readonly_answer, replace_answer].into_iter().flatten() {
- if answer.await != Ok(0) {
+ // textFileService.ts `saveAs`: `confirmMakeWriteable` is answered before `confirmOverwrite` asks.
+ for (message, detail, primary) in [readonly_message, replace_message].into_iter().flatten() {
+ let answer = cx.update(|window, cx| crate::dialog::show_message_box(window, crate::dialog::InTests::Confirm, PromptLevel::Warning, &message, Some(&detail), &[primary, "Cancel"], None, cx));
+ let confirmed = match answer {
+ Ok(answer) => matches!(answer.await, Ok((0, _))),
+ Err(_) => false,
+ };
+ if !confirmed {
let _ = sender.send(false);
return;
}
diff --git a/native/crates/app/src/workbench/text_files/untitled_tests.rs b/native/crates/app/src/workbench/text_files/untitled_tests.rs
index d7a3423c61a..175a4d84e9c 100644
--- a/native/crates/app/src/workbench/text_files/untitled_tests.rs
+++ b/native/crates/app/src/workbench/text_files/untitled_tests.rs
@@ -398,3 +398,28 @@ fn a_dirty_untitled_model_is_kept_until_it_is_clean(cx: &mut TestAppContext) {
untitled.workbench.update(untitled.cx, |workbench, _| workbench.editors.release_models(Instant::now()));
assert!(!untitled.exists("Untitled-1"));
}
+
+/// textFileService.ts `saveAs`: an untitled model's associated file that is read-only and exists asks
+/// `confirmMakeWriteable`, then `confirmOverwrite`, through `dialogService.confirm`, which `window.dialogStyle: custom`
+/// shows as the workbench's custom dialog with the warning codicon.
+#[gpui::test]
+fn save_as_confirmations_follow_the_dialog_style(cx: &mut TestAppContext) {
+ let mut untitled = untitled("save-as-dialog-style", r#"{ "window.dialogStyle": "custom" }"#, cx);
+ let path = untitled.create_associated("file.txt");
+ std::fs::write(&path, "old").unwrap();
+ untitled.workbench.update(untitled.cx, |workbench, _| {
+ workbench.skip_dialogs = false;
+ workbench.readonly_overrides.insert(("file".into(), path.clone()), true);
+ });
+ let mut saved = untitled.workbench.update(untitled.cx, |workbench, cx| workbench.save_as_to("untitled".into(), path.clone(), path.clone(), super::SaveOptions::default(), cx));
+ untitled.cx.run_until_parked();
+ let shown = |untitled: &mut Untitled| untitled.read(|workbench| workbench.dialogs.iter().map(|shown| (shown.dialog.icon, shown.dialog.message.clone())).collect::<Vec<_>>());
+ assert_eq!(shown(&mut untitled), [("warning", "'file.txt' is marked as read-only. Do you want to save anyway?".to_owned())]);
+ untitled.workbench.update(untitled.cx, |workbench, cx| workbench.close_custom_dialog(0, cx));
+ untitled.cx.run_until_parked();
+ assert_eq!(shown(&mut untitled), [("warning", "'file.txt' already exists. Do you want to replace it?".to_owned())]);
+ untitled.workbench.update(untitled.cx, |workbench, cx| workbench.close_custom_dialog(1, cx));
+ untitled.cx.run_until_parked();
+ assert_eq!(saved.try_recv(), Ok(Some(false)), "Cancel keeps the file");
+ assert_eq!(std::fs::read_to_string(&path).unwrap(), "old");
+}
diff --git a/native/crates/app/src/workbench/unusual_line_terminators.rs b/native/crates/app/src/workbench/unusual_line_terminators.rs
index 32ea57feed6..bf993e91216 100644
--- a/native/crates/app/src/workbench/unusual_line_terminators.rs
+++ b/native/crates/app/src/workbench/unusual_line_terminators.rs
@@ -80,12 +80,12 @@ impl Workbench {
);
let answer = match self.skip_dialogs {
true => None,
- false => Some(window.prompt(PromptLevel::Info, "Detected unusual line terminators", Some(&detail), &["Remove Unusual Line Terminators", "Ignore"], cx)),
+ false => Some(crate::dialog::show_message_box(window, crate::dialog::InTests::Confirm, PromptLevel::Info, "Detected unusual line terminators", Some(&detail), &["Remove Unusual Line Terminators", "Ignore"], None, cx)),
};
self.unusual_line_terminators.presenting_dialog = true;
cx.spawn_in(window, async move |workbench, cx| {
let confirmed = match answer {
- Some(answer) => answer.await == Ok(0),
+ Some(answer) => matches!(answer.await, Ok((0, _))),
None => true,
};
let _ = workbench.update(cx, |workbench, cx| {
diff --git a/native/crates/app/src/workbench/unusual_line_terminators/tests.rs b/native/crates/app/src/workbench/unusual_line_terminators/tests.rs
index 3ba30c9e41d..9018dd18c7f 100644
--- a/native/crates/app/src/workbench/unusual_line_terminators/tests.rs
+++ b/native/crates/app/src/workbench/unusual_line_terminators/tests.rs
@@ -36,3 +36,31 @@ fn a_shown_model_loses_its_ls_and_ps_and_an_undo_brings_them_back(cx: &mut TestA
assert_eq!(text(cx), "a\u{2028}b\nc\u{2029}");
std::fs::remove_dir_all(&dir).unwrap();
}
+
+/// unusualLineTerminators.ts asks through `dialogService.confirm`, which `window.dialogStyle: custom` shows as the
+/// workbench's custom dialog; its primary button removes the terminators.
+#[gpui::test]
+fn the_question_follows_the_dialog_style(cx: &mut TestAppContext) {
+ let app_root = Path::new(env!("VSCODE_SRC")).to_path_buf();
+ let themes = scan_extension(&app_root.join("extensions/theme-defaults"), true).unwrap();
+ let theme = load_theme(&[themes], "Dark Modern").unwrap();
+ let dir = std::env::temp_dir().join(format!("code-gpui-unusual-dialog-style-{}", std::process::id()));
+ std::fs::create_dir_all(dir.join("User")).unwrap();
+ std::fs::write(dir.join("User/settings.json"), r#"{ "window.dialogStyle": "custom" }"#).unwrap();
+ let file = dir.join("a.txt");
+ std::fs::write(&file, "a\u{2028}b").unwrap();
+ let settings = std::sync::Arc::new(std::sync::Mutex::new(config::service::Settings::load(config::registry::Registry::with_extensions(&[]), dir.join("User"), None)));
+ let (workbench, cx) = cx.add_window_view(|window, cx| {
+ let mut workbench = Workbench::new(theme, app_root.clone(), None, Languages::new(&[]), settings, HostSync::new(std::sync::mpsc::channel().0), cx);
+ workbench.open_file(file.clone(), true, window, cx);
+ workbench
+ });
+ cx.run_until_parked();
+ let messages = workbench.read_with(cx, |workbench, _| workbench.dialogs.iter().map(|shown| (shown.dialog.icon, shown.dialog.message.clone())).collect::<Vec<_>>());
+ // dialog.ts draws the default `question` type with the info codicon.
+ assert_eq!(messages, [("info", "Detected unusual line terminators".to_owned())]);
+ workbench.update(cx, |workbench, cx| workbench.close_custom_dialog(0, cx));
+ cx.run_until_parked();
+ assert_eq!(workbench.read_with(cx, |workbench, _| workbench.editors.active().unwrap().document().lines.join("\n")), "ab");
+ std::fs::remove_dir_all(&dir).unwrap();
+}
diff --git a/port/ledger.md b/port/ledger.md
index f96afebe00b..389b8c1f67f 100644
--- a/port/ledger.md
+++ b/port/ledger.md
@@ -24,7 +24,7 @@ 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 | 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 | 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 | 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 | 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). |
@@ -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 | 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/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/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 | 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/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/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 | 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/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/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 |
@@ -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 | 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/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/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 |