Fix infinite loop when worktree is deleted (#39637)
Closes #39442 Release Notes: - Fixed infinite loop when worktree is deleted Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
co-authored by
Conrad Irwin
parent
fe9895d112
commit
c80d213227
@@ -395,7 +395,7 @@ impl WorktreeStore {
|
||||
// Otherwise, the FS watcher would do it on the `RootUpdated` event,
|
||||
// but with a noticeable delay, so we handle it proactively.
|
||||
local.update_abs_path_and_refresh(
|
||||
Some(SanitizedPath::new_arc(&abs_new_path)),
|
||||
SanitizedPath::new_arc(&abs_new_path),
|
||||
cx,
|
||||
);
|
||||
Task::ready(Ok(this.root_entry().cloned()))
|
||||
|
||||
Reference in New Issue
Block a user