Delay rendering tool call diff editor until it has a revealed range (#35901)

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-08-11 12:49:46 -04:00 committed by GitHub
parent 7965052757
commit 42bf5a17b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 13 deletions

View file

@ -174,6 +174,10 @@ impl Diff {
buffer_text
)
}
pub fn has_revealed_range(&self, cx: &App) -> bool {
self.multibuffer().read(cx).excerpt_paths().next().is_some()
}
}
pub struct PendingDiff {