agent: Only focus on the context strip if it has items to display (#30379)
This commit is contained in:
parent
f2dcc98216
commit
9dabf491f0
3 changed files with 11 additions and 5 deletions
|
@ -451,7 +451,7 @@ impl<T: 'static> PromptEditor<T> {
|
|||
editor.move_to_end(&Default::default(), window, cx)
|
||||
});
|
||||
}
|
||||
} else {
|
||||
} else if self.context_strip.read(cx).has_context_items(cx) {
|
||||
self.context_strip.focus_handle(cx).focus(window);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue