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.

Fix prompt reloading in dev mode (#18095)

Nathan Soboae34872f73a9
diff --git a/crates/assistant/src/prompts.rs b/crates/assistant/src/prompts.rs
index 7d99a70d141..3b9f75bac93 100644
--- a/crates/assistant/src/prompts.rs
+++ b/crates/assistant/src/prompts.rs
@@ -90,10 +90,9 @@ impl PromptBuilder {
/// and application context.
/// * `handlebars` - An `Arc<Mutex<Handlebars>>` for registering and updating templates.
fn watch_fs_for_template_overrides(
- mut params: PromptLoadingParams,
+ params: PromptLoadingParams,
handlebars: Arc<Mutex<Handlebars<'static>>>,
) {
- params.repo_path = None;
let templates_dir = paths::prompt_overrides_dir(params.repo_path.as_deref());
params.cx.background_executor()
.spawn(async move {