Fix prompt reloading in dev mode (#18095)
I think I nulled out the repo path to test the non dev mode case and
then forgot to reenable it 🤦♂️ .
Release Notes:
- N/A
This commit is contained in:
parent
740803d745
commit
ae34872f73
1 changed files with 1 additions and 2 deletions
|
@ -90,10 +90,9 @@ impl PromptBuilder {
|
||||||
/// and application context.
|
/// and application context.
|
||||||
/// * `handlebars` - An `Arc<Mutex<Handlebars>>` for registering and updating templates.
|
/// * `handlebars` - An `Arc<Mutex<Handlebars>>` for registering and updating templates.
|
||||||
fn watch_fs_for_template_overrides(
|
fn watch_fs_for_template_overrides(
|
||||||
mut params: PromptLoadingParams,
|
params: PromptLoadingParams,
|
||||||
handlebars: Arc<Mutex<Handlebars<'static>>>,
|
handlebars: Arc<Mutex<Handlebars<'static>>>,
|
||||||
) {
|
) {
|
||||||
params.repo_path = None;
|
|
||||||
let templates_dir = paths::prompt_overrides_dir(params.repo_path.as_deref());
|
let templates_dir = paths::prompt_overrides_dir(params.repo_path.as_deref());
|
||||||
params.cx.background_executor()
|
params.cx.background_executor()
|
||||||
.spawn(async move {
|
.spawn(async move {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue