Don't update active completion for editors that are not focused (#9904)
Release Notes: - N/A
This commit is contained in:
@@ -1676,7 +1676,9 @@ impl Editor {
|
||||
) {
|
||||
self.inline_completion_provider = Some(RegisteredInlineCompletionProvider {
|
||||
_subscription: cx.observe(&provider, |this, _, cx| {
|
||||
this.update_visible_inline_completion(cx);
|
||||
if this.focus_handle.is_focused(cx) {
|
||||
this.update_visible_inline_completion(cx);
|
||||
}
|
||||
}),
|
||||
provider: Arc::new(provider),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user