fix: typos

I has originally named this feature `auto_read`, but changed the name to `auto_reload`, this changes some references I forgot to update to the new name
pull/13963/head
Anthony Rubick 2025-07-15 17:56:38 -07:00
parent 104bb7443f
commit bf02b4dbea
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -27,14 +27,14 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers {
let event_tx = completion::CompletionHandler::new(config).spawn();
let signature_hints = SignatureHelpHandler::new().spawn();
let auto_save = AutoSaveHandler::new().spawn();
let auto_read = AutoReloadHandler::new().spawn();
let auto_reload = AutoReloadHandler::new().spawn();
let document_colors = DocumentColorsHandler::default().spawn();
let handlers = Handlers {
completions: helix_view::handlers::completion::CompletionHandler::new(event_tx),
signature_hints,
auto_save,
auto_reload: auto_read,
auto_reload,
document_colors,
};

View File

@ -905,12 +905,12 @@ pub struct AutoReloadPeriodic {
#[serde(default)]
/// Enable auto reload periodically. Defaults to false.
pub enable: bool,
#[serde(default = "default_auto_read_interval")]
/// Time interval in milliseconds. Defaults to [DEFAULT_AUTO_READ_INTERVAL].
#[serde(default = "default_auto_reload_interval")]
/// Time interval in milliseconds. Defaults to [DEFAULT_AUTO_RELOAD_INTERVAL].
pub interval: u64,
}
pub fn default_auto_read_interval() -> u64 {
pub fn default_auto_reload_interval() -> u64 {
DEFAULT_AUTO_RELOAD_INTERVAL
}
@ -930,7 +930,7 @@ where
focus_gained,
..Default::default()
}),
AutoReloadToml::AutoReload(auto_read) => Ok(auto_read),
AutoReloadToml::AutoReload(auto_reload) => Ok(auto_reload),
}
}