Visual Studio Code, rebuilt in Rust
Rust
feat(lifecycle): unattended restart readiness with the workbench participants
rokarturcdc38797da2c
diff --git a/native/crates/app/src/main.rs b/native/crates/app/src/main.rsindex e8fb294bfad..1099c62f01f 100644--- a/native/crates/app/src/main.rs+++ b/native/crates/app/src/main.rs@@ -680,6 +680,7 @@ pub(crate) fn open_window(request: WindowRequest, cx: &mut App) -> anyhow::Resul}).detach();perf::mark("code/didStartWorkbench");+ workbench.restored_at = Some(std::time::Instant::now());workbench})})?diff --git a/native/crates/app/src/workbench.rs b/native/crates/app/src/workbench.rsindex 0523ee43da4..fe5483c4c6c 100644--- a/native/crates/app/src/workbench.rs+++ b/native/crates/app/src/workbench.rs@@ -247,6 +247,7 @@ mod text_input;mod timeline_view;mod title_bar_actions;mod type_navigation;+mod unattended_restart;mod unicode_highlight;mod unusual_line_terminators;pub(crate) mod scm_actions;@@ -334,6 +335,11 @@ pub struct Workbench {pub app_icon: Option<&'static [u8]>,/// `--wait` of command lines that opened files here, until their editors close.wait_files: Vec<command_line::WaitFiles>,+ /// When the window finished restoring (`LifecyclePhase.Restored`).+ pub restored_at: Option<std::time::Instant>,+ /// The blockers `can_restart_unattended` logged last.+ #[expect(dead_code, reason = "the unattended restart scheduler, the next step of the lifecycle row's unattendedRestart gap, calls it")]+ unattended_restart_logged: String,/// The group and path of each editor `release_closed_wait_files` saw last, to tell a close from a move.wait_shown: Vec<(u32, PathBuf)>,/// `--wait` markers of command lines without files: deleted when this window closes.@@ -737,6 +743,8 @@ impl Workbench {host_colors: themes::host_color_scheme(),app_icon: None,wait_files: Vec::new(),+ restored_at: None,+ unattended_restart_logged: String::new(),wait_shown: Vec::new(),wait_markers: Vec::new(),extension_development: false,diff --git a/native/crates/app/src/workbench/auto_save.rs b/native/crates/app/src/workbench/auto_save.rsindex 82ca1f8f68b..e9aefd8b080 100644--- a/native/crates/app/src/workbench/auto_save.rs+++ b/native/crates/app/src/workbench/auto_save.rs@@ -139,7 +139,7 @@ impl Workbench {auto_save_configuration(&files, inside_workspace)}- fn auto_save_mode(&self, model: Option<&OpenEditor>, reason: Option<SaveReason>) -> AutoSaveMode {+ pub(super) fn auto_save_mode(&self, model: Option<&OpenEditor>, reason: Option<SaveReason>) -> AutoSaveMode {let configuration = self.auto_save_configuration(model);let has_errors = || {let Some(model) = model else { return false };diff --git a/native/crates/app/src/workbench/backup_tracker.rs b/native/crates/app/src/workbench/backup_tracker.rsindex f1d0196de3a..5e588737804 100644--- a/native/crates/app/src/workbench/backup_tracker.rs+++ b/native/crates/app/src/workbench/backup_tracker.rs@@ -13,6 +13,7 @@ use gpui::{Context, Task, Window};use serde_json::{Value, json};use super::Workbench;+use super::auto_save::AutoSaveMode;use super::custom_documents::CUSTOM_EDITOR_SCHEME;use super::lifecycle::ShutdownReason;use super::notebooks::NotebookInput;@@ -380,6 +381,42 @@ impl Workbench {all}+ /// workingCopyBackupTracker.ts `getUnattendedRestartBlocker`: a modified working copy that a shutdown would ask+ /// about, save, or lose.+ #[expect(dead_code, reason = "the unattended restart scheduler, the next step of the lifecycle row's unattendedRestart gap, calls it")]+ pub(super) fn working_copy_restart_blocker(&self) -> Option<&'static str> {+ let models: Vec<&OpenEditor> = self.editors.editors.iter().chain(&self.editors.models).filter(|model| tracked(model) && model.is_dirty()).collect();+ let custom = self.dirty_documents(DocumentKind::Custom);+ let notebooks = self.dirty_documents(DocumentKind::Notebook);+ if models.is_empty() && custom.is_empty() && notebooks.is_empty() {+ return None;+ }+ if self.setting("files.hotExit") == "off" {+ return Some("workingCopy.hotExitDisabled");+ }+ let backups = &self.lifecycle.backups;+ for model in models {+ let document = model.document();+ if document.scheme != "untitled" && !matches!(self.auto_save_mode(Some(model), None), AutoSaveMode::Off(_)) {+ return Some("workingCopy.autoSavePending");+ }+ if backups.backed_up.get(&(document.scheme.clone(), document.path.clone())) != Some(&model.alternative_version_id()) {+ return Some("workingCopy.backupPending");+ }+ }+ let documents = custom.into_iter().map(|document| (&backups.custom, document)).chain(notebooks.into_iter().map(|document| (&backups.notebooks, document)));+ for (backed_up, (key, version)) in documents {+ // shortcut: custom documents and notebooks read the window's auto save mode, not their resource's; upgrade with per-resource auto save for them.+ if !matches!(self.auto_save_mode(None, None), AutoSaveMode::Off(_)) {+ return Some("workingCopy.autoSavePending");+ }+ if backed_up.backed_up.get(&key) != Some(&version) {+ return Some("workingCopy.backupPending");+ }+ }+ None+ }+/// `onBeforeShutdownWithoutModified` and `noVeto`: with nothing modified the window's backups all go.pub(super) fn discard_all_backups(&mut self) {let tracker = &mut self.lifecycle.backups;diff --git a/native/crates/app/src/workbench/editor_groups/part_state.rs b/native/crates/app/src/workbench/editor_groups/part_state.rsindex e3fd6eb5fe9..765a3f36d60 100644--- a/native/crates/app/src/workbench/editor_groups/part_state.rs+++ b/native/crates/app/src/workbench/editor_groups/part_state.rs@@ -83,28 +83,7 @@ impl Workbench {let mut editors = Vec::new();let mut serialized = Vec::new();for editor in self.editors.group_tabs(group).0 {- let document = editor.document();- let entry = if let Some(notebook) = self.notebook_editor_input(editor) {- notebook- } else {- match document.scheme.as_str() {- scheme if crate::editor::on_disk(scheme) => json!({ "id": FILE_EDITOR_INPUT, "value": json!({ "resourceJSON": document.uri() }).to_string() }),- // `EditorWalkThroughInputSerializer.serialize` is ''.- super::super::welcome_page::WALKTHROUGH_SCHEME if self.is_playground(editor) => json!({ "id": PLAYGROUND_INPUT, "value": "" }),- TERMINAL_EDITOR_SCHEME => match self.serialized_terminal_editor(editor) {- Some(terminal) => terminal,- None => continue,- },- "untitled" if untitled => {- let resource = json!({ "$mid": 1, "scheme": "untitled", "path": document.path.to_string_lossy() });- json!({ "id": UNTITLED_EDITOR_INPUT, "value": json!({ "resourceJSON": resource, "modeId": document.language_id }).to_string() })- }- _ => match self.serialized_webview_editor(editor) {- Some(webview) => json!({ "id": WEBVIEW_INPUT, "value": webview.to_string() }),- None => continue,- },- }- };+ let Some(entry) = self.serialized_editor(editor, untitled) else { continue };editors.push(editor);serialized.push(entry);}@@ -116,6 +95,25 @@ impl Workbench {json!({ "id": group, "editors": serialized, "mru": mru, "preview": preview, "sticky": sticky, "locked": locked })}+ /// `IEditorSerializer.serialize` of one editor; `None` for one that is not restored.+ pub(in crate::workbench) fn serialized_editor(&self, editor: &crate::editor::OpenEditor, untitled: bool) -> Option<Value> {+ if let Some(notebook) = self.notebook_editor_input(editor) {+ return Some(notebook);+ }+ let document = editor.document();+ match document.scheme.as_str() {+ scheme if crate::editor::on_disk(scheme) => Some(json!({ "id": FILE_EDITOR_INPUT, "value": json!({ "resourceJSON": document.uri() }).to_string() })),+ // `EditorWalkThroughInputSerializer.serialize` is ''.+ super::super::welcome_page::WALKTHROUGH_SCHEME if self.is_playground(editor) => Some(json!({ "id": PLAYGROUND_INPUT, "value": "" })),+ TERMINAL_EDITOR_SCHEME => self.serialized_terminal_editor(editor),+ "untitled" if untitled => {+ let resource = json!({ "$mid": 1, "scheme": "untitled", "path": document.path.to_string_lossy() });+ Some(json!({ "id": UNTITLED_EDITOR_INPUT, "value": json!({ "resourceJSON": resource, "modeId": document.language_id }).to_string() }))+ }+ _ => self.serialized_webview_editor(editor).map(|webview| json!({ "id": WEBVIEW_INPUT, "value": webview.to_string() })),+ }+ }+/// The stored grid and its groups' file editors, in place of the one empty group a window starts with.pub(in crate::workbench) fn restore_editor_part_state(&mut self) {let stored = self.workspace_storage.lock().unwrap().get(MEMENTO_KEY).and_then(|stored| serde_json::from_str::<Value>(stored).ok());diff --git a/native/crates/app/src/workbench/task_service.rs b/native/crates/app/src/workbench/task_service.rsindex b2b675deb84..0e8147cf19a 100644--- a/native/crates/app/src/workbench/task_service.rs+++ b/native/crates/app/src/workbench/task_service.rs@@ -81,7 +81,7 @@ pub struct TaskService {uuids: HashMap<(PathBuf, String), String>,/// Tasks the host referred to by id (`$executeTask` with a DTO), for `$getTaskExecution`.known: HashMap<String, Task>,- active: Vec<ActiveTask>,+ pub(super) active: Vec<ActiveTask>,/// The last task a user ran, for `reRunTask`.pub(super) last: Option<Task>,/// `registerSupportedExecutions`: the `customExecutionSupported`, `shellExecutionSupported` and@@ -140,7 +140,7 @@ impl TaskService {}}-struct ActiveTask {+pub(super) struct ActiveTask {task: Task,/// `getMapKey`: the id and the instance number, the count of runs of the task when it started.key: String,diff --git a/native/crates/app/src/workbench/unattended_restart.rs b/native/crates/app/src/workbench/unattended_restart.rsnew file mode 100644index 00000000000..23a1e59f5ef--- /dev/null+++ b/native/crates/app/src/workbench/unattended_restart.rs@@ -0,0 +1,146 @@+//! `UnattendedRestartService` (workbench/services/lifecycle/common/unattendedRestart.ts) with its participants+//! (contrib/update/browser/unattendedRestartParticipants.ts and the ones other areas register), called directly.++#![expect(dead_code, reason = "the unattended restart scheduler, the next step of the lifecycle row's unattendedRestart gap, calls it")]++use std::collections::{BTreeMap, BTreeSet};+use std::time::Duration;++use super::Workbench;++/// A participant's answer: the blocker id and, for the log only, what exactly blocks.+type Blocker = (&'static str, Option<String>);++/// `IUnattendedRestartReadiness`: sorted blocker ids, and what blocks by id.+#[derive(Debug, Default, PartialEq)]+pub struct Readiness {+ pub blockers: Vec<&'static str>,+ pub details: BTreeMap<&'static str, String>,+}++/// `LifecyclePhase.Eventually` comes 2.5 s after `Restored` (lifecycleService.ts).+const EVENTUALLY: Duration = Duration::from_millis(2500);++impl Workbench {+ /// `canRestartUnattended`: logs the blockers when they change, since the main process asks every minute.+ pub fn can_restart_unattended(&mut self) -> Readiness {+ let blockers = [+ self.starting_blocker(),+ (!self.dialogs.is_empty()).then_some(("workbench.dialogOpen", None)),+ self.quick_inputs.current().is_some().then_some(("workbench.quickInputOpen", None)),+ self.workspace_restart_blocker(),+ self.editors_restart_blocker(),+ (!self.debug.sessions.is_empty()).then_some(("debug.sessionActive", None)),+ (!self.tasks.active.is_empty()).then_some(("tasks.running", None)),+ self.working_copy_restart_blocker().map(|id| (id, None)),+ (!self.wait_files.is_empty()).then_some(("cli.waitingForEditorClose", None)),+ ];+ let readiness = readiness(blockers.into_iter().flatten());+ if let Some(message) = changed_log(&mut self.unattended_restart_logged, &readiness) {+ self.output.log_window(3, &message);+ }+ readiness+ }++ /// `workbench.starting`: before `LifecyclePhase.Eventually`.+ fn starting_blocker(&self) -> Option<Blocker> {+ let started = self.restored_at.is_some_and(|restored| restored.elapsed() >= EVENTUALLY);+ (!started).then_some(("workbench.starting", None))+ }++ /// `getWorkspaceBlocker`: a transient workspace would not be reopened as it is. The port opens no `tmp:`+ /// (temporary) workspace.+ fn workspace_restart_blocker(&self) -> Option<Blocker> {+ self.folder.as_ref().is_some_and(|tree| tree.workspace.transient).then_some(("workspace.notRestorable", None))+ }++ /// `getEditorsBlocker`.+ fn editors_restart_blocker(&self) -> Option<Blocker> {+ if self.modal_group_open() {+ return Some(("workbench.modalEditorOpen", None));+ }+ let editors: Vec<_> = self.editors.all_editors().collect();+ if editors.is_empty() {+ return None;+ }+ if self.setting("workbench.editor.restoreEditors") == false {+ return Some(("workbench.editorsNotRestored", None));+ }+ let untitled = self.setting("files.hotExit") != "off";+ let not_restorable: Vec<_> = editors.into_iter().filter(|editor| self.serialized_editor(editor, untitled).is_none()).collect();+ if not_restorable.is_empty() {+ return None;+ }+ // `describeEditors` names the editor's `typeId`; the port's editors have none, so their scheme stands in.+ let detail = not_restorable.iter().map(|editor| format!("{} [{}]", self.editor_name(editor), editor.document().scheme)).collect::<Vec<_>>().join(", ");+ Some(("workbench.editorNotRestorable", Some(detail)))+ }+}++/// The service's aggregation: ids deduplicated and sorted, details of one id joined with "; ".+fn readiness(blockers: impl IntoIterator<Item = Blocker>) -> Readiness {+ let mut ids = BTreeSet::new();+ let mut details: BTreeMap<&'static str, String> = BTreeMap::new();+ for (id, detail) in blockers {+ ids.insert(id);+ if let Some(detail) = detail {+ details.entry(id).and_modify(|joined| *joined = format!("{joined}; {detail}")).or_insert(detail);+ }+ }+ Readiness { blockers: ids.into_iter().collect(), details }+}++/// platform/lifecycle/common/unattendedRestart.ts `describeUnattendedRestartBlockers`.+pub fn describe_blockers(readiness: &Readiness) -> String {+ let described: Vec<String> = readiness+ .blockers+ .iter()+ .map(|blocker| match readiness.details.get(blocker) {+ Some(detail) => format!("{blocker} ({detail})"),+ None => blocker.to_string(),+ })+ .collect();+ described.join(", ")+}++/// The service logs only when the blockers change: the main process asks every minute while the screen is locked.+fn changed_log(last_logged: &mut String, readiness: &Readiness) -> Option<String> {+ let summary = describe_blockers(readiness);+ if summary == *last_logged {+ return None;+ }+ let message = if readiness.blockers.is_empty() { "[unattended restart] no longer blocked".to_owned() } else { format!("[unattended restart] blocked by: {summary}") };+ *last_logged = summary;+ Some(message)+}++#[cfg(test)]+mod tests {+ use super::*;++ /// unattendedRestart.test.ts "aggregates blockers, treats failures as blockers and forgets disposed participants",+ /// without the failing participant: the port's checks are calls that cannot fail or time out.+ #[test]+ fn aggregates_blockers() {+ let blockers = [None, Some(("terminal.runningProcess", None)), Some(("debug.sessionActive", None)), Some(("terminal.runningProcess", None))];+ assert_eq!(readiness([]), Readiness::default());+ assert_eq!(readiness(blockers.into_iter().flatten()).blockers, ["debug.sessionActive", "terminal.runningProcess"]);+ }++ /// unattendedRestart.test.ts "logs and passes on what exactly blocks", with a second detail for the same id.+ #[test]+ fn logs_and_passes_on_what_exactly_blocks() {+ let release_notes = "Release Notes: 1.145.0 [workbench.editors.webviewInput, releaseNotes]";+ let readiness = readiness([("terminal.runningProcess", None), ("workbench.editorNotRestorable", Some(release_notes.to_owned()))]);+ let details = BTreeMap::from([("workbench.editorNotRestorable", release_notes.to_owned())]);+ assert_eq!(readiness, Readiness { blockers: vec!["terminal.runningProcess", "workbench.editorNotRestorable"], details });+ let mut logged = String::new();+ let message = format!("[unattended restart] blocked by: terminal.runningProcess, workbench.editorNotRestorable ({release_notes})");+ assert_eq!(changed_log(&mut logged, &readiness), Some(message));+ assert_eq!(changed_log(&mut logged, &readiness), None);+ assert_eq!(changed_log(&mut logged, &Readiness::default()), Some("[unattended restart] no longer blocked".to_owned()));++ let joined = super::readiness([("workbench.editorNotRestorable", Some("A [a]".to_owned())), ("workbench.editorNotRestorable", Some("B [b]".to_owned()))]);+ assert_eq!(describe_blockers(&joined), "workbench.editorNotRestorable (A [a]; B [b])");+ }+}diff --git a/port/ledger.md b/port/ledger.mdindex 70a059423ec..1a784bef582 100644--- a/port/ledger.md+++ b/port/ledger.md@@ -408,7 +408,7 @@ One row per upstream unit, generated by `bun port/tools/gen-ledger.ts`; mileston| workbench/services/languageDetection | workbench service | M13 | verified | | language_detection.rs (languageDetectionWebWorker.ts `detectLanguagesImpl`, `adjustLanguageConfidence`, the 10000 char sample) and workbench/language_detection.rs (`LanguageDetectionWorkerClient`: the file name guess first, then @vscode/vscode-languagedetection 1.0.23 with its model in a Bun worker from the app's node_modules, model ids mapped as `getLanguageId`; `autoDetectLanguage` of textEditorModel.ts for untitled models and extensionless plain text files, 600 ms throttle, skipped after an explicit language and with `workbench.editor.languageDetection` off): cargo test -p app language_detection (the worker test runs the real model). The history biases only feed the regexp model, which 1.147.0 does not ship (`vscode-regexp-languagedetection` is not a dependency), so neither side has it; no telemetry || workbench/services/languageStatus | workbench service | M13 | verified | | `$setLanguageStatus` / `$removeLanguageStatus`, statuses matched by selector, ordered by severity, source, id (workbench/language_status.rs): cargo test -p app language_status || workbench/services/layout | workbench service | M11 | ported | [3 L] editor_status.rs:606, content_hover.rs:498: no workbench-wide Tab order (the browser's DOM order): Tab stops at the content hover's ends, and Tab on the status bar in Tab Focus Mode keeps the focus (port/notes.md Toggle Tab Key Moves Focus) <br> [3 L] workbench.rs:579: the Workbench is one GPUI view, so every scroll frame of any list renders every part again, where upstream's DOM updates only the scrolled list; per frame the activity bar's Extensions badge rebuilds the extension list (extensions_view.rs:1119 `extensions_badge`), each of the 158 `key_context` callers clones every `config.*` key (keyboard.rs:400), the menubar and the timeline toolbar are rebuilt. GUI (Studio at load 33 to 57, 60 Hz display, 690 trackpad events in 7 s): main thread in `Window::draw` 86% scrolling the Explorer (800 files), 89% the Extensions @builtin list (port/notes.md Scroll frame costs) | layout.ts as a split-view tree (workbench/layout.rs): panel position (bottom, top, left, right) and alignment, primary side bar left or right, maximized panel with `panelMaximizationSupportedWhen`, hidden parts, persisted sizes and positions; zen mode (zen_mode.rs) with its settings and restore; centered layout (centered_layout.rs) with its sashes and stored margins; View > Appearance entries and the Panel Position and Align Panel submenus (cargo test -p app -- layout part_grid centered_layout zen_mode); layoutActions.ts Customize Layout quick pick (workbench/customize_layout.rs) with live items, Restore Defaults and Close, Toggle Activity Bar Visibility, Align Quick Input Top/Center (cargo test -p app -- customize_layout toggling_the_activity_bar; ui-pair m11/manage-menu.json, port/results/manage-menu.md; missing until then though the title bar showed its button); ui-pair layout-positions.json and layout-zen.json against the reference (port/results/layout.md). The pairs run with `zenMode.fullScreen` off. Maximize Secondary Side Bar (`workbench.action.maximizeAuxiliaryBar`, `restoreAuxiliaryBar`, `toggleMaximizedAuxiliaryBar`, the title's toggle) hides the other parts and restores them (workbench/panel.rs; cargo test -p app -- maximizing_the_secondary_side_bar_hides_the_other_parts_and_restore_brings_them_back). Zen mode enforces `zenMode.showTabs` on the main editor part until it ends (layout.ts `toggleZenMode` `enforcePartOptions`; workbench/zen_mode.rs `editor_show_tabs`; cargo test -p app -- show_tabs_picks_the_title_control_and_zen_mode_enforces_its_own); navigationActions.ts `workbench.action.focusNextPart`/`focusPreviousPart` (F6, Shift+F6) walk editor, panel, auxiliary bar, status bar, activity bar and side bar past the hidden ones with layout.ts `focusPart` (the pane container's first expanded view; workbench/part_navigation.rs; cargo test -p app f6_walks_the_visible_parts); in an editor window F6 goes between its editor and its own status bar, whose entry focus is kept per window (workbench/auxiliary_windows.rs `auxiliary_status_bar`, workbench/status_entries.rs; cargo test -p app f6_in_an_editor_window_reaches_its_own_status_bar) |-| workbench/services/lifecycle | workbench service | M11 | ported | [3 L] unattendedRestart.ts: `IUnattendedRestartService` with its participants (unattendedRestartParticipants.ts, terminalUnattendedRestart.ts, testingUnattendedRestart.ts, webviewUnattendedRestart.ts, notebookUnattendedRestart.ts, debugLifecycle.ts, task.contribution.ts, workingCopyBackupTracker.ts, testingContinuousRunService.ts `testing.continuousRun`, window.ts `cli.waitingForEditorClose`), platform/update's `UnattendedRestartScheduler` (restart to update while the screen is locked, with `update.restartWhenIdle` on) and windowsStateHandler.ts `setNextExactRestore` not ported | workbench/lifecycle.rs: ShutdownReason, onBeforeShutdown vetoes on quit, close button, closeWindow, reload and load (`window.confirmBeforeClose`, backup tracker auto save, hot exit, showSaveConfirm); cargo test -p app lifecycle; no phases or onWillShutdown joiners; verified: cargo test -p app backup_tracker lifecycle (workingCopyBackupTracker.test.ts); ui-pair hot-exit.json `dirty`, `restored` vs the reference (port/results/windows.md, milestone 11 verification) |+| workbench/services/lifecycle | workbench service | M11 | ported | [3 L] unattendedRestart.ts: the participants terminalUnattendedRestart.ts, testingUnattendedRestart.ts, webviewUnattendedRestart.ts, notebookUnattendedRestart.ts and testingContinuousRunService.ts `testing.continuousRun` are not ported (the port's terminal has no `hasChildProcesses`), the editor detail names the scheme where upstream names `typeId`, `workbench.floatingWindowNotRestorable` cannot occur (the port's auxiliary windows are all editor parts), and nothing calls `can_restart_unattended` yet: platform/update's `UnattendedRestartScheduler` (restart to update while the screen is locked, with `update.restartWhenIdle` on), `quitAndInstall` with `unattended` and windowsStateHandler.ts `setNextExactRestore` are not ported | workbench/lifecycle.rs: ShutdownReason, onBeforeShutdown vetoes on quit, close button, closeWindow, reload and load (`window.confirmBeforeClose`, backup tracker auto save, hot exit, showSaveConfirm); cargo test -p app lifecycle; no phases or onWillShutdown joiners; workbench/unattended_restart.rs: `canRestartUnattended` with its blocker aggregation and change log, and the participants `workbench.starting` (2.5 s after restore), dialog, quick input, transient workspace, modal editor, editors not restored or not restorable, `debug.sessionActive`, `tasks.running`, the backup tracker's `workingCopy.*` and `cli.waitingForEditorClose`: cargo test -p app unattended_restart (unattendedRestart.test.ts); verified: cargo test -p app backup_tracker lifecycle (workingCopyBackupTracker.test.ts); ui-pair hot-exit.json `dirty`, `restored` vs the reference (port/results/windows.md, milestone 11 verification) || workbench/services/localTranscription | workbench service | | removed | | no AI or Microsoft services by decision (port/notes.md); API stays inert || workbench/services/localization | workbench service | M18 | verified | | ui-pair port/fixtures/extensions/ui-display-language.json: picking Deutsch installs MS-CEINTL.vscode-language-pack-de with the "Installing Deutsch language support..." progress and asks "Restart VSRustium to switch to Deutsch?"; localeService.ts: argv.json `locale` written and cleared, restart dialog, install of an MS-CEINTL pack: cargo test -p app nls localization; Command Palette titles, categories and descriptions translate by the reference call's module and key (port/tools/ref-commands with ref-nls-clone.ts; cargo test -p app a_palette_title_two_modules), menu bar items, side bar titles and pane headers by the reference's `nlsKeys` per menu, view and container (cargo test -p app menu_bar_items_and_view_titles_resolve_per_scope); other surfaces stay English (port/notes.md) || workbench/services/log | workbench service | M6 | verified | | output/log_levels.rs: defaultLogLevels.ts argv.json `log-level` read and write, `getDefaultLogLevel`, `parseLogLevel`; logs_actions.rs `setDefaultLogLevel` (cargo test -p app set_default_log_level_writes_argv, reads_and_writes_argv_log_levels); the Window log as logConstants.ts `windowLogId`; electron-browser logService.ts in a test run: the host console reaches stdout/stderr through the session; output/log_levels.rs: defaultLogLevels.ts argv.json `log-level` read and write, `getDefaultLogLevel`, `parseLogLevel`; logs_actions.rs `setDefaultLogLevel` (cargo test -p app set_default_log_level_writes_argv, reads_and_writes_argv_log_levels); the Window log as logConstants.ts `windowLogId` |