Fix diagnostic pane not being closeable

This commit is contained in:
Mikayla Maki 2023-05-22 11:44:23 -07:00
parent 6f4b6eec5b
commit e59c8e9d61
No known key found for this signature in database
2 changed files with 19 additions and 9 deletions

View file

@ -7128,6 +7128,7 @@ pub enum Event {
BufferEdited,
Edited,
Reparsed,
Focused,
Blurred,
DirtyChanged,
Saved,
@ -7181,6 +7182,7 @@ impl View for Editor {
fn focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
if cx.is_self_focused() {
let focused_event = EditorFocused(cx.handle());
cx.emit(Event::Focused);
cx.emit_global(focused_event);
}
if let Some(rename) = self.pending_rename.as_ref() {