{"record":{"id":"12ce315567190a25","repo":"zed-industries/zed","slug":"not-implemented","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/settings_ui/src/settings_ui.rs","lineNumber":4728,"sourceCode":"    update: &mut dyn FnMut() -> Box<dyn Send + FnOnce(&mut SettingsContent, &App)>,\n) -> Result<()> {\n    telemetry::event!(\"Settings Change\", setting = file_name, type = file.setting_type());\n\n    match file {\n        SettingsUiFile::Project((worktree_id, rel_path)) => {\n            let rel_path = rel_path.join(paths::local_settings_file_relative_path());\n            let Some(settings_window) = window.root::<SettingsWindow>().flatten() else {\n                anyhow::bail!(\"No settings window found\");\n            };\n\n            update_project_setting_file(worktree_id, rel_path.into(), update, settings_window, cx)\n        }\n        SettingsUiFile::User => {\n            // todo(settings_ui) error?\n            SettingsStore::global(cx).update_settings_file(<dyn fs::Fs>::global(cx), update());\n            Ok(())\n        }\n        SettingsUiFile::Server(_) => unimplemented!(),\n    }\n}\n\nstruct ProjectSettingsUpdateEntry {\n    worktree_id: WorktreeId,\n    rel_path: Arc<RelPath>,\n    settings_window: WeakEntity<SettingsWindow>,\n    project: WeakEntity<Project>,\n    worktree: WeakEntity<Worktree>,\n    update: Box<dyn FnOnce(&mut SettingsContent, &App)>,\n}\n\nstruct ProjectSettingsUpdateQueue {\n    tx: mpsc::UnboundedSender<ProjectSettingsUpdateEntry>,\n    _task: Task<()>,\n}\n\nimpl Global for ProjectSettingsUpdateQueue {}","sourceCodeStart":4710,"sourceCodeEnd":4746,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/settings_ui/src/settings_ui.rs#L4710-L4746","documentation":"The settings UI can persist changes to different settings files. Writing back to a `SettingsUiFile::Server` (server settings UI) is not yet implemented, so the code calls `unimplemented!()`, panicking with the Rust default message 'not implemented'. It's a known TODO in the settings UI feature.","triggerScenarios":"Editing a setting in the Server settings UI tab and saving, which routes the update through `write_to_file`/the update path reaching `SettingsUiFile::Server(_) => unimplemented!()`.","commonSituations":"Users or tests opening the server settings pane in the settings UI and attempting to save any change before server settings write-back was implemented.","solutions":["Avoid saving changes from the server settings UI until write-back is implemented; the UI should mark Server edits read-only.","Implement the Server arm by serializing a server settings update (similar to the User arm) if you own this feature.","Gate the save action on `SettingsUiFile` kind so Server files are disabled or show an 'unsupported' notice instead of panicking."],"exampleFix":"// before\nSettingsUiFile::Server(_) => unimplemented!(),\n// after\nSettingsUiFile::Server(_) => {\n    Err(anyhow!(\"saving server settings is not yet supported\"))\n}","handlingStrategy":"validation","validationCode":"// gate the save path on the file kind\nif matches!(file, SettingsUiFile::Server(_)) {\n    return Err(anyhow!(\"saving server settings is not supported\"));\n}\nwrite_settings(file)?;","typeGuard":"fn is_writable(file: &SettingsUiFile) -> bool {\n    !matches!(file, SettingsUiFile::Server(_))\n}","tryCatchPattern":null,"preventionTips":["Disable or make read-only UI fields backed by SettingsUiFile::Server until implemented.","Replace unimplemented!() with a user-visible error so panics never reach users.","Track the todo(settings_ui) item and cover save flows in tests per file kind."],"tags":["settings-ui","unimplemented","panic","todo"],"backgroundTag":"method-not-implemented","analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-09-19T19:09:50.599Z","contentChangedAt":"2026-09-19T19:09:50.599Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}