Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Refresh windows when settings file changes

Max Brunsfeld823e15d85a5d
diff --git a/crates/settings/src/settings.rs b/crates/settings/src/settings.rs
index 4ab504a96f2..840797c6ad6 100644
--- a/crates/settings/src/settings.rs
+++ b/crates/settings/src/settings.rs
@@ -2,12 +2,11 @@ mod keymap_file;
mod settings_file;
mod settings_store;
-use std::{borrow::Cow, str};
-
use gpui::AssetSource;
pub use keymap_file::{keymap_file_json_schema, KeymapFileContent};
pub use settings_file::*;
pub use settings_store::{Setting, SettingsJsonSchemaParams, SettingsStore};
+use std::{borrow::Cow, str};
pub const DEFAULT_SETTINGS_ASSET_PATH: &str = "settings/default.json";
pub const INITIAL_USER_SETTINGS_ASSET_PATH: &str = "settings/initial_user_settings.json";
diff --git a/crates/settings/src/settings_file.rs b/crates/settings/src/settings_file.rs
index 79e0d1eb317..30848713d9c 100644
--- a/crates/settings/src/settings_file.rs
+++ b/crates/settings/src/settings_file.rs
@@ -89,6 +89,7 @@ pub fn handle_settings_file_changes(
.set_user_settings(&user_settings_content, cx)
.log_err();
});
+ cx.refresh_windows();
});
}
})