Delay rendering tool call diff editor until it has a revealed range (#35901)
Release Notes: - N/A
This commit is contained in:
parent
7965052757
commit
42bf5a17b9
2 changed files with 26 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue