fix: remove unused imports and fix settings default error
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -112,15 +112,9 @@ pub fn generate_status_info(
|
||||
// Plugin initialized successfully
|
||||
}
|
||||
|
||||
// Configure plugin with settings if available
|
||||
// Create a dummy settings object to get plugin configs
|
||||
let dummy_settings = config::Settings::default();
|
||||
if let Some(meta_plugin_configs) = &dummy_settings.meta_plugins {
|
||||
if let Some(config) = meta_plugin_configs.iter().find(|c| c.name == meta_plugin.meta_name()) {
|
||||
// Configure the plugin with options and outputs from config
|
||||
let _ = meta_plugin.configure(&config.options, &config.outputs.iter().map(|(k, v)| (k.clone(), serde_yaml::Value::String(v.clone()))).collect());
|
||||
}
|
||||
}
|
||||
// Note: In status mode we don't have access to actual settings,
|
||||
// so we can't configure plugins with their settings here.
|
||||
// Plugin configuration happens during save operations.
|
||||
|
||||
let (binary_display, args_display) = if !is_supported {
|
||||
("<NOT FOUND>".to_string(), "".to_string())
|
||||
|
||||
Reference in New Issue
Block a user